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

gui_dos at macports.org gui_dos at macports.org
Tue Apr 1 09:32:18 PDT 2008


Revision: 35657
          http://trac.macosforge.org/projects/macports/changeset/35657
Author:   gui_dos at macports.org
Date:     2008-04-01 09:32:17 -0700 (Tue, 01 Apr 2008)

Log Message:
-----------
glpk: update to 4.28 (commits #14885)

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

Modified: trunk/dports/math/glpk/Portfile
===================================================================
--- trunk/dports/math/glpk/Portfile	2008-04-01 16:21:32 UTC (rev 35656)
+++ trunk/dports/math/glpk/Portfile	2008-04-01 16:32:17 UTC (rev 35657)
@@ -3,7 +3,7 @@
 PortSystem      1.0
 
 name            glpk
-version         4.27
+version         4.28
 categories      math lang
 platforms       darwin
 maintainers     lutz.horn at fastmail.fm
@@ -19,15 +19,45 @@
 homepage        http://www.gnu.org/software/${name}/
 master_sites    gnu
 
-checksums       md5 aa089dd6a5becd9251d9e716d660316d \
-                sha1 d4d1e02c07fbb726eb0ddff773bb90ab1763444a \
-                rmd160 8168c08ea175e17001297ab5623912333b45e661
+checksums       md5 6e4f30c37fb189aec6c71b27f0a57449 \
+                sha1 0297add513bb2007eebfb03a956615d9f0db4e5a \
+                rmd160 d99f7e055c10dee4dc41f13abec746d440e59bc4
 
 depends_lib     port:gmp
 
+configure.args  --enable-iodbc=no \
+                --enable-mysql=no
+
 test.run        yes
 test.target     check
 
+variant 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
+        }
+    }
+}
+
+variant doc {
+    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.latex && ${prefix}/bin/pdflatex glpk.latex"
+        system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi"
+        xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf ${docdir}
+        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${docdir}
+    }
+}
+
 livecheck.check 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/20080401/76ddaf0d/attachment.html


More information about the macports-changes mailing list