diff options
author | 2022-08-27 16:33:41 +0200 | |
---|---|---|
committer | 2022-08-27 17:04:09 +0200 | |
commit | f47cadf64a7804ff020e5be54bcf33bc8c87ad75 (patch) | |
tree | 8c697f415a62f521ff960cf6574913a8d2a95cc2 /dev-scheme/cyclone/cyclone-0.35.0.ebuild | |
parent | app-portage/portage-utils: drop 0.90, 0.90.1, 0.92 (diff) | |
download | gentoo-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/cyclone/cyclone-0.35.0.ebuild')
-rw-r--r-- | dev-scheme/cyclone/cyclone-0.35.0.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
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 +} |