gerbil: update to 0.18.
This commit is contained in:
parent
96009c307d
commit
345e6e5463
|
@ -1,34 +1,56 @@
|
||||||
# Template file for 'gerbil'
|
# Template file for 'gerbil'
|
||||||
pkgname=gerbil
|
pkgname=gerbil
|
||||||
version=0.17
|
version=0.18
|
||||||
revision=3
|
revision=1
|
||||||
build_style="gnu-configure"
|
build_style="configure"
|
||||||
hostmakedepends="gambit rsync"
|
configure_args="--prefix=/usr/lib/gerbil"
|
||||||
|
hostmakedepends="git tar"
|
||||||
makedepends="openssl-devel sqlite-devel zlib-devel"
|
makedepends="openssl-devel sqlite-devel zlib-devel"
|
||||||
|
depends="gcc openssl"
|
||||||
|
checkdepends="$depends"
|
||||||
short_desc="Opinionated dialect of Scheme designed for Systems Programming"
|
short_desc="Opinionated dialect of Scheme designed for Systems Programming"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="LGPL-2.1-or-later, Apache-2.0"
|
license="LGPL-2.1-or-later, Apache-2.0"
|
||||||
homepage="https://cons.io/"
|
homepage="https://cons.io/"
|
||||||
distfiles="https://github.com/vyzo/gerbil/archive/v${version}.tar.gz"
|
_gitrev="f5c3cce810b56f6823c5badc8723a9dbbb9cb804"
|
||||||
checksum=1e81265aba7e9022432649eb26b2e5c85a2bb631a315e4fa840b14cf336b2483
|
|
||||||
nocross="yes"
|
nocross="yes"
|
||||||
|
|
||||||
do_build() {
|
do_fetch() {
|
||||||
export GERBIL_GSC=gambit-gsc
|
# We fetch a Git repo here because the build system insists
|
||||||
( cd src && ./build.sh )
|
# on using submodules.
|
||||||
|
rm -rf ${wrksrc}
|
||||||
|
git clone https://github.com/mighty-gerbils/gerbil ${wrksrc}
|
||||||
|
cd ${wrksrc}
|
||||||
|
git checkout ${_gitrev}
|
||||||
|
|
||||||
|
# don't let the test suite clash with netdata's port
|
||||||
|
vsed -i -e 's/:19999/:15296/' src/std/net/httpd-test.ss
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
# Uses custom levels of optimization.
|
||||||
vmkdir usr/bin
|
pre_configure() {
|
||||||
vmkdir usr/lib/gerbil
|
export CFLAGS=${CFLAGS/-O2/}
|
||||||
cp -a bin ${DESTDIR}/usr
|
export CXXFLAGS=${CXXFLAGS/-O2/}
|
||||||
cp -a lib ${DESTDIR}/usr/lib/gerbil
|
}
|
||||||
vinstall ${FILESDIR}/gerbil.sh 0644 etc/profile.d
|
pre_build() {
|
||||||
vinstall etc/gerbil-mode.el 0644 usr/share/emacs/site-lisp
|
export CFLAGS=${CFLAGS/-O2/}
|
||||||
find ${DESTDIR} -name .keep -delete
|
export CXXFLAGS=${CXXFLAGS/-O2/}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
GERBIL_GSC=gambit-gsc GERBIL_HOME=$PWD PATH=$PWD/bin:$PATH \
|
./build.sh env gxtest ./...
|
||||||
./src/std/run-tests.ss
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
DESTDIR=$DESTDIR ./install.sh
|
||||||
|
|
||||||
|
mv $DESTDIR/usr/lib/gerbil/v*/share $DESTDIR/usr/share
|
||||||
|
vmkdir usr/bin
|
||||||
|
for b in $DESTDIR/usr/lib/gerbil/v*/bin/g[ex]*; do
|
||||||
|
ln -sfr $b $DESTDIR/usr/bin
|
||||||
|
done
|
||||||
|
|
||||||
|
./build.sh env gxtags -t emacs $DESTDIR/usr/lib/gerbil/v*/src
|
||||||
|
sed -i 's|/destdir/gerbil-[^/]*/|/|g' src/TAGS
|
||||||
|
cp -v src/TAGS $DESTDIR/usr/lib/gerbil/v*/src
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue