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.4.ebuild.orig (-21 / +16 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2008 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.4.ebuild,v 1.3 2008/11/17 13:40:07 pchrist Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/scm/scm-5.5.4.ebuild,v 1.3 2008/11/17 13:40:07 pchrist Exp $
4
4
Lines 6-22 Link Here
6
6
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)"
10
9
10
MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
11
MY_P=${PN}${MY_PV}
11
MY_P=${PN}${MY_PV}
12
S=${WORKDIR}/${PN}
13
DESCRIPTION="Scheme implementation from author of slib"
14
SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip"
15
12
13
DESCRIPTION="Scheme implementation from author of slib"
16
HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM"
14
HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM"
15
SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip"
17
16
18
SLOT="0"
19
LICENSE="GPL-2-with-linking-exception"
17
LICENSE="GPL-2-with-linking-exception"
18
SLOT="0"
20
KEYWORDS="~amd64 ~x86"
19
KEYWORDS="~amd64 ~x86"
21
IUSE=""
20
IUSE=""
22
21
Lines 25-53 Link Here
25
DEPEND="app-arch/unzip
24
DEPEND="app-arch/unzip
26
		>=dev-scheme/slib-3.1.5"
25
		>=dev-scheme/slib-3.1.5"
27
26
28
src_unpack() {
27
S=${WORKDIR}/${PN}
29
	unpack ${A}; cd "${S}"
30
31
#	cp Makefile Makefile.old
32
33
	sed "s#local/##" -i Makefile
34
28
35
	#sent upstream again
29
src_unpack() {
36
	sed "s#mkdir#mkdir -p#" -i Makefile
30
	unpack ${A}
37
	sed "s#-p -p#-p#" -i Makefile
31
	cd "${S}"
38
	sed -i -e 's/mandir = $(prefix)man\//mandir = $(prefix)share\/man\//' Makefile
39
32
40
#	diff -u Makefile.old Makefile
33
	sed -i -e "s#local/##" \
34
		-e '/strip .*/d' \
35
		-e "s#mkdir#mkdir -p#" \
36
		-e "s#-p -p#-p#" \
37
		-e 's/mandir = $(prefix)man\//mandir = $(prefix)share\/man\//' \
38
		Makefile || die
41
}
39
}
42
40
43
src_compile() {
41
src_compile() {
44
	einfo "Making scmlit"
45
	#parallel make fails sometimes
42
	#parallel make fails sometimes
46
	emake -j1 scmlit
43
	emake -j1 scmlit || die
47
	einfo "Creating script to build scm"
48
	echo "srcdir=/usr/share/scm/" > srcdir.mk
44
	echo "srcdir=/usr/share/scm/" > srcdir.mk
49
	./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die
45
	./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die
50
	einfo "Building scm"
51
	sh _compile.sh || die
46
	sh _compile.sh || die
52
}
47
}
53
48

Return to bug 251926