mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
Gauche: install binary as gosh, preserving upstream defaults.
This commit is contained in:
parent
b97dd7a592
commit
a42f0f6ded
2 changed files with 7 additions and 32 deletions
|
@ -1,19 +0,0 @@
|
||||||
--- a/src/Makefile.in 2019-12-13 22:50:49.000000000 +0100
|
|
||||||
+++ b/src/Makefile-patched.in 2020-04-30 22:47:55.667135591 +0200
|
|
||||||
@@ -59,6 +59,7 @@
|
|
||||||
CPPFLAGS = @CPPFLAGS@
|
|
||||||
LDFLAGS = @LDFLAGS@
|
|
||||||
BUILD_GOSH_FLAGS =
|
|
||||||
+GOSH = @GOSH@
|
|
||||||
|
|
||||||
# These are set by configure
|
|
||||||
DEFS = @DEFS@
|
|
||||||
@@ -526,7 +527,7 @@
|
|
||||||
"$(DESTDIR)$(SITE_SCM_DIR)" \
|
|
||||||
"$(DESTDIR)$(SITE_ARCH_DIR)"
|
|
||||||
@CROSS_COMPILING_no@GAUCHE_INSTALL = ./gosh -ftest $(srcdir)/gauche-install.in
|
|
||||||
-@CROSS_COMPILING_yes@GAUCHE_INSTALL = gosh $(srcdir)/gauche-install.in
|
|
||||||
+@CROSS_COMPILING_yes@GAUCHE_INSTALL = $(GOSH) $(srcdir)/gauche-install.in
|
|
||||||
|
|
||||||
install : install-core
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
# Template file for 'Gauche'
|
# Template file for 'Gauche'
|
||||||
pkgname=Gauche
|
pkgname=Gauche
|
||||||
version=0.9.9
|
version=0.9.9
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="texinfo"
|
hostmakedepends="texinfo"
|
||||||
makedepends="libticonv-devel libatomic_ops-devel"
|
makedepends="libticonv-devel libatomic_ops-devel"
|
||||||
|
checkdepends="iana-etc"
|
||||||
short_desc="Practical Scheme R7RS implementation"
|
short_desc="Practical Scheme R7RS implementation"
|
||||||
maintainer="rc-05 <rc23@email.it>"
|
maintainer="rc-05 <rc23@email.it>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
|
@ -12,26 +13,19 @@ homepage="https://practical-scheme.net/gauche/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/gauche/${pkgname}-${version}.tgz"
|
distfiles="${SOURCEFORGE_SITE}/gauche/${pkgname}-${version}.tgz"
|
||||||
checksum=4ca9325322a7efadb9680d156eb7b53521321c9ca4955c4cbe738bc2e1d7f7fb
|
checksum=4ca9325322a7efadb9680d156eb7b53521321c9ca4955c4cbe738bc2e1d7f7fb
|
||||||
alternatives="
|
alternatives="
|
||||||
scheme:scheme:/usr/bin/gauche
|
scheme:scheme:/usr/bin/gosh
|
||||||
scheme:scheme.1:/usr/share/man/man1/gauche.1
|
scheme:scheme.1:/usr/share/man/man1/gosh.1
|
||||||
"
|
"
|
||||||
|
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
# Gauche needs itself to bootstrap for cross compilation.
|
# Gauche needs itself to bootstrap for cross compilation.
|
||||||
hostmakedepends+=" Gauche"
|
hostmakedepends+=" Gauche"
|
||||||
# Normally BUILD_GOSH doesn't need to be set but in this case it is mandatory
|
|
||||||
# as the native Gauche binary (which is needed to cross-compile for another
|
|
||||||
# architecture) has been renamed for conflict problems with another package with
|
|
||||||
# the same name.
|
|
||||||
configure_args="BUILD_GOSH=/usr/bin/gauche"
|
|
||||||
make_install_args="GOSH=/usr/bin/gauche"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# Needed as Gauche's binary conflicts with the "gosh" package bin.
|
# Void previously shipped the binary as "gauche", symlink for
|
||||||
mv $DESTDIR/usr/bin/gosh $DESTDIR/usr/bin/gauche
|
# consistancy.
|
||||||
# Modify also the manual page filename to remain consitent.
|
ln -sf gosh $DESTDIR/usr/bin/gauche
|
||||||
mv $DESTDIR/usr/share/man/man1/gosh.1 $DESTDIR/usr/share/man/man1/gauche.1
|
|
||||||
|
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue