diff options
author | Akinori Hattori <hattya@gentoo.org> | 2021-12-02 22:17:25 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2021-12-02 22:17:25 +0900 |
commit | bde7aec9acbad4782f5f69b79a831ddfc717ef94 (patch) | |
tree | ca97057169f93b305e3ac3a46211b2d7d02895de /dev-scheme/tinyscheme/tinyscheme-1.41-r1.ebuild | |
parent | dev-scheme/tinyscheme: update patch (diff) | |
download | gentoo-bde7aec9acbad4782f5f69b79a831ddfc717ef94.tar.gz gentoo-bde7aec9acbad4782f5f69b79a831ddfc717ef94.tar.bz2 gentoo-bde7aec9acbad4782f5f69b79a831ddfc717ef94.zip |
dev-scheme/tinyscheme: update to EAPI 8
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme/tinyscheme/tinyscheme-1.41-r1.ebuild')
-rw-r--r-- | dev-scheme/tinyscheme/tinyscheme-1.41-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-scheme/tinyscheme/tinyscheme-1.41-r1.ebuild b/dev-scheme/tinyscheme/tinyscheme-1.41-r1.ebuild new file mode 100644 index 000000000000..65386c50ba9e --- /dev/null +++ b/dev-scheme/tinyscheme/tinyscheme-1.41-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="Lightweight scheme interpreter" +HOMEPAGE="https://tinyscheme.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="static-libs" + +RDEPEND="" +DEPEND="" + +PATCHES=( "${FILESDIR}"/${PN}-makefile.patch ) +DOCS=( CHANGES {Manual,MiniSCHEMETribute,hack}.txt ) + +src_compile() { + emake \ + AR=$(tc-getAR) \ + CC=$(tc-getCC) \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + local tslib=lib${PN}$(get_libname) + local tslibx=lib${PN}$(get_libname ${PV}) + + newbin scheme ${PN} + + newlib.so ${tslib} ${tslibx} + dosym ${tslibx} /usr/$(get_libdir)/${tslib} + use static-libs && dolib.a lib${PN}.a + einstalldocs + + # bug #328967 + insinto /usr/include + newins scheme.h ${PN}.h + + local INIT_DIR=/usr/share/${PN} + insinto ${INIT_DIR} + doins init.scm + dodir /etc/env.d + echo "TINYSCHEMEINIT=\"${EPREFIX}${INIT_DIR}/init.scm\"" >"${ED}"/etc/env.d/50${PN} +} |