summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-08-27 16:33:41 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-08-27 17:04:09 +0200
commitf47cadf64a7804ff020e5be54bcf33bc8c87ad75 (patch)
tree8c697f415a62f521ff960cf6574913a8d2a95cc2 /dev-scheme
parentapp-portage/portage-utils: drop 0.90, 0.90.1, 0.92 (diff)
downloadgentoo-f47cadf64a7804ff020e5be54bcf33bc8c87ad75.tar.gz
gentoo-f47cadf64a7804ff020e5be54bcf33bc8c87ad75.tar.bz2
gentoo-f47cadf64a7804ff020e5be54bcf33bc8c87ad75.zip
dev-scheme/cyclone: bump to 0.35.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.35.0.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-scheme/cyclone/Manifest b/dev-scheme/cyclone/Manifest
index 5cfb186e2a3d..6d00beed4053 100644
--- a/dev-scheme/cyclone/Manifest
+++ b/dev-scheme/cyclone/Manifest
@@ -1,2 +1,3 @@
DIST cyclone-0.33.0.tar.gz 3946573 BLAKE2B 7eba62995ef3d327e14d6fbcf433d40e73c244508f8858d636a3a3fd05660e2921055932dedbe50ce8b384e9a9b44a09112aca6f851af6cd38b9b372769b2adc SHA512 96ffd3d04636b27f36c98920359a9f880c4b2a15e9820e5d91c82f821dc93357b665537e7688b00510d6a4fd113666edbd5ec109ff491f4f18d547129527b763
DIST cyclone-0.34.0.tar.gz 3947685 BLAKE2B db86669bda00c89cee0d6b9224e7cb407961e6c7a8ccc0743a655966da16c8a06516c481ae75cb609053a9622fafcbb47bcc9f53226f3842a0abcde19eb86c3b SHA512 581866985709bff90a4f4fab9a24fc013ee43225b04fb2bd1128da02f0164de55f6d7d80d5cfcff5eedaf23b3fc38dc3c46e6f376e2f341b4991a3f1c54cd53b
+DIST cyclone-0.35.0.tar.gz 3955837 BLAKE2B 436399bd3d6f2233d9b613e059131195419ca25f0dab80cac19b14accdceffe481af68ba127d2cb4b4cc1d357e102f7548a98cf2e6c055ecd1d9a3248164b94e SHA512 9aabae2bdcccdf6873780947c41a3230b80a3a5e93c9797cdfe278ba971e2b43320edab31349403a7fb14416c92216395d76af2415c33fb28f041ab867f2d716
diff --git a/dev-scheme/cyclone/cyclone-0.35.0.ebuild b/dev-scheme/cyclone/cyclone-0.35.0.ebuild
new file mode 100644
index 000000000000..23bf9fb347ee
--- /dev/null
+++ b/dev-scheme/cyclone/cyclone-0.35.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2022 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"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+ S="${WORKDIR}"/${PN}-bootstrap-${PV}
+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 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
+}