Bug 187582 - [maintainer update] devel/capstone 2.1.1
Summary: [maintainer update] devel/capstone 2.1.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-14 17:20 UTC by Oliver Pinter
Modified: 2014-03-17 20:50 UTC (History)
0 users

See Also:


Attachments
file.shar (5.21 KB, text/plain)
2014-03-14 17:20 UTC, Oliver Pinter
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Pinter 2014-03-14 17:20:00 UTC
New version of Capstone engine: 2.0 -> 2.1.1.

Redports build log: https://redports.org/~op/20140314170420-48057-186625/capstone-2.1.1.log

Fix: Patch attached with submission follows:
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2014-03-17 19:15:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-03-17 20:44:49 UTC
Author: pawel
Date: Mon Mar 17 20:44:45 2014
New Revision: 348504
URL: http://svnweb.freebsd.org/changeset/ports/348504
QAT: https://qat.redports.org/buildarchive/r348504/

Log:
  Update to version 2.1.1
  
  PR:		ports/187582
  Submitted by:	maintainer

Modified:
  head/devel/capstone/Makefile
  head/devel/capstone/distinfo
  head/devel/capstone/files/patch-Makefile
  head/devel/capstone/files/patch-tests_Makefile
  head/devel/capstone/pkg-plist

Modified: head/devel/capstone/Makefile
==============================================================================
--- head/devel/capstone/Makefile	Mon Mar 17 19:57:22 2014	(r348503)
+++ head/devel/capstone/Makefile	Mon Mar 17 20:44:45 2014	(r348504)
@@ -1,9 +1,9 @@
 # $FreeBSD$
 
 PORTNAME=	capstone
-PORTVERSION=	2.0
+PORTVERSION=	2.1.1
 CATEGORIES=	devel
-MASTER_SITES=	http://capstone-engine.org/download/2.0/
+MASTER_SITES=	http://capstone-engine.org/download/2.1/
 
 MAINTAINER=	oliver.pntr@gmail.com
 COMMENT=	Multi-platform, multi-architecture disassembly framework
@@ -13,7 +13,8 @@ LICENSE=	BSD3CLAUSE
 USES=		gmake
 USE_LDCONFIG=	yes
 
-MAKE_ENV=	INSTALL_LIBRARY="${INSTALL_LIB}"
+MAKE_ENV+=	INSTALL_LIB="${INSTALL_LIB}" \
+		INSTALL_DATA="${INSTALL_DATA}"
 
 post-build:
 	# The pkgconfig file is generated and points to stagedir

Modified: head/devel/capstone/distinfo
==============================================================================
--- head/devel/capstone/distinfo	Mon Mar 17 19:57:22 2014	(r348503)
+++ head/devel/capstone/distinfo	Mon Mar 17 20:44:45 2014	(r348504)
@@ -1,2 +1,2 @@
-SHA256 (capstone-2.0.tar.gz) = 5d871b1e52047d1b2882bbcc6f049205ba6acc8d55d746937d22af5d0b33fa9e
-SIZE (capstone-2.0.tar.gz) = 1731759
+SHA256 (capstone-2.1.1.tar.gz) = 8af3c0a0f439d516277f308938935003d072f34a34fcf2e8dcf07dd415b1ca65
+SIZE (capstone-2.1.1.tar.gz) = 1353194

Modified: head/devel/capstone/files/patch-Makefile
==============================================================================
--- head/devel/capstone/files/patch-Makefile	Mon Mar 17 19:57:22 2014	(r348503)
+++ head/devel/capstone/files/patch-Makefile	Mon Mar 17 20:44:45 2014	(r348504)
@@ -1,6 +1,7 @@
---- Makefile.orig	2014-01-22 10:33:35.000000000 +0000
-+++ Makefile
-@@ -15,7 +15,7 @@ RANLIB = $(CROSS)ranlib
+diff -ru /Makefile /Makefile
+--- Makefile	2014-03-14 17:24:44.000000000 +0100
++++ Makefile	2014-03-14 17:35:33.000000000 +0100
+@@ -16,7 +16,7 @@
  STRIP = $(CROSS)strip
  endif
  
@@ -9,38 +10,41 @@
  
  ifeq ($(USE_SYS_DYN_MEM),yes)
  CFLAGS += -DUSE_SYS_DYN_MEM
-@@ -38,6 +38,8 @@ LIBDIR = $(DESTDIR)$(PREFIX)/lib
+@@ -39,9 +39,17 @@
  endif
  endif
  
