void-packages/srcpkgs/guile/template

51 lines
1.4 KiB
Bash

# Template file for 'guile'
pkgname=guile
version=2.0.14
revision=8
build_style=gnu-configure
configure_args="--disable-static --disable-error-on-warning"
hostmakedepends="pkg-config texinfo"
makedepends="gc-devel gmp-devel libatomic_ops-devel libffi-devel libltdl-devel
libunistring-devel readline-devel"
short_desc="A portable, embeddable Scheme implementation written in C"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later, LGPL-3.0-or-later"
homepage="http://www.gnu.org/software/${pkgname}"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=8aeb2f353881282fe01694cce76bb72f7ffdd296a12c7a1a39255c27b0dfe5f1
subpackages="libguile guile-devel"
if [ "$CROSS_BUILD" ]; then
# Need host guile to cross compile
hostmakedepends+=" guile"
fi
pre_configure() {
# magically fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941218
case "$XBPS_TARGET_MACHINE" in
ppc*) export CFLAGS+=" -Os";;
esac
}
libguile_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove "usr/lib/libguilereadline*.so"
vmkdir usr/share/gdb/auto-load/usr/lib
mv ${PKGDESTDIR}/usr/lib/*.scm ${PKGDESTDIR}/usr/share/gdb/auto-load/usr/lib
}
}
guile-devel_package() {
short_desc+=" - development files"
depends="gmp-devel gc-devel guile>=${version}_${revision}"
pkg_install() {
vmove usr/bin/guile-config
vmove usr/include
vmove usr/share/aclocal
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}