pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/emulators



Module Name:    pkgsrc
Committed By:   khorben
Date:           Mon Feb 26 02:25:28 UTC 2018

Modified Files:
        pkgsrc/emulators/unicorn: Makefile PLIST distinfo
Added Files:
        pkgsrc/emulators/py-unicorn: DESCR Makefile PLIST
        pkgsrc/emulators/unicorn: Makefile.common buildlink3.mk

Log Message:
Package the Python bindings for emulators/unicorn

No functional change intended for Unicorn itself.
Inspired by emulators/keystone and emulators/py-keystone.

Tested on NetBSD/amd64.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/py-unicorn/DESCR \
    pkgsrc/emulators/py-unicorn/Makefile pkgsrc/emulators/py-unicorn/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/emulators/unicorn/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/unicorn/Makefile.common \
    pkgsrc/emulators/unicorn/buildlink3.mk
cvs rdiff -u -r1.2 -r1.3 pkgsrc/emulators/unicorn/PLIST
cvs rdiff -u -r1.3 -r1.4 pkgsrc/emulators/unicorn/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/unicorn/Makefile
diff -u pkgsrc/emulators/unicorn/Makefile:1.5 pkgsrc/emulators/unicorn/Makefile:1.6
--- pkgsrc/emulators/unicorn/Makefile:1.5       Mon Feb 19 00:39:52 2018
+++ pkgsrc/emulators/unicorn/Makefile   Mon Feb 26 02:25:28 2018
@@ -1,11 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2018/02/19 00:39:52 kamil Exp $
+# $NetBSD: Makefile,v 1.6 2018/02/26 02:25:28 khorben Exp $
 
-DISTNAME=      unicorn-1.0.1
-CATEGORIES=    emulators
-MASTER_SITES=  ${MASTER_SITE_GITHUB:=unicorn-engine/}
+.include "Makefile.common"
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://www.unicorn-engine.org/
 COMMENT=       CPU emulator engine framework based on QEMU
 LICENSE=       gnu-gpl-v2
 

Index: pkgsrc/emulators/unicorn/PLIST
diff -u pkgsrc/emulators/unicorn/PLIST:1.2 pkgsrc/emulators/unicorn/PLIST:1.3
--- pkgsrc/emulators/unicorn/PLIST:1.2  Mon Feb 19 00:39:52 2018
+++ pkgsrc/emulators/unicorn/PLIST      Mon Feb 26 02:25:28 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2018/02/19 00:39:52 kamil Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/02/26 02:25:28 khorben Exp $
 include/unicorn/arm.h
 include/unicorn/arm64.h
 include/unicorn/m68k.h

Index: pkgsrc/emulators/unicorn/distinfo
diff -u pkgsrc/emulators/unicorn/distinfo:1.3 pkgsrc/emulators/unicorn/distinfo:1.4
--- pkgsrc/emulators/unicorn/distinfo:1.3       Mon Feb 19 00:39:52 2018
+++ pkgsrc/emulators/unicorn/distinfo   Mon Feb 26 02:25:28 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2018/02/19 00:39:52 kamil Exp $
+$NetBSD: distinfo,v 1.4 2018/02/26 02:25:28 khorben Exp $
 
 SHA1 (unicorn-1.0.1.tar.gz) = 85c9d7aad2a87b110b729560ed9333b66018ca6a
 RMD160 (unicorn-1.0.1.tar.gz) = 599b7ce96fe4040a48561bd9474666583265960b

Added files:

Index: pkgsrc/emulators/py-unicorn/DESCR
diff -u /dev/null pkgsrc/emulators/py-unicorn/DESCR:1.1
--- /dev/null   Mon Feb 26 02:25:28 2018
+++ pkgsrc/emulators/py-unicorn/DESCR   Mon Feb 26 02:25:28 2018
@@ -0,0 +1,15 @@
+Unicorn is a lightweight, multi-platform, multi-architecture CPU emulator
+framework based on QEMU.
+
+Unicorn offers some unparalleled features:
+ - Multi-architecture: ARM, AMM64 (ARMv8), M68K, MIPS, SPARC, and X86 (16, 32,
+   64-bit)
+ - Clean/simple/lightweight/intuitive architecture-neutral API
+ - Implemented in pure C language, with bindings for Python, Java, and Go
+ - Native support for Windows & *nix (with Mac OSX, Linux, *BSD & Solaris
+   confirmed)
+ - High performance via Just-In-Time compilation
+ - Support for fine-grained instrumentation at various levels
+ - Thread-safety by design
+
+This package contains the Python bindings for Unicorn.
Index: pkgsrc/emulators/py-unicorn/Makefile
diff -u /dev/null pkgsrc/emulators/py-unicorn/Makefile:1.1
--- /dev/null   Mon Feb 26 02:25:28 2018
+++ pkgsrc/emulators/py-unicorn/Makefile        Mon Feb 26 02:25:28 2018
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2018/02/26 02:25:28 khorben Exp $
+
+.include "../../emulators/unicorn/Makefile.common"
+
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES+=   python
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Python bindings for unicorn
+LICENSE=       gnu-gpl-v2
+
+PYSETUPSUBDIR= bindings/python
+
+.include "../../emulators/unicorn/buildlink3.mk"
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/emulators/py-unicorn/PLIST
diff -u /dev/null pkgsrc/emulators/py-unicorn/PLIST:1.1
--- /dev/null   Mon Feb 26 02:25:28 2018
+++ pkgsrc/emulators/py-unicorn/PLIST   Mon Feb 26 02:25:28 2018
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1 2018/02/26 02:25:28 khorben Exp $
+${PYSITELIB}/${EGG_FILE}/PKG-INFO
+${PYSITELIB}/${EGG_FILE}/SOURCES.txt
+${PYSITELIB}/${EGG_FILE}/dependency_links.txt
+${PYSITELIB}/${EGG_FILE}/top_level.txt
+${PYSITELIB}/${EGG_FILE}/zip-safe
+${PYSITELIB}/unicorn/__init__.py
+${PYSITELIB}/unicorn/__init__.pyc
+${PYSITELIB}/unicorn/__init__.pyo
+${PYSITELIB}/unicorn/arm64_const.py
+${PYSITELIB}/unicorn/arm64_const.pyc
+${PYSITELIB}/unicorn/arm64_const.pyo
+${PYSITELIB}/unicorn/arm_const.py
+${PYSITELIB}/unicorn/arm_const.pyc
+${PYSITELIB}/unicorn/arm_const.pyo
+${PYSITELIB}/unicorn/include/unicorn/arm.h
+${PYSITELIB}/unicorn/include/unicorn/arm64.h
+${PYSITELIB}/unicorn/include/unicorn/m68k.h
+${PYSITELIB}/unicorn/include/unicorn/mips.h
+${PYSITELIB}/unicorn/include/unicorn/sparc.h
+${PYSITELIB}/unicorn/include/unicorn/unicorn.h
+${PYSITELIB}/unicorn/include/unicorn/x86.h
+${PYSITELIB}/unicorn/lib/libunicorn.a
+${PYSITELIB}/unicorn/lib/libunicorn.so
+${PYSITELIB}/unicorn/m68k_const.py
+${PYSITELIB}/unicorn/m68k_const.pyc
+${PYSITELIB}/unicorn/m68k_const.pyo
+${PYSITELIB}/unicorn/mips_const.py
+${PYSITELIB}/unicorn/mips_const.pyc
+${PYSITELIB}/unicorn/mips_const.pyo
+${PYSITELIB}/unicorn/sparc_const.py
+${PYSITELIB}/unicorn/sparc_const.pyc
+${PYSITELIB}/unicorn/sparc_const.pyo
+${PYSITELIB}/unicorn/unicorn.py
+${PYSITELIB}/unicorn/unicorn.pyc
+${PYSITELIB}/unicorn/unicorn.pyo
+${PYSITELIB}/unicorn/unicorn_const.py
+${PYSITELIB}/unicorn/unicorn_const.pyc
+${PYSITELIB}/unicorn/unicorn_const.pyo
+${PYSITELIB}/unicorn/x86_const.py
+${PYSITELIB}/unicorn/x86_const.pyc
+${PYSITELIB}/unicorn/x86_const.pyo

Index: pkgsrc/emulators/unicorn/Makefile.common
diff -u /dev/null pkgsrc/emulators/unicorn/Makefile.common:1.1
--- /dev/null   Mon Feb 26 02:25:28 2018
+++ pkgsrc/emulators/unicorn/Makefile.common    Mon Feb 26 02:25:28 2018
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile.common,v 1.1 2018/02/26 02:25:28 khorben Exp $
+#
+# used by emulators/py-unicorn/Makefile
+
+DISTNAME=      unicorn-1.0.1
+CATEGORIES=    emulators
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=unicorn-engine/}
+
+HOMEPAGE=      http://www.unicorn-engine.org/
+
+DISTINFO_FILE= ${.CURDIR}/../../emulators/unicorn/distinfo
Index: pkgsrc/emulators/unicorn/buildlink3.mk
diff -u /dev/null pkgsrc/emulators/unicorn/buildlink3.mk:1.1
--- /dev/null   Mon Feb 26 02:25:28 2018
+++ pkgsrc/emulators/unicorn/buildlink3.mk      Mon Feb 26 02:25:28 2018
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/02/26 02:25:28 khorben Exp $
+
+BUILDLINK_TREE+=       unicorn
+
+.if !defined(UNICORN_BUILDLINK3_MK)
+UNICORN_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.unicorn+=        unicorn>=1.0.1
+BUILDLINK_PKGSRCDIR.unicorn?=          ../../emulators/unicorn
+.endif # UNICORN_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -unicorn



Home | Main Index | Thread Index | Old Index