++LIBDATADIR = $(LIBDIR)
++UNAME_S := $(shell uname -s)
++ifeq ($(UNAME_S), FreeBSD)
 +LIBDATADIR = $(DESTDIR)$(PREFIX)/libdata
++else
++LIBDATADIR = $(LIBDIR)
++endif
 +
  INSTALL_BIN ?= install
  INSTALL_DATA ?= $(INSTALL_BIN) -m0644
- INSTALL_LIBRARY ?= $(INSTALL_BIN) -m0755
-@@ -88,7 +90,6 @@ endif
+-INSTALL_LIBRARY ?= $(INSTALL_BIN) -m0755
++INSTALL_LIB ?= $(INSTALL_BIN) -m0755
  
+ LIBNAME = capstone
+ 
+@@ -138,8 +146,7 @@
  LIBOBJ += MCInst.o
  
+ 
 -UNAME_S := $(shell uname -s)
+-PKGCFCGDIR = $(LIBDIR)/pkgconfig
++PKGCFCGDIR = $(LIBDATADIR)/pkgconfig
+ 
  # OSX?
  ifeq ($(UNAME_S),Darwin)
- EXT = dylib
-@@ -156,14 +157,14 @@ install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY
+@@ -244,7 +251,7 @@
+ 
+ install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY)
+ 	mkdir -p $(LIBDIR)
+-	$(INSTALL_LIBRARY) lib$(LIBNAME).$(EXT) $(LIBDIR)
++	$(INSTALL_LIB) lib$(LIBNAME).$(EXT) $(LIBDIR)
  	$(INSTALL_DATA) lib$(LIBNAME).$(AR_EXT) $(LIBDIR)
  	mkdir -p $(INCDIR)/$(LIBNAME)
  	$(INSTALL_DATA) include/*.h $(INCDIR)/$(LIBNAME)
--	mkdir -p $(LIBDIR)/pkgconfig
--	$(INSTALL_DATA) $(PKGCFGF) $(LIBDIR)/pkgconfig/
-+	mkdir -p $(LIBDATADIR)/pkgconfig
-+	$(INSTALL_DATA) $(PKGCFGF) $(LIBDATADIR)/pkgconfig/
- 
- uninstall:
- 	rm -rf $(INCDIR)/$(LIBNAME)
- 	rm -f $(LIBDIR)/lib$(LIBNAME).$(EXT)
- 	rm -f $(LIBDIR)/lib$(LIBNAME).$(AR_EXT)
--	rm -f $(LIBDIR)/pkgconfig/$(LIBNAME).pc
-+	rm -f $(LIBDATADIR)/pkgconfig/$(LIBNAME).pc
- 
- clean:
- 	rm -f $(LIBOBJ) lib$(LIBNAME).*

Modified: head/devel/capstone/files/patch-tests_Makefile
==============================================================================
--- head/devel/capstone/files/patch-tests_Makefile	Mon Mar 17 19:57:22 2014	(r348503)
+++ head/devel/capstone/files/patch-tests_Makefile	Mon Mar 17 20:44:45 2014	(r348504)
@@ -1,6 +1,7 @@
---- tests/Makefile.orig	2014-01-25 19:14:03.000000000 +0100
-+++ tests/Makefile	2014-01-25 19:14:24.000000000 +0100
-@@ -11,7 +11,7 @@
+diff -ru work.orig/capstone-2.1.1/tests/Makefile work/capstone-2.1.1/tests/Makefile
+--- tests/Makefile	2014-03-14 17:24:44.000000000 +0100
++++ tests/Makefile	2014-03-14 17:52:47.000000000 +0100
+@@ -13,7 +13,7 @@
  endif
  
  
@@ -9,7 +10,7 @@
  
  LIBNAME = capstone
  
-@@ -48,8 +48,8 @@
+@@ -66,8 +66,8 @@
  $(BINARY): $(OBJS)
  
  %$(BIN_EXT): %.o

Modified: head/devel/capstone/pkg-plist
==============================================================================
--- head/devel/capstone/pkg-plist	Mon Mar 17 19:57:22 2014	(r348503)
+++ head/devel/capstone/pkg-plist	Mon Mar 17 20:44:45 2014	(r348504)
@@ -1,6 +1,7 @@
 include/capstone/arm.h
 include/capstone/arm64.h
 include/capstone/capstone.h
+include/capstone/diet.h
 include/capstone/mips.h
 include/capstone/ppc.h
 include/capstone/x86.h
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2014-03-17 20:45:35 UTC
State Changed
From-To: open->closed

Committed. Thanks!