summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2021-12-02 22:19:36 +0900
committerAkinori Hattori <hattya@gentoo.org>2021-12-02 22:19:36 +0900
commit0f45e090aab4a67bc9a32fdd4a84d4b828cacd58 (patch)
tree877d81891eb077b34a991554ce487ba2e61ae939 /dev-scheme/tinyscheme
parentdev-scheme/tinyscheme: update to EAPI 8 (diff)
downloadgentoo-0f45e090aab4a67bc9a32fdd4a84d4b828cacd58.tar.gz
gentoo-0f45e090aab4a67bc9a32fdd4a84d4b828cacd58.tar.bz2
gentoo-0f45e090aab4a67bc9a32fdd4a84d4b828cacd58.zip
dev-scheme/tinyscheme: new upstream release
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme/tinyscheme')
-rw-r--r--dev-scheme/tinyscheme/Manifest1
-rw-r--r--dev-scheme/tinyscheme/tinyscheme-1.42.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-scheme/tinyscheme/Manifest b/dev-scheme/tinyscheme/Manifest
index ef3e27e682ee..824398700899 100644
--- a/dev-scheme/tinyscheme/Manifest
+++ b/dev-scheme/tinyscheme/Manifest
@@ -1 +1,2 @@
DIST tinyscheme-1.41.tar.gz 61761 BLAKE2B b657376561eee0ceae02d102ae7da7ce777dcbc78c98b54b0c00c578fb06ccdd3fba8aca5ce150ca188917b8e5f1e9acb63c9c5dc2e050aafa78b0705a20d47c SHA512 a9c1c9cd7a11bf31e0f8ac813ebd6e731cb56b9526fd14d343d7f8c479a8e1b561b744b3f522512adc023cacd1acbf52aa18bf5d8db68f767971660305b79b0f
+DIST tinyscheme-1.42.tar.gz 62156 BLAKE2B 9ebda4e0d90c37bb5e9b8275e67912daebe3786163bdb0b5ad06ad48bdd98934f9ce8679c0d259276fd4a8595522cb06d384498fe283314b782e29bf723af522 SHA512 54841dddd151042a976343409d5fcd778390bfddad50986d2a19120ec1eede54e2a3150100f5331abcacc222d8d547abde2b65a427c0353c2534b5f52918606c
diff --git a/dev-scheme/tinyscheme/tinyscheme-1.42.ebuild b/dev-scheme/tinyscheme/tinyscheme-1.42.ebuild
new file mode 100644
index 000000000000..91c204a5cfb1
--- /dev/null
+++ b/dev-scheme/tinyscheme/tinyscheme-1.42.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}
+}