Skip to content

Commit

Permalink
gambit-c: Update to 4.8.9
Browse files Browse the repository at this point in the history
Clean up patches
  • Loading branch information
l2dy committed Jun 3, 2018
1 parent 5c91edb commit 8727e72
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lang/gambit-c/Portfile
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0

name gambit-c
version 4.8.8
version 4.8.9
set branch [join [lrange [split ${version} .] 0 1] .]
categories lang
license {LGPL-2.1+ Apache-2}
Expand Down Expand Up @@ -33,8 +33,9 @@ master_sites http://www.iro.umontreal.ca/~gambit/download/gambit/v${b
distname gambit-v[strsed ${version} {g/\./_/}]-devel
extract.suffix .tgz

checksums rmd160 7e5651a91aafcbcbd4d551df87587fc0f56ea466 \
sha256 5f765463e37e52a083f141d5b581ff1dd40aeeee43aa9b1cee5b9b46c017b31c
checksums rmd160 127e86c438a758ad8a462490b67e065c42981304 \
sha256 b7f86c794711792ca556ce41f8bc7043dffc395c01bb6d8d119bc2f454f89fbf \
size 126515496

# https://trac.macports.org/ticket/46013
compiler.blacklist {clang < 600} *llvm-gcc-4.2
Expand All @@ -54,20 +55,14 @@ use_parallel_build no
set gsc "gambit-gsc"
set gsi "gambit-gsi"

post-extract {
# Get rid of the incompatible version-specific installation structure
reinplace "s|PACKAGE_SUBDIR=\"/${version}\"|PACKAGE_SUBDIR=\"\"|g" ${worksrcpath}/configure.ac
reinplace "s|&& \$(LN_S) \.\$(PACKAGE_SUBDIR) current||g" ${worksrcpath}/makefile.in
reinplace "s|rm -f \$(prefix)/current \$(prefix)/current.lnk||g" ${worksrcpath}/makefile.in
post-patch {
reinplace "s|.B gsc|.B ${gsc}|g" ${worksrcpath}/doc/gsi.1

# Fix target paths since the configure options are not properly used in the makefiles
foreach makefile [exec find ${worksrcpath} -name makefile.in] {
reinplace "s|\$(prefix)\$(PACKAGE_SUBDIR)|\$(DESTDIR)\$(prefix)|g" $makefile
reinplace "s|\$(prefix)/info|\$(prefix)/share/info|g" $makefile
reinplace "s|\$(prefix)/doc|\$(prefix)/share/doc/gambit-c|g" $makefile
reinplace "s|\$(prefix)/lib|\$(prefix)/lib/gambit-c|g" $makefile
reinplace "s|\$(prefix)/syntax-case\.scm|\$(prefix)/lib/gambit-c/syntax-case\.scm|g" $makefile
}
}

Expand Down

0 comments on commit 8727e72

Please sign in to comment.