void-packages/srcpkgs/guile/template
Christian Neukirchen 3bb585c994 guile: install gdb support into appropriate directory.
Avoids warnings when running ldconfig(8).

Fixes #5415.
2016-12-31 14:07:59 +01:00

40 lines
1.2 KiB
Bash

# Template build file for 'guile'.
pkgname=guile
version=2.0.13
revision=2
build_style=gnu-configure
configure_args="--disable-static --disable-error-on-warning"
hostmakedepends="pkg-config"
makedepends="gmp-devel libltdl-devel libunistring-devel libffi-devel gc-devel ncurses-devel"
short_desc="A portable, embeddable Scheme implementation written in C"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3, LGPL-3"
homepage="http://www.gnu.org/software/${pkgname}"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=ee8073c4582bb4f06412452fdf5dd185aae607441f1313c824f44bdd668b0bde
nocross=yes # only works for same wordsize and endianess
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i '/strtol_l/{N;d}' libguile/i18n.c;;
esac
}
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 libguile>=${version}_${revision}"
pkg_install() {
vmove usr/bin/guile-config
vmove usr/include
vmove usr/share/aclocal
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}