Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 251926 | Differences between
and this patch

Collapse All | Expand All

(-)scm-5.5.5.ebuild.orig (-14 / +11 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/scm/scm-5.5.5.ebuild,v 1.1 2009/02/02 22:19:35 hkbst Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/scm/scm-5.5.5.ebuild,v 1.1 2009/02/02 22:19:35 hkbst Exp $
4
4
Lines 7-21 Link Here
7
#version magic thanks to masterdriverz and UberLord using bash array instead of tr
7
#version magic thanks to masterdriverz and UberLord using bash array instead of tr
8
trarr="0abcdefghi"
8
trarr="0abcdefghi"
9
MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
9
MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
10
11
MY_P=${PN}-${MY_PV}
10
MY_P=${PN}-${MY_PV}
12
S=${WORKDIR}/${PN}
11
13
DESCRIPTION="Scheme implementation from author of slib"
12
DESCRIPTION="Scheme implementation from author of slib"
14
SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip"
15
HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM"
13
HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM"
14
SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip"
16
15
17
SLOT="0"
18
LICENSE="LGPL-3"
16
LICENSE="LGPL-3"
17
SLOT="0"
19
KEYWORDS="~amd64 ~x86"
18
KEYWORDS="~amd64 ~x86"
20
IUSE=""
19
IUSE=""
21
20
Lines 24-47 Link Here
24
DEPEND="app-arch/unzip
23
DEPEND="app-arch/unzip
25
		>=dev-scheme/slib-3.1.5"
24
		>=dev-scheme/slib-3.1.5"
26
25
27
src_unpack() {
26
S=${WORKDIR}/${PN}
28
	unpack ${A}; cd "${S}"
29
30
#	cp Makefile Makefile.old
31
27
32
	sed "s#local/##" -i Makefile
28
src_unpack() {
29
	unpack ${A}
30
	cd "${S}"
33
31
34
#	diff -u Makefile.old Makefile
32
	sed -i -e "s#local/##" \
33
		-e '/strip .*/d' \
34
		Makefile || die
35
}
35
}
36
36
37
src_compile() {
37
src_compile() {
38
	einfo "Making scmlit"
39
	#parallel make fails sometimes
38
	#parallel make fails sometimes
40
	emake -j1 scmlit || die
39
	emake -j1 scmlit || die
41
	einfo "Creating script to build scm"
42
	echo "srcdir=/usr/share/scm/" > srcdir.mk
40
	echo "srcdir=/usr/share/scm/" > srcdir.mk
43
	./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die
41
	./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die
44
	einfo "Building scm"
45
	sh _compile.sh || die
42
	sh _compile.sh || die
46
}
43
}
47
44

Return to bug 251926