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-r1.ebuild.orig (-15 / +12 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-r1.ebuild,v 1.1 2009/02/03 16:34:28 hkbst Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/scm/scm-5.5.5-r1.ebuild,v 1.1 2009/02/03 16:34:28 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-48 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() {
33
	sed 's:man1dir = $(prefix)man/man1/:man1dir = $(prefix)share/man/man1/:' -i Makefile # bug 247182
29
	unpack ${A}
30
	cd "${S}"
34
31
35
	diff -u Makefile.old Makefile
32
	sed -i -e 's#local/##' \
33
		-e 's:man1dir = $(prefix)man/man1/:man1dir = $(prefix)share/man/man1/:' \
34
		-e '/strip .*/d' \
35
		Makefile || die
36
}
36
}
37
37
38
src_compile() {
38
src_compile() {
39
	einfo "Making scmlit"
40
	#parallel make fails sometimes
39
	#parallel make fails sometimes
41
	emake -j1 scmlit || die
40
	emake -j1 scmlit || die
42
	einfo "Creating script to build scm"
43
	echo "srcdir=/usr/share/scm/" > srcdir.mk
41
	echo "srcdir=/usr/share/scm/" > srcdir.mk
44
	./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die
42
	./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die
45
	einfo "Building scm"
46
	sh _compile.sh || die
43
	sh _compile.sh || die
47
}
44
}
48
45

Return to bug 251926