Ticket #29152: gprolog-devel-ryandesign.diff

File gprolog-devel-ryandesign.diff, 2.1 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

proposed patch

  • Portfile

     
    22
    33PortSystem 1.0
    44name            gprolog-devel
    5 version         1.4.0
    6 
     5version         1.4.0-20110408
     6set version_number [lindex [split ${version} -] 0]
     7set version_date   [lindex [split ${version} -] 1]
    78categories      lang
    89maintainers     logtalk.org:pmoura
    910platforms       darwin
     
    2829homepage        http://gprolog.inria.fr/
    2930master_sites    http://gprolog.univ-paris1.fr/unstable/
    3031
    31 checksums       md5     0f882e352b886a5ddb59bcab457fa78e \
    32                 sha1    902e85425cdf9446f9e3b3cd78de0e8be8331654 \
    33                 rmd160  4323af783f58659c8e7ae8d704a5fc86004283b6
     32checksums       sha1    8d83f5c7d9db1338faf976ca029b1efebd37cd6a \
     33                rmd160  135071ef7015cdd71cf13e8976b893402ccb3a97
    3434
    3535
    36 distname    gprolog-20100713
     36distname    gprolog-${version_date}
    3737extract.suffix  .tgz
    3838
    39 worksrcdir      gprolog-${version}/src
     39worksrcdir      gprolog-${version_number}/src
    4040
    4141configure.args \
    4242        --prefix=${destroot}${prefix} \
    43         --with-install-dir=${prefix}/lib/gprolog-${version} \
    44         --with-examples-dir=${prefix}/share/gprolog-${version} \
    45         --with-doc-dir=${prefix}/share/gprolog-${version}
     43        --with-install-dir=${prefix}/lib/gprolog-${version_number} \
     44        --with-examples-dir=${prefix}/share/gprolog-${version_number} \
     45        --with-doc-dir=${prefix}/share/gprolog-${version_number}
    4646
    4747post-destroot   {
    4848        foreach cmd {fd2c gplc gprolog hexgplc ma2asm pl2wam wam2ma} {
    49                 system "ln -fs ../lib/gprolog-${version}/bin/${cmd} ${destroot}${prefix}/bin/${cmd}"
     49                ln -s ../lib/gprolog-${version_number}/bin/${cmd} ${destroot}${prefix}/bin/${cmd}
    5050        }
    5151
    5252        file delete -force ${destroot}${prefix}/var
     
    5555
    5656post-pkg {
    5757        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
    58         file copy -force -- ${workpath}/gprolog-${version}/COPYING ${resources}/License.txt
    59         file copy -force -- ${workpath}/gprolog-${version}/README ${resources}/ReadMe.txt
     58        file copy -force -- ${workpath}/gprolog-${version_number}/COPYING ${resources}/License.txt
     59        file copy -force -- ${workpath}/gprolog-${version_number}/README ${resources}/ReadMe.txt
    6060}