void-packages/srcpkgs/guile1.8/template
Jürgen Buchmüller 963d69b2bd guile1.8: fix build and xlint
Guile1.8 segfaults if built with the in-tree lt-guile.
Work around this issue by using guile 2.0.14 for the build.
2020-08-29 20:52:08 +02:00

34 lines
1.2 KiB
Bash

# Template file for 'guile1.8'
pkgname=guile1.8
version=1.8.8
revision=3
wrksrc=${pkgname/1.8/}-${version}
build_style="gnu-configure"
configure_args="--disable-static --disable-error-on-warning --program-suffix='-1.8'"
make_build_args="GUILE_FOR_BUILD=guile"
hostmakedepends="pkg-config guile"
makedepends="gmp-devel libltdl-devel ncurses-devel readline-devel"
short_desc="Portable, embeddable Scheme implementation written in C"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="LGPL-2.1-or-later"
homepage="https://www.gnu.org/software/guile/guile.html"
distfiles="${GNU_SITE}/${pkgname/1.8/}/${pkgname/1.8/}-${version}.tar.gz"
checksum=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
post_install() {
# conflicts with guile-2.0
rm -rf ${DESTDIR}/usr/share/info
}
guile1.8-devel_package() {
short_desc+=" - development files"
depends="gmp-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/guile-config-1.8
sed -i '1s|/usr/bin/guile|/usr/bin/guile-1.8|' ${PKGDESTDIR}/usr/bin/guile-config-1.8
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
mv ${PKGDESTDIR}/usr/share/aclocal/{guile.m4,guile-1.8.m4}
}
}