[27100] trunk/dports/devel/gmp-cxx-wrappers/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 19 07:48:16 PDT 2007
Revision: 27100
http://trac.macosforge.org/projects/macports/changeset/27100
Author: jmpp at macports.org
Date: 2007-07-19 07:48:16 -0700 (Thu, 19 Jul 2007)
Log Message:
-----------
Somewhat cleaning out the Portfile out of common sense (that is, I haven't really tried it,
I'm just catering to #12267):
* configure.cflags --> configure.cflags-append;
* no need to have the test suite as a variant and then enforce it, we have test.* commands;
* we have an internal 'delete' command, use it;
* there's no 'darwin x86', it's 'darwin i386' (which was already there and repeating what
was in 'darwin x86').
Feel free to scream if these changes break the port in any way.
Modified Paths:
--------------
trunk/dports/devel/gmp-cxx-wrappers/Portfile
Modified: trunk/dports/devel/gmp-cxx-wrappers/Portfile
===================================================================
--- trunk/dports/devel/gmp-cxx-wrappers/Portfile 2007-07-19 14:46:43 UTC (rev 27099)
+++ trunk/dports/devel/gmp-cxx-wrappers/Portfile 2007-07-19 14:48:16 UTC (rev 27100)
@@ -26,40 +26,30 @@
worksrcdir gmp-${version}
configure.env ABI=32
-configure.cflags -force_cpusubtype_ALL
+configure.cflags-append -force_cpusubtype_ALL
configure.args \
--infodir=\\\${prefix}/share/info \
--enable-shared \
--enable-cxx
+test.run yes
+test.target check
+
post-destroot {
ui_msg "$UI_PREFIX Running ranlib on static libraries"
system "ranlib ${destroot}${prefix}/lib/libgmpxx.a"
- file delete ${destroot}${prefix}/include/gmp.h
+ delete ${destroot}${prefix}/include/gmp.h
- file delete ${destroot}${prefix}/lib/libgmp.a
- file delete ${destroot}${prefix}/lib/libgmp.la
- file delete ${destroot}${prefix}/lib/libgmp.dylib
- file delete ${destroot}${prefix}/lib/libgmp.3.dylib
- file delete ${destroot}${prefix}/lib/libgmp.3.4.1.dylib
+ delete ${destroot}${prefix}/lib/libgmp.a
+ delete ${destroot}${prefix}/lib/libgmp.la
+ delete ${destroot}${prefix}/lib/libgmp.dylib
+ delete ${destroot}${prefix}/lib/libgmp.3.dylib
+ delete ${destroot}${prefix}/lib/libgmp.3.4.1.dylib
- file delete -force ${destroot}${prefix}/share
+ delete ${destroot}${prefix}/share
}
-default_variants +test
-variant test {
- test.run yes
- test.cmd make
- test.target check
-}
-
-platform darwin x86 {
- configure.env-delete ABI=32
- configure.args-append --host=none-apple-darwin
- configure.cflags-delete -force_cpusubtype_ALL
-}
-
platform darwin i386 {
configure.env-delete ABI=32
configure.args-append --host=none-apple-darwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070719/f5e6e9f5/attachment.html
More information about the macports-changes
mailing list