blob: f7334f9de0f0c7e96f422912d129095fff4db976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
}
|