Ticket #23215: gplk-4.41.diff

File gplk-4.41.diff, 2.8 KB (added by nox@…, 15 years ago)
  • dports/math/glpk/Portfile

    diff --git a/dports/math/glpk/Portfile b/dports/math/glpk/Portfile
    index 6cefd47..a737a96 100644
    a b PortSystem 1.0 
    44PortGroup       muniversal 1.0
    55
    66name            glpk
    7 version         4.39
     7version         4.41
    88categories      math lang
    99platforms       darwin
    1010maintainers     fastmail.fm:lutz.horn
    long_description \ 
    2020homepage        http://www.gnu.org/software/${name}/
    2121master_sites    gnu
    2222
    23 checksums       md5     95f276ef6c94c6de1eb689f161f525f3 \
    24                 sha1    99d8d0e576fee63fa0d411d92c7c70a7be090ec6 \
    25                 rmd160  ffb8b7214bba04c387ce67837ca05664ee7a53f8
     23checksums       md5     55026a855035d0caf550db69d29d4959 \
     24                sha1    2699e10b79b2c72c9eb4d373e3b3060dcf80f468 \
     25                rmd160  1fb60f0803e2707f7c7772981e859efa629c5a39
    2626
    2727depends_lib     port:gmp port:zlib
    2828
    post-patch { 
    4747        ${worksrcpath}/src/Makefile.in
    4848}
    4949
    50 variant examples description {install examples} {
    51     post-destroot {
    52         set examplesdir ${destroot}${prefix}/share/doc/${name}/examples
    53         xinstall -m 755 -d ${examplesdir}
    54         foreach fl [glob -tails -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] {
    55             xinstall -m 644 -W ${worksrcpath}/examples $fl ${examplesdir}
    56         }
    57         xinstall -m 755 -d ${examplesdir}/sql
    58         foreach fl [glob -tails -directory ${worksrcpath}/examples/sql *.{mod,sql}] {
    59             xinstall -m 644 -W ${worksrcpath}/examples/sql $fl ${examplesdir}/sql
    60         }
    61     }
     50post-destroot {
     51    set examplesdir ${destroot}${prefix}/share/doc/${name}/examples
     52    xinstall -d ${examplesdir}
     53    eval xinstall -m 644 \
     54        [glob -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] \
     55        ${examplesdir}
     56
     57    xinstall -d ${examplesdir}/sql
     58    eval xinstall -m 644 \
     59        [glob -directory ${worksrcpath}/examples/sql *.{mod,sql}] \
     60        ${examplesdir}/sql
    6261}
    6362
    6463variant doc description {build and install documentation} {
    variant doc description {build and install documentation} { 
    6665        path:${prefix}/bin/texi2pdf:texinfo
    6766    post-destroot {
    6867        set docdir ${destroot}${prefix}/share/doc/${name}
    69         xinstall -m 755 -d ${docdir}
     68        xinstall -d ${docdir}
    7069        system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk.tex && ${prefix}/bin/pdflatex glpk.tex"
    7170        system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi"
    7271        xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf glpk_faq.txt ${docdir}
    variant mysql description {enable MathProg MySQL support} { 
    9695            ${worksrcpath}/configure
    9796    }
    9897}
    99 
    100 livecheck.type  regex
    101 livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
    102 livecheck.regex ${name}-(\\d+\\.\\d+)