svn commit: r428964 - in head/emulators: . py-unicorn py-unicorn/files
Antoine Brodin
antoine at FreeBSD.org
Mon Dec 19 23:07:26 UTC 2016
Author: antoine
Date: Mon Dec 19 23:07:25 2016
New Revision: 428964
URL: https://svnweb.freebsd.org/changeset/ports/428964
Log:
New port: emulators/py-unicorn
Python bindings for Unicorn CPU emulator framework
Added:
head/emulators/py-unicorn/
head/emulators/py-unicorn/Makefile (contents, props changed)
head/emulators/py-unicorn/distinfo (contents, props changed)
head/emulators/py-unicorn/files/
head/emulators/py-unicorn/files/patch-setup.py (contents, props changed)
head/emulators/py-unicorn/pkg-descr (contents, props changed)
Modified:
head/emulators/Makefile
Modified: head/emulators/Makefile
==============================================================================
--- head/emulators/Makefile Mon Dec 19 23:06:24 2016 (r428963)
+++ head/emulators/Makefile Mon Dec 19 23:07:25 2016 (r428964)
@@ -116,6 +116,7 @@
SUBDIR += ppsspp-qt5
SUBDIR += py-gns3-converter
SUBDIR += py-nova
+ SUBDIR += py-unicorn
SUBDIR += q4wine
SUBDIR += qemu
SUBDIR += qemu-cheri
Added: head/emulators/py-unicorn/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/py-unicorn/Makefile Mon Dec 19 23:07:25 2016 (r428964)
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME= unicorn
+PORTVERSION= 0.9
+CATEGORIES= emulators python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= antoine at FreeBSD.org
+COMMENT= Python bindings for Unicorn CPU emulator framework
+
+LICENSE= BSD3CLAUSE
+
+LIB_DEPENDS= libunicorn.so:emulators/unicorn
+
+USE_GITHUB= yes
+GH_ACCOUNT= unicorn-engine
+
+USES= python
+USE_PYTHON= distutils autoplist
+WRKSRC_SUBDIR= bindings/python
+
+do-test:
+ @(cd ${WRKSRC}; for sample in sample_*.py; do \
+ ${SETENV} ${TEST_ENV} ${PYTHON_CMD} $${sample}; \
+ done)
+
+.include <bsd.port.mk>
Added: head/emulators/py-unicorn/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/py-unicorn/distinfo Mon Dec 19 23:07:25 2016 (r428964)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1481841704
+SHA256 (unicorn-engine-unicorn-0.9_GH0.tar.gz) = 1ca03b1c8f6360335567b528210713461e839d47c4eb7c676ba3aa4f72b8cf10
+SIZE (unicorn-engine-unicorn-0.9_GH0.tar.gz) = 2576109
Added: head/emulators/py-unicorn/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/py-unicorn/files/patch-setup.py Mon Dec 19 23:07:25 2016 (r428964)
@@ -0,0 +1,22 @@
+# Do not bundle libunicorn.so
+
+--- setup.py.orig 2015-10-15 16:22:04 UTC
++++ setup.py
+@@ -166,17 +166,4 @@ setup(
+ 'Programming Language :: Python :: 3',
+ ],
+ requires=['ctypes'],
+- cmdclass=dict(
+- build_clib=custom_build_clib,
+- sdist=custom_sdist,
+- ),
+-
+- libraries=[(
+- 'unicorn', dict(
+- package='unicorn',
+- sources=dummy_src()
+- ),
+- )],
+-
+- data_files=[(SITE_PACKAGES, SETUP_DATA_FILES)],
+ )
Added: head/emulators/py-unicorn/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/py-unicorn/pkg-descr Mon Dec 19 23:07:25 2016 (r428964)
@@ -0,0 +1,3 @@
+Python bindings for Unicorn CPU emulator framework.
+
+WWW: http://www.unicorn-engine.org/
More information about the svn-ports-head
mailing list