diff options
author | Maciej Barć <xgqt@riseup.net> | 2021-08-09 20:02:39 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@riseup.net> | 2021-08-09 20:10:22 +0200 |
commit | 20027f5495c8b7e0cefb5cb8827fdc655fedb71b (patch) | |
tree | e325eccd6f82acb126b5054859909c8cf80b4c9a /dev-scheme | |
parent | app-misc/navi: Version bump 2.17.0 (diff) | |
download | guru-20027f5495c8b7e0cefb5cb8827fdc655fedb71b.tar.gz guru-20027f5495c8b7e0cefb5cb8827fdc655fedb71b.tar.bz2 guru-20027f5495c8b7e0cefb5cb8827fdc655fedb71b.zip |
dev-scheme/cyclone: bump to 0.31.0
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@riseup.net>
Diffstat (limited to 'dev-scheme')
-rw-r--r-- | dev-scheme/cyclone/Manifest | 1 | ||||
-rw-r--r-- | dev-scheme/cyclone/cyclone-0.31.0.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-scheme/cyclone/Manifest b/dev-scheme/cyclone/Manifest index 7d9a1e32b..c604cb7a3 100644 --- a/dev-scheme/cyclone/Manifest +++ b/dev-scheme/cyclone/Manifest @@ -1 +1,2 @@ DIST cyclone-0.28.0.tar.gz 3683280 BLAKE2B 7f5e5982104094bbadc9cde545b3d9d21b3f000136ff07543b4fd4f8a5e79799b8adf8c480bc65f15645e62ec9ae5cccc9c5ae9305334ae2ef080eab6d730045 SHA512 e106a0ef779a4829b729a928e30cf80409e6fe6bb14859c595098e0bfe18fcd5d9ba8859d607a55ec2f97b2c58ec8ccb3405b41de34044994441889718c6caec +DIST cyclone-0.31.0.tar.gz 3936909 BLAKE2B 6439501caa0cb92fe2bb5c59b452b13ac4206c62ce4ddfb3e459c1160ee0904b4720f3b8506b71eab67841b72a1b96ffc31283946fc91da285c8ba7ca75d4d4d SHA512 f0a5d7c6890183ccab65028f43be2080dcf7d44b80a254f176ffa034c04a2701266febbc3f91072e58175bc84eb86a839dab1dbb3674868128ef3d8e650c91c9 diff --git a/dev-scheme/cyclone/cyclone-0.31.0.ebuild b/dev-scheme/cyclone/cyclone-0.31.0.ebuild new file mode 100644 index 000000000..5e0340647 --- /dev/null +++ b/dev-scheme/cyclone/cyclone-0.31.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-bootstrap-${PV}" +fi + +LICENSE="MIT" +SLOT="0" + +DEPEND="dev-libs/concurrencykit" +RDEPEND="${DEPEND}" + +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="${EPREFIX}/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() { + einstalldocs + + emake PREFIX="/usr" DESTDIR="${D}" install +} |