[62771] trunk/dports/math/glpk/Portfile

nox at macports.org nox at macports.org
Sat Jan 16 19:16:57 PST 2010


Revision: 62771
          http://trac.macports.org/changeset/62771
Author:   nox at macports.org
Date:     2010-01-16 19:16:52 -0800 (Sat, 16 Jan 2010)
Log Message:
-----------
Update glpk to 1.41 (#23215)

Examples are now always installed, in their own `share/examples`
subdirectory. Furthermore, port group `archcheck` is now used and README
and friends are also always installed.

Modified Paths:
--------------
    trunk/dports/math/glpk/Portfile

Modified: trunk/dports/math/glpk/Portfile
===================================================================
--- trunk/dports/math/glpk/Portfile	2010-01-16 20:55:23 UTC (rev 62770)
+++ trunk/dports/math/glpk/Portfile	2010-01-17 03:16:52 UTC (rev 62771)
@@ -1,10 +1,12 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       archcheck 1.0
 PortGroup       muniversal 1.0
 
 name            glpk
-version         4.39
+version         4.41
+license         GPL-3+
 categories      math lang
 platforms       darwin
 maintainers     fastmail.fm:lutz.horn
@@ -20,16 +22,24 @@
 homepage        http://www.gnu.org/software/${name}/
 master_sites    gnu
 
-checksums       md5     95f276ef6c94c6de1eb689f161f525f3 \
-                sha1    99d8d0e576fee63fa0d411d92c7c70a7be090ec6 \
-                rmd160  ffb8b7214bba04c387ce67837ca05664ee7a53f8
+checksums       md5     55026a855035d0caf550db69d29d4959 \
+                sha1    2699e10b79b2c72c9eb4d373e3b3060dcf80f468 \
+                rmd160  1fb60f0803e2707f7c7772981e859efa629c5a39
 
 depends_lib     port:gmp port:zlib
 
+archcheck.files \
+    lib/libgmp.dylib \
+    lib/libz.dylib
+
 configure.args  --with-gmp --with-zlib
 
 if { [variant_isset odbc] || [variant_isset mysql] } {
     depends_lib-append port:libtool
+
+    archcheck.files-append \
+        lib/libltdl.dylib
+
     configure.args-append --enable-dl
 }
 
@@ -47,35 +57,42 @@
         ${worksrcpath}/src/Makefile.in
 }
 
-variant examples description {install examples} {
-    post-destroot {
-        set examplesdir ${destroot}${prefix}/share/doc/${name}/examples
-        xinstall -m 755 -d ${examplesdir}
-        foreach fl [glob -tails -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] {
-            xinstall -m 644 -W ${worksrcpath}/examples $fl ${examplesdir}
-        }
-        xinstall -m 755 -d ${examplesdir}/sql
-        foreach fl [glob -tails -directory ${worksrcpath}/examples/sql *.{mod,sql}] {
-            xinstall -m 644 -W ${worksrcpath}/examples/sql $fl ${examplesdir}/sql
-        }
-    }
+set docdir ${prefix}/share/doc/${name}
+
+post-destroot {
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
+        ${destroot}${docdir}
+
+    set examplesdir ${prefix}/share/examples/${name}
+    xinstall -d ${destroot}${examplesdir}
+    eval xinstall -m 644 \
+        [glob -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] \
+        ${destroot}${examplesdir}
+
+    xinstall -d ${destroot}${examplesdir}/sql
+    eval xinstall -m 644 \
+        [glob -directory ${worksrcpath}/examples/sql *.{mod,sql}] \
+        ${destroot}${examplesdir}/sql
 }
 
-variant doc description {build and install documentation} {
+variant doc description {Build and install documentation} {
     depends_build-append path:${prefix}/bin/pdflatex:texlive \
         path:${prefix}/bin/texi2pdf:texinfo
     post-destroot {
-        set docdir ${destroot}${prefix}/share/doc/${name}
-        xinstall -m 755 -d ${docdir}
         system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk.tex && ${prefix}/bin/pdflatex glpk.tex"
         system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi"
-        xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf glpk_faq.txt ${docdir}
-        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${docdir}
+        xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf glpk_faq.txt \
+            ${destroot}${docdir}
     }
 }
 
 variant odbc description {enable MathProg ODBC support} {
     depends_lib-append port:unixODBC
+
+    archcheck.files-append \
+        lib/libodbc.dylib
+
     configure.args-append --enable-odbc=unix
     post-patch {
         reinplace \
@@ -86,6 +103,10 @@
 
 variant mysql description {enable MathProg MySQL support} {
     depends_lib-append path:bin/mysql_config5:mysql5
+
+    archcheck.files-append \
+        lib/mysql5/mysql/libmysqlclient.dylib
+
     configure.args-append --enable-mysql
     post-patch {
         reinplace \
@@ -96,7 +117,3 @@
             ${worksrcpath}/configure
     }
 }
-
-livecheck.type  regex
-livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
-livecheck.regex ${name}-(\\d+\\.\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100116/b867d574/attachment.html>


More information about the macports-changes mailing list