diff options
Diffstat (limited to 'dev-scheme/tinyscheme/tinyscheme-1.41.ebuild')
-rw-r--r-- | dev-scheme/tinyscheme/tinyscheme-1.41.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-scheme/tinyscheme/tinyscheme-1.41.ebuild b/dev-scheme/tinyscheme/tinyscheme-1.41.ebuild new file mode 100644 index 000000000000..f7334f9de0f0 --- /dev/null +++ b/dev-scheme/tinyscheme/tinyscheme-1.41.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/tinyscheme/tinyscheme-1.41.ebuild,v 1.1 2013/12/11 13:27:11 pchrist Exp $ + +EAPI="5" + +inherit flag-o-matic multilib + +DESCRIPTION="Lightweight scheme interpreter" +HOMEPAGE="http://tinyscheme.sourceforge.net" +SRC_URI="mirror://sourceforge/tinyscheme/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +#KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos ~x64-macos" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="static-libs" + +DEPEND="" +RDEPEND="" + +src_prepare() { + + epatch "${FILESDIR}"/${P}-makefile.patch + + if [[ ${CHOST} == *-darwin* ]] ; then + append-flags -DOSX + sed -i \ + -e 's/SOsuf=so/SOsuf=dylib/' \ + -e "s|-Wl,-soname=|-Wl,-install_name=${EPREFIX}/usr/lib/|" \ + makefile || die + fi +} + +src_compile() { + emake LDFLAGS="${LDFLAGS}"\ + AR=$(tc-getAR) CC=$(tc-getCC) +} + +src_install() { + + local tslib=libtinyscheme$(get_libname) + local tslibx=libtinyscheme$(get_libname ${PV}) + + newbin scheme ${PN} + + newlib.so ${tslib} ${tslibx} + dosym ${tslibx} /usr/$(get_libdir)/${tslib} + dodoc Manual.txt || die "dodoc failed" + + if use static-libs; then + dolib.a libtinyscheme.a + fi + + # Bug 328967: dev-scheme/tinyscheme-1.39-r1 doesn't install header file + insinto /usr/include/ + newins scheme.h tinyscheme.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/50tinyscheme +} |