From 9b172f7b5a14dbe40ede4b227088155b46ca5254 Mon Sep 17 00:00:00 2001 From: Raffaele Date: Tue, 21 Apr 2020 15:38:10 +0200 Subject: [PATCH] New package: Gauche-0.9.9 --- srcpkgs/Gauche/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/Gauche/template diff --git a/srcpkgs/Gauche/template b/srcpkgs/Gauche/template new file mode 100644 index 00000000000..55d16f1bb45 --- /dev/null +++ b/srcpkgs/Gauche/template @@ -0,0 +1,33 @@ +# Template file for 'Gauche' +pkgname=Gauche +version=0.9.9 +revision=1 +build_style=gnu-configure +configure_args="--prefix=/usr" +hostmakedepends="gzip texinfo" +makedepends="libticonv-devel" +short_desc="Practical Scheme R7RS implementation" +maintainer="rc-05 " +license="BSD-3-Clause" +homepage="https://practical-scheme.net/gauche/" +distfiles="${SOURCEFORGE_SITE}/gauche/${pkgname}-${version}.tgz" +checksum=4ca9325322a7efadb9680d156eb7b53521321c9ca4955c4cbe738bc2e1d7f7fb +alternatives=" + scheme:scheme:/usr/bin/gauche + scheme:scheme.1:/usr/share/man/man1/gauche.1 +" + +if [ -n "$CROSS_BUILD" ]; then + # Gauche needs itself to bootstrap for cross compilation. + hostmakedepends+=" Gauche" + configure_args+=" --host=${XBPS_CROSS_TRIPLET}" +fi + +post_install() { + # Needed as Gauche's binary conflicts with the "gosh" package bin. + mv $DESTDIR/usr/bin/gosh $DESTDIR/usr/bin/gauche + # Modify also the manual page filename to remain consitent. + mv $DESTDIR/usr/share/man/man1/gosh.1 $DESTDIR/usr/share/man/man1/gauche.1 + + vlicense COPYING +}