Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2008 10:32:16 GMT
From:      bf <bf2006a@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/123667: [PATCH]devel/libdisasm : update to 0.23
Message-ID:  <200805141032.m4EAWGFv067328@www.freebsd.org>
Resent-Message-ID: <200805141040.m4EAe1Gv060526@freefall.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help

>Number:         123667
>Category:       ports
>Synopsis:       [PATCH]devel/libdisasm : update to 0.23
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 14 10:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        7-STABLE i386
>Organization:
-
>Environment:
>Description:
Update to 0.23.  Install rudimentary command-line interface.  If possible, the Swig interfaces will be added later.  The maintainer of this port, in PR ports/123627, stated that he no longer uses FreeBSD.  If he wants to give up maintainership of this port as well, I'm willing to take it over.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN libdisasm.orig/Makefile libdisasm/Makefile
--- libdisasm.orig/Makefile	2007-10-03 20:41:07.000000000 -0400
+++ libdisasm/Makefile	2008-05-14 06:15:17.419145210 -0400
@@ -6,50 +6,33 @@
 #
 
 PORTNAME=	libdisasm
-PORTVERSION=	0.21
-PORTREVISION=	1
+PORTVERSION=	0.23
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	bastard
-DISTNAME=	libdisasm-0.21-pre3
-EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	lboehne@damogran.de
-COMMENT=	The Bastard Disassembly Environment x86 disassembler library
+COMMENT=	The Bastard Disassembly Environment x86 disassembler library and CLI
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 ONLY_FOR_ARCHS=	i386
 
-post-patch:
-	${REINPLACE_CMD} -e 's, make, gmake,' ${WRKSRC}/Makefile
-
-.if !defined(NOPORTDOCS)
-DOCSDIR=	${DATADIR}/doc
-DOCS=	libdisasm.txt
+.ifndef(NOPORTDOCS)
+PORTDOCS=	libdisasm.txt
 .endif
 
+MAN1=	x86dis.1
 MAN3=	x86_disasm.3 x86_format_insn.3 x86_init.3
 MAN7=	libdisasm.7
 
-do-install:
-	${INSTALL_DATA} ${WRKSRC}/libdisasm/libdisasm.so ${PREFIX}/lib
-	${INSTALL_DATA} ${WRKSRC}/libdisasm/libdisasm.a ${PREFIX}/lib
-	${INSTALL_DATA} ${WRKSRC}/libdisasm/libdis.h ${PREFIX}/include
-	${MKDIR} ${DATADIR}/data
-	${INSTALL_DATA} ${WRKSRC}/libdisasm/ia32_opcode.dat ${DATADIR}/data
-.if !defined(NOPORTDOCS)
-.for i in ${DOCS}
+post-install:
+.ifndef(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
 .endfor
 .endif
-.for i in ${MAN3}
-	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man3
-.endfor
-.for i in ${MAN7}
-	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man7
-.endfor
 
 .include <bsd.port.mk>
diff -ruN libdisasm.orig/distinfo libdisasm/distinfo
--- libdisasm.orig/distinfo	2007-01-18 05:10:56.000000000 -0500
+++ libdisasm/distinfo	2008-05-14 06:08:27.451676440 -0400
@@ -1,3 +1,3 @@
-MD5 (libdisasm-0.21-pre3.tgz) = c3313485ec8cebb7646518a10c3101dc
-SHA256 (libdisasm-0.21-pre3.tgz) = f56a4a07ee8107815e87af3bd7da6348dea91f16ab40a0d90d5a028ef556be90
-SIZE (libdisasm-0.21-pre3.tgz) = 198158
+MD5 (libdisasm-0.23.tar.gz) = fc813fae8fceca92c2e40dac1da69041
+SHA256 (libdisasm-0.23.tar.gz) = de3e578aa582af6e1d7729f39626892fb72dc6573658a221e0905f42a65433da
+SIZE (libdisasm-0.23.tar.gz) = 454721
diff -ruN libdisasm.orig/files/patch-Makefile libdisasm/files/patch-Makefile
--- libdisasm.orig/files/patch-Makefile	2007-01-18 05:10:56.000000000 -0500
+++ libdisasm/files/patch-Makefile	1969-12-31 19:00:00.000000000 -0500
@@ -1,33 +0,0 @@
---- Makefile.old	Sat Apr 29 02:16:24 2006
-+++ Makefile	Thu Jan 18 01:01:08 2007
-@@ -48,7 +48,7 @@
- # ============================================================================
- # TARGETS
- 
--all: $(LIBDIS) $(X86DIS) $(TESTDIS) swig-modules
-+all: $(LIBDIS)
- dummy: x86dis libdisasm test dist swig-modules install clean
- 
- # ------------------------------------------------------- LIBDIS
-@@ -86,15 +86,15 @@
- 	cd swig && make clean
- 
- # ------------------------------------------------------- INSTALL
--install: $(LIBDIS) $(X86DIS) 
-+install: $(LIBDIS)
- #swig-install
- 	# install bindistrib files to INSTALL_LOC
- 	cd libdisasm && make install
--	cd x86dis && make install
--	cd man && make install
--	cd doc && make install
--	cd perl && make install
--	cd swig && make install
-+	#cd x86dis && make install
-+	#cd man && make install
-+	#cd doc && make install
-+	#cd perl && make install
-+	#cd swig && make install
- 
- uninstall:
- 	cd libdisasm && make uninstall
diff -ruN libdisasm.orig/pkg-plist libdisasm/pkg-plist
--- libdisasm.orig/pkg-plist	2007-01-18 05:57:02.000000000 -0500
+++ libdisasm/pkg-plist	2008-05-14 06:08:27.451676440 -0400
@@ -1,8 +1,6 @@
+bin/x86dis
+include/libdis.h
 lib/libdisasm.a
+lib/libdisasm.la
 lib/libdisasm.so
-include/libdis.h
-%%DATADIR%%/data/ia32_opcode.dat
-%%PORTDOCS%%%%DOCSDIR%%/libdisasm.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%DATADIR%%/data
-@dirrm %%DATADIR%%
+lib/libdisasm.so.0


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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200805141032.m4EAWGFv067328>