Ticket #35014: Portfile-gprolog.diff
File Portfile-gprolog.diff, 1.6 KB (added by pmoura (Paulo Moura), 12 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 name gprolog 5 version 1.4. 05 version 1.4.1 6 6 revision 1 7 7 8 8 categories lang … … 27 27 homepage http://gprolog.inria.fr/ 28 28 master_sites http://www.gprolog.org/ 29 29 30 # 1.4.0 was stealth-updated; remove this with the next version update31 dist_subdir ${name}/${version}_132 33 30 checksums \ 34 sha1 40d99cd3fcb8fa86103ad5692e2cd35b17a90706\35 rmd160 82d4008b67b9c99065cfb7df48b1bdb077102a0731 sha1 f25e11dbef2467c8ea1bb16cfd20623fd2f4fad4 \ 32 rmd160 f3e093868e7fc468ae81fc9cc4ebe21b22b0cd0a 36 33 37 34 worksrcdir ${name}-${version}/src 38 35 … … 42 39 --with-examples-dir=${prefix}/share/${name}-${version} \ 43 40 --with-doc-dir=${prefix}/share/${name}-${version} 44 41 42 if {${configure.compiler} == "llvm-gcc-4.2"} { 43 configure.compiler gcc-4.2 44 } elseif {${configure.compiler} == "clang"} { 45 depends_build-append port:apple-gcc42 46 configure.compiler apple-gcc-4.2 47 # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2 48 configure.cxx ${prefix}/bin/g++-apple-4.2 49 } 50 45 51 post-destroot { 46 52 foreach cmd {fd2c gplc gprolog hexgplc ma2asm pl2wam wam2ma} { 47 53 system "ln -fs ../lib/${name}-${version}/bin/${cmd} ${destroot}${prefix}/bin/${cmd}" … … 50 56 file delete -force ${destroot}${prefix}/var 51 57 } 52 58 59 package.flat no 53 60 54 61 post-pkg { 55 62 set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ 56 63 file copy -force -- ${workpath}/${name}-${version}/COPYING ${resources}/License.txt 57 64 file copy -force -- ${workpath}/${name}-${version}/README ${resources}/ReadMe.txt 58 65 } 59 60 # ticket #2117261 supported_archs i386 ppc