blob: 04e8f5c1ab0497061f31e2b9bb07bf388854a849 (
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
|
# Copyright 1999-2022 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}
}
|