mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@riseup.net>
48 lines
947 B
Bash
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
|
|
}
|