[63568] trunk/dports/sysutils/log4shib/Portfile

scantor at macports.org scantor at macports.org
Mon Feb 8 18:55:49 PST 2010


Revision: 63568
          http://trac.macports.org/changeset/63568
Author:   scantor at macports.org
Date:     2010-02-08 18:55:49 -0800 (Mon, 08 Feb 2010)
Log Message:
-----------
Workaround for universal variant until libtool can be updated

Modified Paths:
--------------
    trunk/dports/sysutils/log4shib/Portfile

Modified: trunk/dports/sysutils/log4shib/Portfile
===================================================================
--- trunk/dports/sysutils/log4shib/Portfile	2010-02-09 02:55:35 UTC (rev 63567)
+++ trunk/dports/sysutils/log4shib/Portfile	2010-02-09 02:55:49 UTC (rev 63568)
@@ -24,9 +24,28 @@
 configure.args      --disable-doxygen \
                     --disable-dot \
                     --disable-html-docs \
-                    --disable-latex-docs \
-                    --disable-static
+                    --disable-latex-docs
 
+variant universal {
+    depends_lib-append  port:libtool
+}
+
+post-configure {
+    if {[variant_isset universal]} {
+        file copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
+    }
+}
+
+post-build {
+    if {[variant_isset universal]} {
+        foreach arch ${universal_archs} {
+            reinplace "s|\-arch ${arch}||" \
+                ${worksrcpath}/log4shib-config \
+                ${worksrcpath}/log4shib.pc
+        }
+    }
+}
+
 livecheck.type      regex
 livecheck.url       http://shibboleth.internet2.edu/downloads/log4shib/latest/
 livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100208/8bc1b2f8/attachment.html>


More information about the macports-changes mailing list