summaryrefslogtreecommitdiff
path: root/dev-scheme
diff options
context:
space:
mode:
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/Manifest.gzbin9826 -> 9829 bytes
-rw-r--r--dev-scheme/chicken/Manifest2
-rw-r--r--dev-scheme/chicken/chicken-5.4.0.ebuild76
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-scheme/Manifest.gz b/dev-scheme/Manifest.gz
index ce8d895880a4..6b14e19be59b 100644
--- a/dev-scheme/Manifest.gz
+++ b/dev-scheme/Manifest.gz
Binary files differ
diff --git a/dev-scheme/chicken/Manifest b/dev-scheme/chicken/Manifest
index f2873943e7f0..8564f7659163 100644
--- a/dev-scheme/chicken/Manifest
+++ b/dev-scheme/chicken/Manifest
@@ -1,3 +1,5 @@
DIST chicken-5.3.0.tar.gz 4069549 BLAKE2B 7e1fb8c844542927eec53df751014f718b8c96fb6cf390d6464d7d55467c7320346be9ed05202b9c5c96548f274243ae52fead488981d7c207bec2c001db7cd7 SHA512 8fcc08a1ba44cde42c95820695a11858a3b7ff39a4b577bc5afb894c53513661aab2dc5b8e608e1d9d26648e314551052041626c4c8e519fcb9f8af324386e02
+DIST chicken-5.4.0.tar.gz 4109135 BLAKE2B 75dda6891992a7eeae8ac7624678c62c9aff61a712c9b8812b008f3369b11297019eaed259c28999a8e4f9aa587583cdef4284b5ada2bc971ef823ffa5508b35 SHA512 21f5dc4abcfce7be2d8eb6728061728a4a695ac88860e94e114c2bf2839a8a47bbdc368330913edc83d5b81b6b2499c608e47e6659fa7651c82d133abb7e4e3c
EBUILD chicken-5.3.0.ebuild 1794 BLAKE2B c4a920785fd4f12c118ecc6204dcb1ce90aa920aeac26800f4efc4b748e5d5a64f53f6ec40ba4d2091ff839afa7f42ba716b1d39f0c572765c652be900b23a14 SHA512 6a7862a7d54ca2dacec003607a42fa7a2d31992e70311152c30c9c89c33dbe4ba9b1de7f25633276d012b1d446c17b8c53d82885360232093411a3c2d724f4cd
+EBUILD chicken-5.4.0.ebuild 1809 BLAKE2B 623e15265ef7122fc3aebd021f19db5b12ee8eb7ad5dbcd26347655fb6d2822453176bda440068021dff9326ab065a4a1d9623c541d1222b1dac6126bd3c784e SHA512 2bcf9a769b84105f92f2b531bc21c8e149b67ebef460b7b7cdf5f3312859fc82cdd24d0466c130ad0fb80b3a4c01523bcf12a885d876f06203ecdbde790f9b97
MISC metadata.xml 634 BLAKE2B b12c63caf7f06e32c23cf6ee7a02d245759f1e8d7da7e69457536e6a8a792eba43b86e170e04f67e6a4871ca4342c4db8db1661fe12626182ae3718dd1599f49 SHA512 9e7e23a443b91bd44870cc00206af7ff6dc536435d69ecfb370e423455b62df8aa4835265994f83c53240001727276005a3c30a4afac6c21f1b10c411d1b1ae7
diff --git a/dev-scheme/chicken/chicken-5.4.0.ebuild b/dev-scheme/chicken/chicken-5.4.0.ebuild
new file mode 100644
index 000000000000..15244570240f
--- /dev/null
+++ b/dev-scheme/chicken/chicken-5.4.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Scheme interpreter and native Scheme to C compiler"
+HOMEPAGE="https://www.call-cc.org/"
+SRC_URI="https://code.call-cc.org/releases/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~riscv ~x86"
+IUSE="doc"
+
+src_prepare() {
+ default
+
+ # because chicken's upstream is in the habit of using variables that
+ # portage also uses :( eg. $ARCH and $A
+ sed -i \
+ -e "s/A\([[:space:]]*?=\|)\)/z&/" \
+ -e "s/ARCH/z&/" \
+ -e "/LICENSE /d" \
+ Makefile.* {defaults,rules}.make || die
+
+ sed -i \
+ -e "s|/lib|/$(get_libdir)|" \
+ -e "s|\$(DATADIR)/doc|\$(SHAREDIR)/doc/${PF}|" \
+ defaults.make || die
+
+ sed -i \
+ -e "/\$(CHICKEN_DO_PROGRAM)\$(EXE):/,/^$/s/\(\$<\)/\$(LINKER_OPTIONS) \1/" \
+ rules.make || die
+
+ use doc || sed -i "/\$(SEP)manual/d" rules.make || die
+}
+
+src_compile() {
+ emake -j1 \
+ PLATFORM="linux" \
+ PREFIX="${EPREFIX}/usr" \
+ C_COMPILER="$(tc-getCC)" \
+ C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
+ CXX_COMPILER="$(tc-getCXX)" \
+ HOSTSYSTEM="${CBUILD}" \
+ LINKER_OPTIONS="${LDFLAGS}"
+}
+
+src_test() {
+ cd tests && ./runtests.sh || die
+}
+
+src_install() {
+ emake -j1 \
+ PLATFORM="linux" \
+ PREFIX="${EPREFIX}/usr" \
+ C_COMPILER="$(tc-getCC)" \
+ C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
+ CXX_COMPILER="$(tc-getCXX)" \
+ HOSTSYSTEM="${CBUILD}" \
+ LINKER_OPTIONS="${LDFLAGS}" \
+ DESTDIR="${D}" \
+ install
+ einstalldocs
+ find "${ED}" -name '*.a' -delete || die
+
+ # let portage track this file (created later)
+ touch "${ED}"/usr/$(get_libdir)/${PN}/11/modules.db || die
+}
+
+pkg_postinst() {
+ # create modules.db file in ${ROOT}
+ chicken-install -update-db || die
+}