void-packages/srcpkgs/guile/template

52 lines
1.5 KiB
Bash

# Template file for 'guile'
pkgname=guile
version=2.2.7
revision=2
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="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/guile"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007
subpackages="libguile guile-devel"
if [ "$XBPS_ENDIAN" != "$XBPS_TARGET_ENDIAN" ]; then
broken="opposite-endian host generates broken files"
fi
if [ "$CROSS_BUILD" ]; then
# Need host guile to cross compile
hostmakedepends+=" guile"
fi
post_extract() {
# broken files causing crash
rm -rf prebuilt/32-bit-big-endian
}
libguile_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.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} libatomic_ops-devel"
pkg_install() {
vmove usr/bin/guile-config
vmove usr/include
vmove usr/share/aclocal
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}