mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
New port: emulators/py-unicorn
Python bindings for Unicorn CPU emulator framework
This commit is contained in:
parent
a64e36a3a2
commit
04d13a03c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428964
5 changed files with 56 additions and 0 deletions
|
@ -116,6 +116,7 @@
|
||||||
SUBDIR += ppsspp-qt5
|
SUBDIR += ppsspp-qt5
|
||||||
SUBDIR += py-gns3-converter
|
SUBDIR += py-gns3-converter
|
||||||
SUBDIR += py-nova
|
SUBDIR += py-nova
|
||||||
|
SUBDIR += py-unicorn
|
||||||
SUBDIR += q4wine
|
SUBDIR += q4wine
|
||||||
SUBDIR += qemu
|
SUBDIR += qemu
|
||||||
SUBDIR += qemu-cheri
|
SUBDIR += qemu-cheri
|
||||||
|
|
27
emulators/py-unicorn/Makefile
Normal file
27
emulators/py-unicorn/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= unicorn
|
||||||
|
PORTVERSION= 0.9
|
||||||
|
CATEGORIES= emulators python
|
||||||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
MAINTAINER= antoine@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>
|
3
emulators/py-unicorn/distinfo
Normal file
3
emulators/py-unicorn/distinfo
Normal file
|
@ -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
|
22
emulators/py-unicorn/files/patch-setup.py
Normal file
22
emulators/py-unicorn/files/patch-setup.py
Normal file
|
@ -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)],
|
||||||
|
)
|
3
emulators/py-unicorn/pkg-descr
Normal file
3
emulators/py-unicorn/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Python bindings for Unicorn CPU emulator framework.
|
||||||
|
|
||||||
|
WWW: http://www.unicorn-engine.org/
|
Loading…
Add table
Reference in a new issue