From nobody@FreeBSD.org  Tue Jan 16 11:13:01 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5697016A416
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jan 2007 11:13:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 3A6A313C44C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jan 2007 11:13:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0GBD0E3060550
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jan 2007 11:13:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l0GBD0ra060549;
	Tue, 16 Jan 2007 11:13:00 GMT
	(envelope-from nobody)
Message-Id: <200701161113.l0GBD0ra060549@www.freebsd.org>
Date: Tue, 16 Jan 2007 11:13:00 GMT
From: Lutz Boehne<lboehne@damogran.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: devel/py-distorm Fast x86 and x86-64 disassembler library for python
X-Send-Pr-Version: www-3.0

>Number:         107977
>Category:       ports
>Synopsis:       New port: devel/py-distorm Fast x86 and x86-64 disassembler library for python
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 16 11:20:24 GMT 2007
>Closed-Date:    Wed Jan 17 20:47:08 GMT 2007
>Last-Modified:  Wed Jan 17 20:51:13 GMT 2007
>Originator:     Lutz Boehne
>Release:        RELENG_6
>Organization:
>Environment:
>Description:
ports/106093 can be closed now, this is a new version of the port. Many thanks to Li-Wen Hsu for comments and patches.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-distorm
#	py-distorm/Makefile
#	py-distorm/distinfo
#	py-distorm/pkg-plist
#	py-distorm/pkg-descr
#	py-distorm/files
#	py-distorm/files/patch-Makefile
#
echo c - py-distorm
mkdir -p py-distorm > /dev/null 2>&1
echo x - py-distorm/Makefile
sed 's/^X//' >py-distorm/Makefile << 'END-of-py-distorm/Makefile'
X# New ports collection makefile for:	py-distorm
X# Date created:				1 December 2006
X# Whom:					Lutz Boehne <lboehne@damogran.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	distorm
XPORTVERSION=	1.5.17
XCATEGORIES=	devel python
XMASTER_SITES=	http://www.ragestorm.net/distorm/ \
X		http://www.damogran.de/ports/distorm/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	${PORTNAME}-pkg${PORTVERSION}
X
XMAINTAINER=	lboehne@damogran.de
XCOMMENT=	Fast x86 and x86-64 disassembler library for python
X
XUSE_BZIP2=	yes
XUSE_PYTHON=	yes
X
XWRKSRC=		${WRKDIR}/distorm/build/linux
X
X.if !defined(NOPORTDOCS)
XDOCSDIR=	${PREFIX}/share/doc/py-distorm
XDOCS=		distorm.html qa.txt vol1.html vol2.html
X.endif
X
Xpost-patch:
X	${REINPLACE_CMD} -e s,XXPYTHON_LIBDIRXX,${PYTHON_LIBDIR}, ${WRKDIR}/distorm/build/linux/Makefile
X	${REINPLACE_CMD} -e s,python2.4,${PYTHON_VERSION}, ${WRKDIR}/distorm/src/pydistorm.h
X
X.if !defined(NOPORTDOCS)
Xpre-install:
X	${MKDIR} ${DOCSDIR}
X.for f in ${DOCS}
X	${INSTALL_DATA} ${WRKDIR}/distorm/doc/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-py-distorm/Makefile
echo x - py-distorm/distinfo
sed 's/^X//' >py-distorm/distinfo << 'END-of-py-distorm/distinfo'
XMD5 (distorm-pkg1.5.17.tar.bz2) = 2d54713a335490755ffa2368b3c4ff98
XSHA256 (distorm-pkg1.5.17.tar.bz2) = 6d1f89fdf402b53d65c178010fca795c1780b02cd1979f85abacd67168c92fa9
XSIZE (distorm-pkg1.5.17.tar.bz2) = 82093
END-of-py-distorm/distinfo
echo x - py-distorm/pkg-plist
sed 's/^X//' >py-distorm/pkg-plist << 'END-of-py-distorm/pkg-plist'
X%%PYTHON_LIBDIR%%/lib-dynload/distorm.so
X%%PORTDOCS%%%%DOCSDIR%%/distorm.html
X%%PORTDOCS%%%%DOCSDIR%%/qa.txt
X%%PORTDOCS%%%%DOCSDIR%%/vol1.html
X%%PORTDOCS%%%%DOCSDIR%%/vol2.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-py-distorm/pkg-plist
echo x - py-distorm/pkg-descr
sed 's/^X//' >py-distorm/pkg-descr << 'END-of-py-distorm/pkg-descr'
XdiStorm is a binary stream disassembler. It's capable of disassembling
X80x86 instructions in 64 bits (AMD64, X86-64) and both in 16 and 32 bits.
XIn addition, it disassembles FPU, MMX, SSE, SSE2, SSE3, SSE4, 3DNow! (w/
Xextensions), new x86-64 instruction sets, VMX, and AMD's SVM! diStorm was
Xwritten to decode quickly every instruction as accurately as possible.
XRobust decoding, while taking special care for valid or unused prefixes,
Xis what makes this disassembler powerful, especially for research.
XAnother benefit that might come in handy is that the module was written
Xas multi-threaded, which means you could disassemble several streams or
Xmore simultaneously.
X
XWWW: http://www.ragestorm.net/distorm/
END-of-py-distorm/pkg-descr
echo c - py-distorm/files
mkdir -p py-distorm/files > /dev/null 2>&1
echo x - py-distorm/files/patch-Makefile
sed 's/^X//' >py-distorm/files/patch-Makefile << 'END-of-py-distorm/files/patch-Makefile'
X--- Makefile.orig	Sat Jun  3 19:24:48 2006
X+++ Makefile	Wed Jan 10 12:45:23 2007
X@@ -5,8 +5,7 @@
X TARGET	= libdistorm64.so
X COBJS	= ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/distorm.o ../../src/decoder.o
X PYOBJS	= ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/pydistorm.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/decoder.o
X-CC	= gcc
X-CFLAGS	= -O2 -Wall -fPIC
X+CFLAGS+= -fPIC -I${LOCALBASE}/include
X 
X all: clib py
X 
X@@ -21,8 +20,7 @@
X 	${CC} ${CFLAGS} ${VERSION} ${PYOBJS} -fPIC -shared -o ${TARGET}
X 
X install: libdistorm64.so
X-	install -s ${TARGET} /usr/local/lib
X-	@echo "... running ldconfig might be smart ..."
X+	${INSTALL} -s libdistorm64.so XXPYTHON_LIBDIRXX/lib-dynload/distorm.so
X 
X .c.o:
X 	${CC} ${CFLAGS} ${VERSION} -c $< -o $@
END-of-py-distorm/files/patch-Makefile
exit


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jan 16 11:20:34 UTC 2007 
Responsible-Changed-Why:  
freebsd-python@ wants to have py- PRs 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107977 
Responsible-Changed-From-To: freebsd-python->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Wed Jan 17 01:28:47 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107977 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Wed Jan 17 20:47:06 UTC 2007 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107977 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/107977: commit references a PR
Date: Wed, 17 Jan 2007 20:47:38 +0000 (UTC)

 miwi        2007-01-17 20:47:29 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel                Makefile 
   Added files:
     devel/py-distorm     Makefile distinfo pkg-descr pkg-plist 
     devel/py-distorm/files patch-Makefile 
   Log:
   diStorm is a binary stream disassembler. It's capable of disassembling
   80x86 instructions in 64 bits (AMD64, X86-64) and both in 16 and 32 bits.
   In addition, it disassembles FPU, MMX, SSE, SSE2, SSE3, SSE4, 3DNow! (w/
   extensions), new x86-64 instruction sets, VMX, and AMD's SVM! diStorm was
   written to decode quickly every instruction as accurately as possible.
   Robust decoding, while taking special care for valid or unused prefixes,
   is what makes this disassembler powerful, especially for research.
   Another benefit that might come in handy is that the module was written
   as multi-threaded, which means you could disassemble several streams or
   more simultaneously.
   
   WWW: http://www.ragestorm.net/distorm/
   
   PR:             ports/107977
   Submitted by:   Lutz Boehne <lboehne at damogran.de>
   
   Revision  Changes    Path
   1.2599    +1 -0      ports/devel/Makefile
   1.1       +47 -0     ports/devel/py-distorm/Makefile (new)
   1.1       +3 -0      ports/devel/py-distorm/distinfo (new)
   1.1       +22 -0     ports/devel/py-distorm/files/patch-Makefile (new)
   1.1       +12 -0     ports/devel/py-distorm/pkg-descr (new)
   1.1       +6 -0      ports/devel/py-distorm/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
