Ticket #14885: Portfile-4.27_4.28.diff

File Portfile-4.27_4.28.diff, 2.2 KB (added by lutz.horn@…, 17 years ago)
  • (a) Portfile-4.27 vs. (b) Portfile

    a b  
    33PortSystem      1.0
    44
    55name            glpk
    6 version         4.27
     6version         4.28
    77categories      math lang
    88platforms       darwin
    99maintainers     lutz.horn@fastmail.fm
     
    1919homepage        http://www.gnu.org/software/${name}/
    2020master_sites    gnu
    2121
    22 checksums       md5 aa089dd6a5becd9251d9e716d660316d \
    23                 sha1 d4d1e02c07fbb726eb0ddff773bb90ab1763444a \
    24                 rmd160 8168c08ea175e17001297ab5623912333b45e661
     22checksums       md5 6e4f30c37fb189aec6c71b27f0a57449 \
     23                sha1 0297add513bb2007eebfb03a956615d9f0db4e5a \
     24                rmd160 d99f7e055c10dee4dc41f13abec746d440e59bc4
    2525
    2626depends_lib     port:gmp
    2727
     28configure.args  --enable-iodbc=no \
     29                --enable-mysql=no
     30
    2831test.run        yes
    2932test.target     check
    3033
     34variant examples {
     35    post-destroot {
     36        set examplesdir ${destroot}${prefix}/share/doc/${name}/examples
     37        xinstall -m 755 -d ${examplesdir}
     38        foreach fl [glob -tails -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] {
     39            xinstall -m 644 -W ${worksrcpath}/examples $fl ${examplesdir}
     40        }
     41        xinstall -m 755 -d ${examplesdir}/sql
     42        foreach fl [glob -tails -directory ${worksrcpath}/examples/sql *.{mod,sql}] {
     43            xinstall -m 644 -W ${worksrcpath}/examples/sql $fl ${examplesdir}/sql
     44        }
     45    }
     46}
     47
     48variant doc {
     49    depends_build-append path:${prefix}/bin/pdflatex:texlive \
     50        path:${prefix}/bin/texi2pdf:texinfo
     51    post-destroot {
     52        set docdir ${destroot}${prefix}/share/doc/${name}
     53        xinstall -m 755 -d ${docdir}
     54        system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk.latex && ${prefix}/bin/pdflatex glpk.latex"
     55        system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi"
     56        xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf ${docdir}
     57        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${docdir}
     58    }
     59}
     60
    3161livecheck.check regex
    3262livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
    3363livecheck.regex ${name}-(\\d+\\.\\d+)