Files
guru/dev-scheme/cyclone/cyclone-0.28.0.ebuild
Maciej Barć b7dd72c83a dev-scheme/cyclone: remove defults
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-05-16 03:28:31 +02:00

48 lines
947 B
Bash

# 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 transpired by it to C
EAPI=7
inherit flag-o-matic
DESCRIPTION="Scheme R7RS 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() {
append-cflags -fPIC -rdynamic -Iinclude
append-ldflags -L. -Wl,--export-dynamic
tc-export CC
}
src_test() {
emake test LDFLAGS=""
}
src_install() {
einstalldocs
emake PREFIX="/usr" DESTDIR="${D}" install
}