Ticket #35014: Portfile-gprolog.diff

File Portfile-gprolog.diff, 1.6 KB (added by pmoura (Paulo Moura), 12 years ago)
  • Portfile

    old new  
    22
    33PortSystem 1.0
    44name            gprolog
    5 version         1.4.0
     5version         1.4.1
    66revision        1
    77
    88categories      lang
     
    2727homepage        http://gprolog.inria.fr/
    2828master_sites    http://www.gprolog.org/
    2929
    30 # 1.4.0 was stealth-updated; remove this with the next version update
    31 dist_subdir     ${name}/${version}_1
    32 
    3330checksums       \
    34         sha1    40d99cd3fcb8fa86103ad5692e2cd35b17a90706 \
    35         rmd160  82d4008b67b9c99065cfb7df48b1bdb077102a07
     31        sha1    f25e11dbef2467c8ea1bb16cfd20623fd2f4fad4 \
     32        rmd160  f3e093868e7fc468ae81fc9cc4ebe21b22b0cd0a
    3633
    3734worksrcdir      ${name}-${version}/src
    3835
     
    4239        --with-examples-dir=${prefix}/share/${name}-${version} \
    4340        --with-doc-dir=${prefix}/share/${name}-${version}
    4441
     42if {${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
    4551post-destroot   {
    4652        foreach cmd {fd2c gplc gprolog hexgplc ma2asm pl2wam wam2ma} {
    4753                system "ln -fs ../lib/${name}-${version}/bin/${cmd} ${destroot}${prefix}/bin/${cmd}"
     
    5056        file delete -force ${destroot}${prefix}/var
    5157}
    5258
     59package.flat no
    5360
    5461post-pkg {
    5562        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
    5663        file copy -force -- ${workpath}/${name}-${version}/COPYING ${resources}/License.txt
    5764        file copy -force -- ${workpath}/${name}-${version}/README ${resources}/ReadMe.txt
    5865}
    59 
    60 # ticket #21172
    61 supported_archs i386 ppc