summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Bayliss <cjb@cjb.sh>2020-09-14 04:49:02 +0000
committerAkinori Hattori <hattya@gentoo.org>2021-11-19 22:45:39 +0900
commit93ee9039a9d5aad1b58cfa314e4edd9a12c83bc4 (patch)
tree2b6505964bfd22c408d7024a493f90a5502f7592 /dev-scheme/chicken
parentsys-cluster/singularity: Stabilize 3.8.3 amd64, #824814 (diff)
downloadgentoo-93ee9039a9d5aad1b58cfa314e4edd9a12c83bc4.tar.gz
gentoo-93ee9039a9d5aad1b58cfa314e4edd9a12c83bc4.tar.bz2
gentoo-93ee9039a9d5aad1b58cfa314e4edd9a12c83bc4.zip
dev-scheme/chicken: version bump
Closes: https://bugs.gentoo.org/696402 Closes: https://bugs.gentoo.org/742413 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Christopher Bayliss <cjb@cjb.sh> Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme/chicken')
-rw-r--r--dev-scheme/chicken/Manifest1
-rw-r--r--dev-scheme/chicken/chicken-5.2.0.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-scheme/chicken/Manifest b/dev-scheme/chicken/Manifest
index 6fa1f0039689..b70f6dff065d 100644
--- a/dev-scheme/chicken/Manifest
+++ b/dev-scheme/chicken/Manifest
@@ -1 +1,2 @@
DIST chicken-4.13.0.tar.gz 4244358 BLAKE2B c40a28346fb6cd144e33605235ed022d48103edd1db1ae35e109e266989caaa0bf8fabf75e8b9cb740ac8bf4e3fba74218763573485127acacd001b8767cd088 SHA512 02c2035b4f81da6f4af2d246361ce8debdc9d9c663c3f43b7afb9abbf1ff591a2bb8fa144511b4d747a373dea4dcd9c10cac48466bf97032db76f3830c08709d
+DIST chicken-5.2.0.tar.gz 4052305 BLAKE2B c86284af04cd6693c5c470f6861806e388eb898935e3b34b988e30738b9f0458943dc737dadd383d94b8919079166f743f3f4c9c8c613b3ff024da77d6584875 SHA512 0290362900a5be0004774a73756c2b0f617152004571a3e5e5bf43ea55343e694f98bf7fb328f24d4fc50cc33377b25af382b9ec9e8a790c5d873d2eaf0cc2ce
diff --git a/dev-scheme/chicken/chicken-5.2.0.ebuild b/dev-scheme/chicken/chicken-5.2.0.ebuild
new file mode 100644
index 000000000000..2dbaea1fa525
--- /dev/null
+++ b/dev-scheme/chicken/chicken-5.2.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Scheme interpreter and native Scheme to C compiler"
+HOMEPAGE="http://www.call-cc.org/"
+SRC_URI="http://code.call-cc.org/releases/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ default
+
+ # Because chicken's Upstream is in the habit of using variables that
+ # portage also uses :( eg. $ARCH and $A
+ sed "s,A\(\s?=\|)\),chicken&," \
+ -i Makefile.cross-linux-mingw defaults.make rules.make || die
+ sed "s,ARCH,zARCH," \
+ -i Makefile.* defaults.make rules.make || die
+ sed -e "s,\$(PREFIX)/lib,\$(PREFIX)/$(get_libdir)," \
+ -e "s,\$(DATADIR)/doc,\$(SHAREDIR)/doc/${PF}," \
+ -i defaults.make || die
+
+ if ! use doc; then
+ rm -rf manual-html || die
+ # Without this Makefile tries to re-bootstrap the compiler
+ touch build-version.c
+ fi
+}
+
+src_compile() {
+ emake -j1 PLATFORM=linux PREFIX=/usr C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
+ LINKER_OPTIONS="${LDFLAGS}" \
+ HOSTSYSTEM="${CBUILD}"
+}
+
+src_test() {
+ cd tests
+ ./runtests.sh || die
+}
+
+src_install() {
+ # still can't run make in parallel for the install target
+ emake -j1 PLATFORM=linux PREFIX=/usr DESTDIR="${D}" HOSTSYSTEM="${CBUILD}" \
+ LINKER_OPTIONS="${LDFLAGS}" install
+
+ rm "${D}"/usr/share/doc/${PF}/LICENSE || die
+
+ # README is installed by Makefile
+ dodoc NEWS
+
+ # Let portage track this file (created later)
+ touch "${D}"/usr/$(get_libdir)/chicken/11/modules.db || die
+}
+
+pkg_postinst() {
+ # Create modules.db file in ${ROOT}
+ chicken-install -update-db || die
+}