summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-02-14 21:13:17 +0100
committerMaciej Barć <xgqt@gentoo.org>2024-02-14 21:27:59 +0100
commitbaa89b6e6b5c5d72a6860bcb8c87acbba9e516bf (patch)
tree39d1479de9f71b2c732ab4afb4f59dce2c6df1bd /dev-scheme
parentdev-scheme/cyclone: drop old 0.34.0 (diff)
downloadgentoo-baa89b6e6b5c5d72a6860bcb8c87acbba9e516bf.tar.gz
gentoo-baa89b6e6b5c5d72a6860bcb8c87acbba9e516bf.tar.bz2
gentoo-baa89b6e6b5c5d72a6860bcb8c87acbba9e516bf.zip
dev-scheme/cyclone: bump to 0.36.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/cyclone/Manifest1
-rw-r--r--dev-scheme/cyclone/cyclone-0.36.0.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-scheme/cyclone/Manifest b/dev-scheme/cyclone/Manifest
index 528bc1469e61..2773ee76c5dd 100644
--- a/dev-scheme/cyclone/Manifest
+++ b/dev-scheme/cyclone/Manifest
@@ -1 +1,2 @@
DIST cyclone-0.35.0.tar.gz 3955837 BLAKE2B 436399bd3d6f2233d9b613e059131195419ca25f0dab80cac19b14accdceffe481af68ba127d2cb4b4cc1d357e102f7548a98cf2e6c055ecd1d9a3248164b94e SHA512 9aabae2bdcccdf6873780947c41a3230b80a3a5e93c9797cdfe278ba971e2b43320edab31349403a7fb14416c92216395d76af2415c33fb28f041ab867f2d716
+DIST cyclone-0.36.0.tar.gz 3967729 BLAKE2B e546023734adfd277699b686d984cd55b4b0053795fbb6fbe90e7e5db65b795ed7a758c8b7b4f6b67ad2e5f7a89bbc87f77e384863f2c4cecd2f4bc860559e52 SHA512 477534602baa4acbae0450e664617ad70302a79c552005741080c4e4d2993805ff1d25703bd2c43c82764a477a4b26fb4b88c8787a82e99fa5a6fc88d9f914f2
diff --git a/dev-scheme/cyclone/cyclone-0.36.0.ebuild b/dev-scheme/cyclone/cyclone-0.36.0.ebuild
new file mode 100644
index 000000000000..c709f1965f91
--- /dev/null
+++ b/dev-scheme/cyclone/cyclone-0.36.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Cyclone is a self-hosting Scheme to C compiler
+# cyclone-bootstrap is the Cyclone source transpiled by it to C.
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="R7RS Scheme to C compiler"
+HOMEPAGE="http://justinethier.github.io/cyclone/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/justinethier/${PN}-bootstrap.git"
+else
+ SRC_URI="https://github.com/justinethier/${PN}-bootstrap/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-bootstrap-${PV}"
+
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="
+ dev-libs/concurrencykit
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+src_configure() {
+ export CYC_GCC_OPT_FLAGS="${CFLAGS}"
+
+ append-cflags -fPIC -Iinclude
+ append-ldflags -L.
+ tc-export AR CC RANLIB
+}
+
+src_compile() {
+ local -a myopts=(
+ PREFIX="/usr"
+ CYC_GCC_OPT_FLAGS="${CYC_GCC_OPT_FLAGS}"
+ AR="$(tc-getAR)"
+ CC="$(tc-getCC)"
+ RANLIB="$(tc-getRANLIB)"
+ )
+ emake "${myopts[@]}"
+}
+
+src_test() {
+ emake LDFLAGS="" test
+}
+
+src_install() {
+ emake PREFIX="/usr" DESTDIR="${D}" install
+ einstalldocs
+}