pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-pyvex Import py-pyvex version 7.8.2.21 from wip



details:   https://anonhg.NetBSD.org/pkgsrc/rev/541c803635c7
branches:  trunk
changeset: 377343:541c803635c7
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Thu Mar 15 02:49:25 2018 +0000

description:
Import py-pyvex version 7.8.2.21 from wip

VEX is an architecture-agnostic, side-effects-free representation of a number
of target machine languages. It abstracts machine code into a representation
designed to make program analysis easier.

PyVEX exposes VEX into Python.

It is maintained by the angr organization on GitHub.

diffstat:

 devel/py-pyvex/DESCR                           |   5 +
 devel/py-pyvex/Makefile                        |  21 +++++++
 devel/py-pyvex/PLIST                           |  77 ++++++++++++++++++++++++++
 devel/py-pyvex/buildlink3.mk                   |  12 ++++
 devel/py-pyvex/distinfo                        |  11 +++
 devel/py-pyvex/patches/patch-pyvex__c_Makefile |  28 +++++++++
 devel/py-pyvex/vex-inplace.mk                  |  19 ++++++
 devel/py-pyvex/vex.mk                          |  13 ++++
 8 files changed, 186 insertions(+), 0 deletions(-)

diffs (218 lines):

diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/DESCR      Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,5 @@
+VEX is an architecture-agnostic, side-effects-free representation of a number
+of target machine languages. It abstracts machine code into a representation
+designed to make program analysis easier.
+
+PyVEX exposes VEX into Python.
diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/Makefile   Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2018/03/15 02:49:25 khorben Exp $
+
+DISTNAME=      pyvex-7.8.2.21
+PKGNAME=       ${PYPKGPREFIX}-${EGG_NAME}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=angr/}
+GITHUB_PROJECT=        pyvex
+GITHUB_TAG=    29e88cbd20d628421a903e3dfec0027dd01be233
+
+MAINTAINER=    khorben%defora.org@localhost
+HOMEPAGE=      https://github.com/angr/pyvex/
+COMMENT=       Python bindings for Valgrind's VEX IR
+LICENSE=       2-clause-bsd
+
+USE_TOOLS+=    gmake
+
+PYTHON_VERSIONS_ACCEPTED=      27
+
+.include "vex-inplace.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/PLIST      Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,77 @@
+@comment $NetBSD: PLIST,v 1.1 2018/03/15 02:49:25 khorben Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pyvex/__init__.py
+${PYSITELIB}/pyvex/__init__.pyc
+${PYSITELIB}/pyvex/__init__.pyo
+${PYSITELIB}/pyvex/block.py
+${PYSITELIB}/pyvex/block.pyc
+${PYSITELIB}/pyvex/block.pyo
+${PYSITELIB}/pyvex/const.py
+${PYSITELIB}/pyvex/const.pyc
+${PYSITELIB}/pyvex/const.pyo
+${PYSITELIB}/pyvex/enums.py
+${PYSITELIB}/pyvex/enums.pyc
+${PYSITELIB}/pyvex/enums.pyo
+${PYSITELIB}/pyvex/errors.py
+${PYSITELIB}/pyvex/errors.pyc
+${PYSITELIB}/pyvex/errors.pyo
+${PYSITELIB}/pyvex/expr.py
+${PYSITELIB}/pyvex/expr.pyc
+${PYSITELIB}/pyvex/expr.pyo
+${PYSITELIB}/pyvex/include/libvex.h
+${PYSITELIB}/pyvex/include/libvex_basictypes.h
+${PYSITELIB}/pyvex/include/libvex_emnote.h
+${PYSITELIB}/pyvex/include/libvex_guest_amd64.h
+${PYSITELIB}/pyvex/include/libvex_guest_arm.h
+${PYSITELIB}/pyvex/include/libvex_guest_arm64.h
+${PYSITELIB}/pyvex/include/libvex_guest_mips32.h
+${PYSITELIB}/pyvex/include/libvex_guest_mips64.h
+${PYSITELIB}/pyvex/include/libvex_guest_offsets.h
+${PYSITELIB}/pyvex/include/libvex_guest_ppc32.h
+${PYSITELIB}/pyvex/include/libvex_guest_ppc64.h
+${PYSITELIB}/pyvex/include/libvex_guest_s390x.h
+${PYSITELIB}/pyvex/include/libvex_guest_tilegx.h
+${PYSITELIB}/pyvex/include/libvex_guest_x86.h
+${PYSITELIB}/pyvex/include/libvex_ir.h
+${PYSITELIB}/pyvex/include/libvex_s390x_common.h
+${PYSITELIB}/pyvex/include/libvex_trc_values.h
+${PYSITELIB}/pyvex/include/pyvex.h
+${PYSITELIB}/pyvex/lib/libpyvex.a
+${PYSITELIB}/pyvex/lib/libpyvex.so
+${PYSITELIB}/pyvex/lift/__init__.py
+${PYSITELIB}/pyvex/lift/__init__.pyc
+${PYSITELIB}/pyvex/lift/__init__.pyo
+${PYSITELIB}/pyvex/lift/fixes.py
+${PYSITELIB}/pyvex/lift/fixes.pyc
+${PYSITELIB}/pyvex/lift/fixes.pyo
+${PYSITELIB}/pyvex/lift/libvex.py
+${PYSITELIB}/pyvex/lift/libvex.pyc
+${PYSITELIB}/pyvex/lift/libvex.pyo
+${PYSITELIB}/pyvex/lift/util/__init__.py
+${PYSITELIB}/pyvex/lift/util/__init__.pyc
+${PYSITELIB}/pyvex/lift/util/__init__.pyo
+${PYSITELIB}/pyvex/lift/util/instr_helper.py
+${PYSITELIB}/pyvex/lift/util/instr_helper.pyc
+${PYSITELIB}/pyvex/lift/util/instr_helper.pyo
+${PYSITELIB}/pyvex/lift/util/irsb_postprocess.py
+${PYSITELIB}/pyvex/lift/util/irsb_postprocess.pyc
+${PYSITELIB}/pyvex/lift/util/irsb_postprocess.pyo
+${PYSITELIB}/pyvex/lift/util/lifter_helper.py
+${PYSITELIB}/pyvex/lift/util/lifter_helper.pyc
+${PYSITELIB}/pyvex/lift/util/lifter_helper.pyo
+${PYSITELIB}/pyvex/lift/util/syntax_wrapper.py
+${PYSITELIB}/pyvex/lift/util/syntax_wrapper.pyc
+${PYSITELIB}/pyvex/lift/util/syntax_wrapper.pyo
+${PYSITELIB}/pyvex/lift/util/vex_helper.py
+${PYSITELIB}/pyvex/lift/util/vex_helper.pyc
+${PYSITELIB}/pyvex/lift/util/vex_helper.pyo
+${PYSITELIB}/pyvex/stmt.py
+${PYSITELIB}/pyvex/stmt.pyc
+${PYSITELIB}/pyvex/stmt.pyo
+${PYSITELIB}/pyvex/vex_ffi.py
+${PYSITELIB}/pyvex/vex_ffi.pyc
+${PYSITELIB}/pyvex/vex_ffi.pyo
diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/buildlink3.mk      Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/03/15 02:49:25 khorben Exp $
+
+BUILDLINK_TREE+=       py-pyvex
+
+.if !defined(PY_PYVEX_BUILDLINK3_MK)
+PY_PYVEX_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.py-pyvex+=       ${PYPKGPREFIX}-pyvex>=7.8.2.21
+BUILDLINK_PKGSRCDIR.py-pyvex?=         ../../devel/py-pyvex
+.endif  # PY_PYVEX_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -py-pyvex
diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/distinfo   Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2018/03/15 02:49:25 khorben Exp $
+
+SHA1 (pyvex-7.8.2.21-29e88cbd20d628421a903e3dfec0027dd01be233.tar.gz) = 302eb342b4e58b5210b7df46423eece7d57370ab
+RMD160 (pyvex-7.8.2.21-29e88cbd20d628421a903e3dfec0027dd01be233.tar.gz) = 935addc582da04294e1d79f052abe501e507caa8
+SHA512 (pyvex-7.8.2.21-29e88cbd20d628421a903e3dfec0027dd01be233.tar.gz) = 
2e4df626cc036e6522dc214f191a0e55bcd7ed8dccf5c7fbc59beaacce84aad55174493d826c1c567b385bfde1a80fc492453cf4a75599b1ad059b955ff7e84e
+Size (pyvex-7.8.2.21-29e88cbd20d628421a903e3dfec0027dd01be233.tar.gz) = 69057 bytes
+SHA1 (vex-0.0.0-7394e917fc86c8f042d8ce51a609810a97c20fd7.tar.gz) = 2dda4be121c95862222bf848b08373a5373b996b
+RMD160 (vex-0.0.0-7394e917fc86c8f042d8ce51a609810a97c20fd7.tar.gz) = 9aa06510c61b2ea33206519b5eef04fa30142152
+SHA512 (vex-0.0.0-7394e917fc86c8f042d8ce51a609810a97c20fd7.tar.gz) = a74607a0c8aa6a547c65e3fe97a9c28c787c0f14be20c8c6a9f67c8f1b05fd23b2acdc4b041a2db6d5204c64f830f6a165d539e325ac016b2c408f18a01468ea
+Size (vex-0.0.0-7394e917fc86c8f042d8ce51a609810a97c20fd7.tar.gz) = 3539578 bytes
+SHA1 (patch-pyvex__c_Makefile) = f5ba4c1b7e288ea9c0513b6bf08aee9833cffc12
diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/patches/patch-pyvex__c_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/patches/patch-pyvex__c_Makefile    Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-pyvex__c_Makefile,v 1.1 2018/03/15 02:49:25 khorben Exp $
+
+Add support for NetBSD.
+Correct the syntax for GCC in C99 mode.
+
+--- pyvex_c/Makefile.orig      2018-02-21 22:03:16.000000000 +0000
++++ pyvex_c/Makefile
+@@ -9,6 +9,11 @@ ifeq ($(UNAME), Linux)
+       STATIC_LIBRARY_FILE=libpyvex.a
+       LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
+ endif
++ifeq ($(UNAME), NetBSD)
++      LIBRARY_FILE=libpyvex.so
++      STATIC_LIBRARY_FILE=libpyvex.a
++      LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
++endif
+ ifeq ($(findstring MINGW,$(UNAME)), MINGW)
+       LIBRARY_FILE=pyvex.dll
+       STATIC_LIBRARY_FILE=libpyvex.a
+@@ -18,7 +23,7 @@ endif
+ CC=gcc
+ AR=ar
+ INCFLAGS=-I $(VEX_INCLUDE_PATH)
+-CFLAGS=-g -O2 -shared -fPIC --std=c99 $(INCFLAGS)
++CFLAGS=-g -O2 -shared -fPIC -std=c99 $(INCFLAGS)
+ 
+ OBJECTS=pyvex.o logging.o
+ 
diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/vex-inplace.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/vex-inplace.mk     Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: vex-inplace.mk,v 1.1 2018/03/15 02:49:25 khorben Exp $
+#
+# Include this file to extract VEX source into the WRKSRC of
+# another package. This is used by angr to build VEX in place.
+
+post-fetch: fetch-inplace-vex
+
+post-extract: extract-inplace-vex
+
+.PHONY: fetch-inplace-vex
+fetch-inplace-vex:
+       (${MAKE} -f vex.mk WRKDIR=${WRKSRC}/.devel.vex EXTRACT_DIR=${WRKSRC} \
+               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME:C/a$$//}' SKIP_DEPENDS=YES checksum)
+
+.PHONY: extract-inplace-vex
+extract-inplace-vex:
+       (${MAKE} -f vex.mk WRKDIR=${WRKSRC}/.devel.vex EXTRACT_DIR=${WRKSRC} \
+               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME:C/a$$//}' SKIP_DEPENDS=YES extract)
+       ${MV} ${WRKSRC}/vex-* ${WRKSRC}/vex
diff -r 2d13a01a18f6 -r 541c803635c7 devel/py-pyvex/vex.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyvex/vex.mk     Thu Mar 15 02:49:25 2018 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: vex.mk,v 1.1 2018/03/15 02:49:25 khorben Exp $
+
+DISTNAME=      vex-0.0.0
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=angr/}
+GITHUB_TAG=    7394e917fc86c8f042d8ce51a609810a97c20fd7
+
+MAINTAINER=    khorben%defora.org@localhost
+HOMEPAGE=      https://github.com/angr/vex/
+COMMENT=       Patched version of VEX to work with PyVEX
+LICENSE=       2-clause-bsd
+
+.include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index