Skip to content

Commit

Permalink
initial work on the distorm3 disassembler library.
Browse files Browse the repository at this point in the history
New version has issues, so I am waiting for upstream to fix. Also I need
to SUBDIRS/MULTIPACKAGE the various bindings.
  • Loading branch information
vext01 committed Aug 8, 2012
1 parent ca38c54 commit 9ce6f37
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
38 changes: 38 additions & 0 deletions 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>
2 changes: 2 additions & 0 deletions devel/distorm/distinfo
@@ -0,0 +1,2 @@
SHA256 (distorm3-3.zip) = 3c8YjHyAo97ZaLU18yHpgHIs0QPSaa29mJypm03o8vw=
SIZE (distorm3-3.zip) = 142948
6 changes: 6 additions & 0 deletions 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.
9 changes: 9 additions & 0 deletions 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.