View | Details | Raw Unified | Return to bug 230347
Collapse All | Expand All

(-)devel/capstone3/Makefile (-3 / +4 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	capstone
3
PORTNAME=	capstone
4
PORTVERSION=	3.0.4
4
PORTVERSION=	3.0.5
5
CATEGORIES=	devel
5
CATEGORIES=	devel
6
6
7
MAINTAINER=	oliver.pntr@gmail.com
7
MAINTAINER=	oliver.pntr@gmail.com
Lines 17-24 Link Here
17
USE_GITHUB=	yes
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	aquynh
18
GH_ACCOUNT=	aquynh
19
19
20
MAKE_ENV+=	INSTALL_LIB="${INSTALL_LIB}" \
20
MAKE_ENV+=	INSTALL_BIN="${INSTALL_PROGRAM}" \
21
		INSTALL_DATA="${INSTALL_DATA}"
21
		INSTALL_DATA="${INSTALL_DATA}" \
22
		INSTALL_LIB="${INSTALL_LIB}"
22
23
23
TEST_ENV=	${MAKE_ENV} LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib
24
TEST_ENV=	${MAKE_ENV} LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib
24
TEST_TARGET=	check
25
TEST_TARGET=	check
(-)devel/capstone3/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (aquynh-capstone-3.0.4_GH0.tar.gz) = 5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2
1
TIMESTAMP = 1533370077
2
SIZE (aquynh-capstone-3.0.4_GH0.tar.gz) = 2800818
2
SHA256 (aquynh-capstone-3.0.5_GH0.tar.gz) = 913dd695e7c5a2b972a6f427cb31f2e93677ec1c38f39dda37d18a91c70b6df1
3
SIZE (aquynh-capstone-3.0.5_GH0.tar.gz) = 2886717
(-)devel/capstone3/files/patch-Makefile (+11 lines)
Line 0 Link Here
1
--- Makefile.orig	2018-07-18 16:17:10 UTC
2
+++ Makefile
3
@@ -395,7 +395,7 @@ endif
4
 	mkdir -p $(PKGCFGDIR)
5
 	$(INSTALL_DATA) $(PKGCFGF) $(PKGCFGDIR)/
6
 	mkdir -p $(BINDIR)
7
-	$(INSTALL_LIB) cstool/cstool $(BINDIR)
8
+	$(INSTALL_BIN) cstool/cstool $(BINDIR)
9
 
10
 uninstall:
11
 	rm -rf $(INCDIR)/$(LIBNAME)
(-)devel/capstone3/pkg-plist (+1 lines)
Lines 1-3 Link Here
1
bin/cstool
1
include/capstone/arm.h
2
include/capstone/arm.h
2
include/capstone/arm64.h
3
include/capstone/arm64.h
3
include/capstone/capstone.h
4
include/capstone/capstone.h
(-)devel/py-capstone/Makefile (-2 / +5 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	capstone
4
PORTNAME=	capstone
5
PORTVERSION=	3.0.4
5
PORTVERSION=	3.0.5
6
PORTREVISION=	1
7
CATEGORIES=	devel python
6
CATEGORIES=	devel python
8
MASTER_SITES=	CHEESESHOP
7
MASTER_SITES=	CHEESESHOP
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 19-23 Link Here
19
18
20
USES=		python
19
USES=		python
21
USE_PYTHON=	autoplist distutils
20
USE_PYTHON=	autoplist distutils
21
MAKE_ENV+=	LIBCAPSTONE_PATH= # Prevent bundled libcapstone from being built
22
22
23
post-patch:
24
	@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/capstone/__init__.py
25
23
.include <bsd.port.mk>
26
.include <bsd.port.mk>
(-)devel/py-capstone/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (python/capstone-3.0.4.tar.gz) = 945d3b8c3646a1c3914824c416439e2cf2df8969dd722c8979cdcc23b40ad225
1
TIMESTAMP = 1533371042
2
SIZE (python/capstone-3.0.4.tar.gz) = 3175587
2
SHA256 (python/capstone-3.0.5.tar.gz) = 8d5f71b4c42d1552d2253bfd8e8366460de19f01236c3dc485bf24baffee60dd
3
SIZE (python/capstone-3.0.5.tar.gz) = 1616487
(-)devel/py-capstone/files/patch-capstone_____init____.py (+10 lines)
Line 0 Link Here
1
--- capstone/__init__.py.orig	2018-07-18 16:17:10 UTC
2
+++ capstone/__init__.py
3
@@ -236,6 +236,7 @@ _cs = None
4
 # - last-gasp attempt at some hardcoded paths on darwin and linux
5
 
6
 _path_list = [os.getenv('LIBCAPSTONE_PATH', None),
7
+              '%%LOCALBASE%%/lib',
8
               pkg_resources.resource_filename(__name__, 'lib'),
9
               join(split(__file__)[0], 'lib'),
10
               '',
(-)devel/py-capstone/files/patch-setup.py (-22 lines)
Lines 1-22 Link Here
1
# Do not bundle libcapstone.so
2
3
--- setup.py.orig	2015-07-15 07:43:18 UTC
4
+++ setup.py
5
@@ -175,17 +175,4 @@ setup(
6
         'Programming Language :: Python :: 3',
7
     ],
8
     requires=['ctypes'],
9
-    cmdclass=dict(
10
-        build_clib=custom_build_clib,
11
-        sdist=custom_sdist,
12
-    ),
13
-
14
-    libraries=[(
15
-        'capstone', dict(
16
-            package='capstone',
17
-            sources=dummy_src()
18
-        ),
19
-    )],
20
-
21
-    data_files=[(SITE_PACKAGES, SETUP_DATA_FILES)],
22
 )

Return to bug 230347