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

Collapse All | Expand All

(-)squeak-3.10.ebuild~ (-5 / +20 lines)
Lines 2-8 Link Here
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-lang/squeak/squeak-3.9.7.ebuild,v 1.4 2007/07/22 08:43:03 graaff Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-lang/squeak/squeak-3.9.7.ebuild,v 1.4 2007/07/22 08:43:03 graaff Exp $
4
4
5
inherit base fixheadtails eutils
5
inherit eutils fixheadtails toolchain-funcs
6
6
7
MY_PV="${PV}-1"
7
MY_PV="${PV}-1"
8
8
Lines 11-18 Link Here
11
SRC_URI="http://ftp.squeak.org/${PV}/unix-linux/Squeak-${MY_PV}.src.tar.gz  "
11
SRC_URI="http://ftp.squeak.org/${PV}/unix-linux/Squeak-${MY_PV}.src.tar.gz  "
12
LICENSE="Apple"
12
LICENSE="Apple"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~x86"
14
KEYWORDS="~amd64 ~x86"
15
IUSE="X mmx threads iconv opengl"
15
IUSE="X iconv libffi mmx opengl threads"
16
16
17
DEPEND="X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXt )
17
DEPEND="X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXt )
18
	opengl? ( virtual/opengl )"
18
	opengl? ( virtual/opengl )"
Lines 21-32 Link Here
21
21
22
S="${WORKDIR}/Squeak-${MY_PV}"
22
S="${WORKDIR}/Squeak-${MY_PV}"
23
23
24
pkg_setup() {
25
	local mygcc="~sys-devel/gcc-$(gcc-fullversion)"
26
	# can't use built_with_use -o because of the interaction with --missing
27
	if ! use x86 && ! use ppc && use libffi &&
28
		! built_with_use --missing false ${mygcc} libffi &&
29
		! built_with_use --missing false ${mygcc} gcj; then
30
		die "please disable the libffi USE-flag for this package or rebuild ${mygcc} with the libffi USE-flag"
31
	fi
32
}
33
24
src_unpack() {
34
src_unpack() {
25
	base_src_unpack
35
	unpack ${A}
26
	cd "${S}"
36
	cd "${S}"
27
	ht_fix_all
37
	ht_fix_all
28
	einfo "Patch for inisqueak"
38
	einfo "Patch for inisqueak"
29
	sed -i s/\${MAJOR}/39/ "${S}/platforms/unix/config/inisqueak.in"
39
	sed -i s/\${MAJOR}/39/ "${S}/platforms/unix/config/inisqueak.in"
40
	# ht_fix_all doesn't catch this because there's no number
41
	sed -i -e 's/tail +/tail -n +/' platforms/unix/config/inisqueak.in
42
	if ! use x86 && ! use ppc && ! use libffi; then
43
		# horrible hack because the build system doesn't have an option to disable it
44
		sed -i -e 's/<ffi\.h>/\<ffiDISABLED\.h>/' platforms/unix/config/configure || die "sed failed"
45
	fi
30
}
46
}
31
47
32
src_compile() {
48
src_compile() {
Lines 43-49 Link Here
43
		--prefix=/usr \
59
		--prefix=/usr \
44
		--infodir=/usr/share/info \
60
		--infodir=/usr/share/info \
45
		--mandir=/usr/share/man \
61
		--mandir=/usr/share/man \
46
		--with-ffi=x86-sysv \
47
		${myconf} || die "configure failed"
62
		${myconf} || die "configure failed"
48
	emake || die
63
	emake || die
49
}
64
}

Return to bug 196984