summaryrefslogtreecommitdiff
path: root/dev-scheme/guile-lib/guile-lib-0.2.8.1.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-12-29 10:49:28 +0000
committerSam James <sam@gentoo.org>2024-12-29 10:51:36 +0000
commita4cda180db47d0ef76d223f4ea66296eb5f18179 (patch)
tree6e804748e54bf8d4b06a3eb32ab22b4ad95605be /dev-scheme/guile-lib/guile-lib-0.2.8.1.ebuild
parent2d73b90eda2491958590bd7f73c4656c7c153a38 (diff)
downloadgentoo-a4cda180db47d0ef76d223f4ea66296eb5f18179.tar.gz
gentoo-a4cda180db47d0ef76d223f4ea66296eb5f18179.tar.bz2
gentoo-a4cda180db47d0ef76d223f4ea66296eb5f18179.zip
dev-scheme/guile-lib: add 0.2.8.1
This includes Zack Weinberg's patch to fix tests w/ guile-3.0, which I've only applied for 3.0. But in the course of spending a while to get the ebuild working with two impls and only patching one, I found that 2-2 was clearly not cared for upstream anymore as I hit two different issues and one of them had an unreplied-to patch on the ML, so I gave up. Just declare compat w/ 3-0 and worry about older later for this version on the offchance someone requests it. Closes: https://bugs.gentoo.org/877785 Closes: https://bugs.gentoo.org/941404 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-scheme/guile-lib/guile-lib-0.2.8.1.ebuild')
-rw-r--r--dev-scheme/guile-lib/guile-lib-0.2.8.1.ebuild75
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-scheme/guile-lib/guile-lib-0.2.8.1.ebuild b/dev-scheme/guile-lib/guile-lib-0.2.8.1.ebuild
new file mode 100644
index 000000000000..faa78a97f1a3
--- /dev/null
+++ b/dev-scheme/guile-lib/guile-lib-0.2.8.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# 2-2 could be made to work but a few tests fail and nobody seems
+# to care about it (patches had no reply on ML).
+GUILE_COMPAT=( 3-0 )
+inherit guile
+
+DESCRIPTION="An accumulation place for pure-scheme Guile modules"
+HOMEPAGE="http://www.nongnu.org/guile-lib/"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${GUILE_REQUIRES_USE}"
+
+RDEPEND="${GUILE_DEPS}"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ guile_src_prepare
+ sed -i -e 's/"guile"/(getenv "GUILE")/' unit-tests/os.process.scm || die
+ guile_copy_sources
+
+ # Only apply this patch for 3.0 (bug #877785)
+ if use guile_targets_3-0 ; then
+ cd "${WORKDIR}"/${P}-3.0 || die
+ eapply "${FILESDIR}"/${PN}-0.2.8.1-guile3-primes.patch
+ fi
+}
+
+src_configure() {
+ _guile_configure() {
+ cd "${WORKDIR}"/${P}-${GUILE_CURRENT_VERSION} || die
+ ECONF_SOURCE="${WORKDIR}"/${P}-${GUILE_CURRENT_VERSION}
+ econf --with-guile-site=yes
+ }
+
+ guile_foreach_impl _guile_configure
+}
+
+src_compile() {
+ _guile_compile() {
+ cd "${WORKDIR}"/${P}-${GUILE_CURRENT_VERSION} || die
+ sed -i -e "s:exec guile:exec ${GUILE}:" doc/make-texinfo.scm || die
+ emake
+ }
+
+ guile_foreach_impl _guile_compile
+}
+
+src_test() {
+ _guile_test() {
+ cd "${WORKDIR}"/${P}-${GUILE_CURRENT_VERSION} || die
+ emake check
+ }
+
+ guile_foreach_impl _guile_test
+}
+
+src_install() {
+ _guile_install() {
+ cd "${WORKDIR}"/${P}-${GUILE_CURRENT_VERSION} || die
+ emake DESTDIR="${SLOTTED_D}" install
+ }
+
+ einstalldocs
+ guile_foreach_impl _guile_install
+ guile_merge_roots
+ guile_unstrip_ccache
+}