blob: d1e8e298dbe621b76ecf5955d963cf2ba973c67b (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/scm/scm-5.5.3.ebuild,v 1.3 2007/05/28 11:46:22 hkbst Exp $
inherit versionator eutils
#version magic thanks to masterdriverz and UberLord using bash array instead of tr
trarr="0abcdefghi"
MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
MY_P=${PN}${MY_PV}
S=${WORKDIR}/${PN}
DESCRIPTION="Scheme implementation from author of slib"
SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip"
HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM"
SLOT="0"
LICENSE="GPL-2-with-linking-exception"
KEYWORDS="~amd64"
IUSE=""
#unzip for unpacking
RDEPEND=""
DEPEND="app-arch/unzip
>=dev-scheme/slib-3.1.4-r2"
src_compile() {
einfo "Making scmlit"
#parallel make fails sometimes
emake -j1 scmlit
einfo "Building"
echo "srcdir=${ROOT}/usr/share/scm/" > srcdir.mk
./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro
emake
}
src_install() {
# emake DESTDIR=${D} install
insinto /usr/share/scm/
doins *.scm
dodoc ANNOUNCE QUICKREF README
dobin scm
}
pkg_postinst() {
einfo "Regenerating catalog..."
scm -e "(require 'new-catalog)"
}
|