Ticket #29152: gprolog-devel-ryandesign.diff
File gprolog-devel-ryandesign.diff, 2.1 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name gprolog-devel 5 version 1.4.0 6 5 version 1.4.0-20110408 6 set version_number [lindex [split ${version} -] 0] 7 set version_date [lindex [split ${version} -] 1] 7 8 categories lang 8 9 maintainers logtalk.org:pmoura 9 10 platforms darwin … … 28 29 homepage http://gprolog.inria.fr/ 29 30 master_sites http://gprolog.univ-paris1.fr/unstable/ 30 31 31 checksums md5 0f882e352b886a5ddb59bcab457fa78e \ 32 sha1 902e85425cdf9446f9e3b3cd78de0e8be8331654 \ 33 rmd160 4323af783f58659c8e7ae8d704a5fc86004283b6 32 checksums sha1 8d83f5c7d9db1338faf976ca029b1efebd37cd6a \ 33 rmd160 135071ef7015cdd71cf13e8976b893402ccb3a97 34 34 35 35 36 distname gprolog- 2010071336 distname gprolog-${version_date} 37 37 extract.suffix .tgz 38 38 39 worksrcdir gprolog-${version }/src39 worksrcdir gprolog-${version_number}/src 40 40 41 41 configure.args \ 42 42 --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} 46 46 47 47 post-destroot { 48 48 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} 50 50 } 51 51 52 52 file delete -force ${destroot}${prefix}/var … … 55 55 56 56 post-pkg { 57 57 set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ 58 file copy -force -- ${workpath}/gprolog-${version }/COPYING ${resources}/License.txt59 file copy -force -- ${workpath}/gprolog-${version }/README ${resources}/ReadMe.txt58 file copy -force -- ${workpath}/gprolog-${version_number}/COPYING ${resources}/License.txt 59 file copy -force -- ${workpath}/gprolog-${version_number}/README ${resources}/ReadMe.txt 60 60 }