Ticket #21657: Portfile.diff
File Portfile.diff, 1.6 KB (added by mdippery@…, 15 years ago) |
---|
-
Portfile
old new 37 37 --enable-single-host \ 38 38 --docdir=${prefix}/share/doc 39 39 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 43 set gsc "gambit-gsc" 44 set gsi "gambit-gsi" 45 40 46 post-extract { 41 47 # Get rid of the incompatible version-specific installation structure 42 48 reinplace "s|PACKAGE_SUBDIR=\"/${version}\"|PACKAGE_SUBDIR=\"\"|g" ${worksrcpath}/configure.ac 43 49 reinplace "s|&& \$(LN_S) \.\$(PACKAGE_SUBDIR) current||g" ${worksrcpath}/makefile.in 44 50 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 45 52 46 53 # Fix target paths since the configure options are not properly used in the makefiles 47 54 foreach makefile [exec find ${worksrcpath} -name makefile.in] { … … 53 60 } 54 61 } 55 62 63 post-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 56 72 variant optimized description "Use expensive GCC optimizations to improve speed and compactness" { 57 73 configure.args-append --enable-gcc-opts 58 74 }