New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14779: Portfile.diff

File Portfile.diff, 1.4 KB (added by marcuscalhounlopez@…, 4 years ago)
  • Portfile

    old new  
    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+)