Ticket #14779: Portfile.1.diff

File Portfile.1.diff, 1.7 KB (added by lutz.horn@…, 17 years ago)
  • Portfile

    old new  
    44
    55name            glpk
    66version         4.27
     7revision        1
    78categories      math lang
    89platforms       darwin
    910maintainers     lutz.horn@fastmail.fm
     
    2526
    2627depends_lib     port:gmp
    2728
     29configure.args  --enable-iodbc=no \
     30                --enable-mysql=no
     31
    2832test.run        yes
    2933test.target     check
    3034
     35variant examples {
     36    post-destroot {
     37        set examplesdir ${destroot}${prefix}/share/doc/${name}/examples
     38        xinstall -m 755 -d ${examplesdir}
     39        foreach fl [glob -tails -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] {
     40            xinstall -m 644 -W ${worksrcpath}/examples $fl ${examplesdir}
     41        }
     42        xinstall -m 755 -d ${examplesdir}/sql
     43        foreach fl [glob -tails -directory ${worksrcpath}/examples/sql *.{mod,sql}] {
     44            xinstall -m 644 -W ${worksrcpath}/examples/sql $fl ${examplesdir}/sql
     45        }
     46    }
     47}
     48
     49variant doc {
     50    depends_build-append path:${prefix}/bin/pdflatex:texlive \
     51        path:${prefix}/bin/texi2pdf:texinfo
     52    post-destroot {
     53        set docdir ${destroot}${prefix}/share/doc/${name}
     54        xinstall -m 755 -d ${docdir}
     55        system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk.latex && ${prefix}/bin/pdflatex glpk.latex"
     56        system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi"
     57        xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf ${docdir}
     58        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${docdir}
     59    }
     60}
     61
    3162livecheck.check regex
    3263livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
    3364livecheck.regex ${name}-(\\d+\\.\\d+)