Browse files

initial work on the distorm3 disassembler library.

New version has issues, so I am waiting for upstream to fix. Also I need
to SUBDIRS/MULTIPACKAGE the various bindings.
  • Loading branch information...
1 parent ca38c54 commit 9ce6f37526054a5053f66f1c1c0c1688064446db @vext01 vext01 committed Aug 8, 2012
Showing with 55 additions and 0 deletions.
  1. +38 −0 devel/distorm/Makefile
  2. +2 −0 devel/distorm/distinfo
  3. +6 −0 devel/distorm/pkg/DESCR
  4. +9 −0 devel/distorm/pkg/PLIST
View
38 devel/distorm/Makefile
@@ -0,0 +1,38 @@
+# $OpenBSD$
+
+# XXX this is just the python binding
+# I need to MULTIPACKAGE or SUBDIR this to make one package
+# for each binding
+
+# XXX there is a bug in the DecomposeInterface preventing me from submitting
+# this: http://code.google.com/p/distorm/issues/detail?id=51
+
+COMMENT = lightweight disassembler library for x86/AMD64
+
+MODPY_EGG_VERSION = 3
+DISTNAME = distorm3-${MODPY_EGG_VERSION}
+PKGNAME = py-${DISTNAME}
+CATEGORIES = devel
+EXTRACT_SUFX = .zip
+
+HOMEPAGE = http://ragestorm.net/distorm/
+MAINTAINER = Edd Barrett <edd@openbsd.org>
+
+# GPLv2 - or commercial license if consumer is not GPLv2 XXX
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP = Yes
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP = Yes
+
+MASTER_SITES = http://distorm.googlecode.com/files/
+MODULES = lang/python
+NO_REGRESS = Yes
+
+EXAMPLEDIR = ${PREFIX}/share/examples/distorm
+post-install:
+ ${INSTALL_DATA_DIR} ${EXAMPLEDIR}
+ mv ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/distorm3/sample.py \
+ ${EXAMPLEDIR}
+ rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/distorm3/sample.py{c,o}
+
+.include <bsd.port.mk>
View
2 devel/distorm/distinfo
@@ -0,0 +1,2 @@
+SHA256 (distorm3-3.zip) = 3c8YjHyAo97ZaLU18yHpgHIs0QPSaa29mJypm03o8vw=
+SIZE (distorm3-3.zip) = 142948
View
6 devel/distorm/pkg/DESCR
@@ -0,0 +1,6 @@
+diStorm [pronounced dee�storm]
+
+Definition: A lightweight, Easy-to-Use and Fast Disassembler/Decomposer
+Library for x86/AMD64. A Decomposer means that you get a binary
+structure that describes an instruction rather than textual
+representation.
View
9 devel/distorm/pkg/PLIST
@@ -0,0 +1,9 @@
+@comment $OpenBSD$
+lib/python${MODPY_VERSION}/site-packages/distorm3/
+lib/python${MODPY_VERSION}/site-packages/distorm3-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
+lib/python${MODPY_VERSION}/site-packages/distorm3/__init__.py
+lib/python${MODPY_VERSION}/site-packages/distorm3/__init__.pyc
+lib/python${MODPY_VERSION}/site-packages/distorm3/__init__.pyo
+lib/python${MODPY_VERSION}/site-packages/distorm3/libdistorm${MODPY_EGG_VERSION}.so
+share/examples/distorm/
+share/examples/distorm/sample.py

0 comments on commit 9ce6f37

Please sign in to comment.