[32946] trunk/dports/lang/nhc98/Portfile
ryandesign at macports.org
ryandesign at macports.org
Tue Jan 15 04:10:43 PST 2008
Revision: 32946
http://trac.macosforge.org/projects/macports/changeset/32946
Author: ryandesign at macports.org
Date: 2008-01-15 04:10:40 -0800 (Tue, 15 Jan 2008)
Log Message:
-----------
nhc98: no longer use the deprecated 'cd' command
Modified Paths:
--------------
trunk/dports/lang/nhc98/Portfile
Modified: trunk/dports/lang/nhc98/Portfile
===================================================================
--- trunk/dports/lang/nhc98/Portfile 2008-01-15 12:01:19 UTC (rev 32945)
+++ trunk/dports/lang/nhc98/Portfile 2008-01-15 12:10:40 UTC (rev 32946)
@@ -38,14 +38,12 @@
configure.args --mandir=${prefix}/share/man/man1 \
--buildwith=gcc
-build { cd ${worksrcpath}
-
- if {${os.platform} == "darwin" && ${os.arch} == "i386"} {
+build { if {${os.platform} == "darwin" && ${os.arch} == "i386"} {
ui_error "nhc98 is not supported on OS X i386 yet"
return 1
}
- system "ulimit -s unlimited && make"
+ system "cd ${worksrcpath} && ulimit -s unlimited && make"
}
post-destroot { file delete -force ${destroot}${prefix}/lib/hmake
@@ -61,8 +59,7 @@
# NB - The greencard-nhc98 and hp2graph scripts are hardlinks to
# the same file. Change one, all are changed.
#
- cd ${destroot}${prefix}/bin
- reinplace "s|${prefix}/bin/harch|${prefix}/bin/harch\-nhc98|" greencard\-nhc98
+ reinplace "s|${prefix}/bin/harch|${prefix}/bin/harch\-nhc98|" ${destroot}${prefix}/bin/greencard\-nhc98
reinplace "s|\{NHC98BINDIR\}/harch|\{NHC98BINDIR\}/harch\-nhc98|" ${destroot}${prefix}/bin/hood
reinplace "s|NHC98BINDIR/harch|NHC98BINDIR/harch\-nhc98|" ${destroot}${prefix}/bin/nhc98
@@ -71,6 +68,5 @@
file delete ${destroot}${prefix}/share/man/man1/hmake.1
}
-post-activate { cd ${prefix}/lib/${name}
- system "find . -name \"*.a\" -exec ranlib -s {} \\;"
+post-activate { system "find ${prefix}/lib/${name} -name \"*.a\" -exec ranlib -s {} \\;"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080115/57182caf/attachment.html
More information about the macports-changes
mailing list