[32668] trunk/dports/archivers/dact/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jan 10 06:17:17 PST 2008


Revision: 32668
          http://trac.macosforge.org/projects/macports/changeset/32668
Author:   ryandesign at macports.org
Date:     2008-01-10 06:17:15 -0800 (Thu, 10 Jan 2008)

Log Message:
-----------
dact: don't use deprecated 'cd' command

Modified Paths:
--------------
    trunk/dports/archivers/dact/Portfile

Modified: trunk/dports/archivers/dact/Portfile
===================================================================
--- trunk/dports/archivers/dact/Portfile	2008-01-10 14:12:57 UTC (rev 32667)
+++ trunk/dports/archivers/dact/Portfile	2008-01-10 14:17:15 UTC (rev 32668)
@@ -24,29 +24,27 @@
 depends_lib		port:libmcrypt port:zlib port:bzip2 port:lzo
 
 post-patch {
-	cd ${worksrcpath}
-
 	# checking how to create shared objects... cant
 	# configure: error: We are unable to make shared objects.
 
-	reinplace "s/ -bind_at_load//" configure
+	reinplace "s/ -bind_at_load//" ${worksrcpath}/configure
 
 	# Lodable objects are bundles on OS X
 
-	reinplace "s/=\\.so/=\\.bundle/g" Makefile.in
-	reinplace -E "s/\[\[:<:\]\]so\[\[:>:\]\]/bundle/g" Makefile.in Makefile.dep
-	reinplace -E "/AS_MODULE/s/(SHOBJLDFLAGS)/\\1:dynamiclib=bundle/" Makefile.in
-	reinplace -E "/for/s/\\(MODS\\)/(ALGO:.c=.bundle)/" Makefile.in
+	reinplace "s/=\\.so/=\\.bundle/g" ${worksrcpath}/Makefile.in
+	reinplace -E "s/\[\[:<:\]\]so\[\[:>:\]\]/bundle/g" ${worksrcpath}/Makefile.in ${worksrcpath}/Makefile.dep
+	reinplace -E "/AS_MODULE/s/(SHOBJLDFLAGS)/\\1:dynamiclib=bundle/" ${worksrcpath}/Makefile.in
+	reinplace -E "/for/s/\\(MODS\\)/(ALGO:.c=.bundle)/" ${worksrcpath}/Makefile.in
 
 	# ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
 	# module_shr.o definition of common _modules (size 1024)
 	# net_shr.o definition of common _dact_urls (size 3072)
 	# ui_shr.o definition of common _dact_ui_statusvar (size 128)
 
-	reinplace -E "s/^(void)/static \\1/" module.c
-	reinplace -E "/^extern void/d" module.h
-	reinplace -E "s/^(struct.*;)\$/static \\1/" net.c
-	reinplace -E "s/^(char.*;)\$/static \\1/" ui.c
+	reinplace -E "s/^(void)/static \\1/" ${worksrcpath}/module.c
+	reinplace -E "/^extern void/d" ${worksrcpath}/module.h
+	reinplace -E "s/^(struct.*;)\$/static \\1/" ${worksrcpath}/net.c
+	reinplace -E "s/^(char.*;)\$/static \\1/" ${worksrcpath}/ui.c
 }
 
 configure.args	--mandir=\\\${prefix}/share/man \

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080110/d464a54e/attachment.html


More information about the macports-changes mailing list