[29313] trunk/dports/sysutils/getopt/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 20 13:35:07 PDT 2007
Revision: 29313
http://trac.macosforge.org/projects/macports/changeset/29313
Author: nox at macports.org
Date: 2007-09-20 13:35:07 -0700 (Thu, 20 Sep 2007)
Log Message:
-----------
getopt:
* Added universal support.
* Changed docdir to a versioned one.
* Added sha1 and rmd160 checksums.
Modified Paths:
--------------
trunk/dports/sysutils/getopt/Portfile
Modified: trunk/dports/sysutils/getopt/Portfile
===================================================================
--- trunk/dports/sysutils/getopt/Portfile 2007-09-20 20:34:27 UTC (rev 29312)
+++ trunk/dports/sysutils/getopt/Portfile 2007-09-20 20:35:07 UTC (rev 29313)
@@ -3,6 +3,7 @@
PortSystem 1.0
name getopt
version 1.1.4
+revision 1
categories sysutils
maintainers boeyms openmaintainer
description Replacement getopt for shell script use
@@ -23,7 +24,9 @@
homepage http://software.frodo.looijaard.name/getopt/
master_sites http://software.frodo.looijaard.name/getopt/files/
-checksums md5 02188ca68da27c4175d6e9f3da732101
+checksums md5 02188ca68da27c4175d6e9f3da732101 \
+ sha1 8b9b329b3a8f5d52c91c0381616ecbd1ba291486 \
+ rmd160 79fffccf1b48956bfc1fbb19c22c2d94adf10dff
patchfiles patch-Makefile
@@ -37,8 +40,16 @@
destroot.target install install_doc
post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} COPYING Changelog README TODO \
- ${destroot}${prefix}/share/doc/${name}
+ ${destroot}${docdir}
}
+variant universal {
+ post-patch {
+ reinplace -E "s/^CFLAGS/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile
+ reinplace -E "s/^LDFLAGS/s|\$| ${configure.universal_ldflags}|" ${worksrcpath}/Makefile
+ }
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070920/28ed6400/attachment.html
More information about the macports-changes
mailing list