Ticket #21657: Portfile.diff

File Portfile.diff, 1.6 KB (added by mdippery@…, 15 years ago)

Portfile diff

  • Portfile

    old new  
    3737                        --enable-single-host \
    3838                        --docdir=${prefix}/share/doc
    3939
     40# gsc conficts with a binary installed by Ghostscript. Recommended
     41# option (based on mailing list posts from Arch Linux and FreeBSD
     42# projects) is to rename gsc to gambit-gsc
     43set gsc "gambit-gsc"
     44set gsi "gambit-gsi"
     45
    4046post-extract {
    4147    # Get rid of the incompatible version-specific installation structure
    4248    reinplace "s|PACKAGE_SUBDIR=\"/${version}\"|PACKAGE_SUBDIR=\"\"|g" ${worksrcpath}/configure.ac
    4349    reinplace "s|&& \$(LN_S) \.\$(PACKAGE_SUBDIR) current||g" ${worksrcpath}/makefile.in
    4450    reinplace "s|rm -f \$(prefix)/current \$(prefix)/current.lnk||g" ${worksrcpath}/makefile.in
     51    reinplace "s|.B gsc|.B ${gsc}|g" ${worksrcpath}/doc/gsi.1
    4552
    4653    # Fix target paths since the configure options are not properly used in the makefiles
    4754    foreach makefile [exec find ${worksrcpath} -name makefile.in] {
     
    5360    }
    5461}
    5562
     63post-destroot {
     64    file rename "${destroot}${prefix}/bin/gsc" "${destroot}${prefix}/bin/${gsc}"
     65    file delete "${destroot}${prefix}/bin/gsc-script"
     66    ln -s "${gsc}" "${destroot}${prefix}/bin/gsc-script"
     67    # Create a matching link for gambit-gsi for symmetry, even though the
     68    # original gsi binary doesn't conflict and isn't being removed.
     69    ln -s "gsi" "${destroot}${prefix}/bin/${gsi}"
     70}
     71
    5672variant optimized description "Use expensive GCC optimizations to improve speed and compactness" {
    5773    configure.args-append --enable-gcc-opts
    5874}