ports/128389: [PATCH]devel/py-distorm: update to 1.7.30

bf bf2006a at yahoo.com
Sun Oct 26 10:10:04 UTC 2008


>Number:         128389
>Category:       ports
>Synopsis:       [PATCH]devel/py-distorm: update to 1.7.30
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 26 10:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        7-STABLE i386
>Organization:
-
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN py-distorm.orig/Makefile py-distorm/Makefile
--- py-distorm.orig/Makefile	2008-10-26 04:12:03.903906878 -0400
+++ py-distorm/Makefile	2008-10-26 05:32:45.379691370 -0400
@@ -6,10 +6,9 @@
 #
 
 PORTNAME=	distorm
-PORTVERSION=	1.7.29
+PORTVERSION=	1.7.30
 CATEGORIES=	devel python
-MASTER_SITES=	http://www.ragestorm.net/distorm/ \
-		http://www.damogran.de/ports/distorm/
+MASTER_SITES=	http://www.ragestorm.net/distorm/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTFILES=	${PORTNAME}64-pkg${PORTVERSION}.tar.bz2 \
 		diSlib64.py
@@ -21,21 +20,26 @@
 USE_BZIP2=	yes
 USE_PYTHON=	yes
 
-WRKSRC=		${WRKDIR}/distorm/build/linux
+WRKSRC=		${WRKDIR}/distorm64/build/linux
 ALL_TARGET=	py
 PLIST_FILES=	%%PYTHON_SITELIBDIR%%/distorm.so \
+		%%PYTHON_SITELIBDIR%%/pydistorm.py \
 		bin/diSlib64.py
 
 .if !defined(NOPORTDOCS)
-DOCSDIR=	${PREFIX}/share/doc/py-distorm
-PORTDOCS=	distorm.html qa.txt vol1.html vol2.html
+DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+PORTDOCS=	distorm.html qa.txt vol1.html vol2.html README
 .endif
 
 post-patch:
-	${REINPLACE_CMD} -e 's,python2.4,${PYTHON_VERSION},' ${WRKDIR}/distorm/src/pydistorm.h
+	${REINPLACE_CMD} -e "s,python2.5,${PYTHON_VERSION}," \
+	${WRKDIR}/distorm64/src/pydistorm.h
+	${REINPLACE_CMD} -e "s,libdistorm64.so,${PYTHON_SITELIBDIR}/distorm.so," \
+	${WRKDIR}/distorm64/python/pydistorm.py
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/distorm.so ${PYTHON_SITELIBDIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/distorm64/python/pydistorm.py ${PYTHON_SITELIBDIR}
 	${ECHO_CMD} '#!'${PYTHON_CMD} | ${CAT} - ${DISTDIR}/diSlib64.py \
 	> ${WRKDIR}/diSlib64.py
 	${INSTALL_SCRIPT} ${WRKDIR}/diSlib64.py ${PREFIX}/bin
@@ -43,9 +47,10 @@
 .if !defined(NOPORTDOCS)
 post-install:
 	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKDIR}/distorm/doc/${f} ${DOCSDIR}
+.for f in ${PORTDOCS:NREADME}
+	${INSTALL_DATA} ${WRKDIR}/distorm64/doc/${f} ${DOCSDIR}
 .endfor
+	${INSTALL_DATA} ${WRKDIR}/distorm64/python/README ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -ruN py-distorm.orig/distinfo py-distorm/distinfo
--- py-distorm.orig/distinfo	2008-10-26 04:12:03.903906878 -0400
+++ py-distorm/distinfo	2008-10-26 05:32:45.379691370 -0400
@@ -1,6 +1,6 @@
-MD5 (distorm64-pkg1.7.29.tar.bz2) = 47f13753cd335463aea6011d76ea1660
-SHA256 (distorm64-pkg1.7.29.tar.bz2) = 6f29b6ada8d0bfbc3945b3aa594db389da18861824a9a42846bbc02bc4a091bc
-SIZE (distorm64-pkg1.7.29.tar.bz2) = 90049
+MD5 (distorm64-pkg1.7.30.tar.bz2) = e436f2b3f0b1baf1350cca15c01e78e5
+SHA256 (distorm64-pkg1.7.30.tar.bz2) = bc2fc90e2111dfbba7fa397725ed6ae8b70477a3f7c60995e73d44a778a751be
+SIZE (distorm64-pkg1.7.30.tar.bz2) = 91976
 MD5 (diSlib64.py) = 57df7ae3c8e74723e1e172b46743d789
 SHA256 (diSlib64.py) = 7efe5b6e4e4070cdb0bfe63fa07ba0578f4299dc520d3b1bd48759297373f06a
 SIZE (diSlib64.py) = 27349


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list