Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 104762
Collapse All | Expand All

(-)swig-1.3.24.ebuild (-18 / +14 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 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-lang/swig/swig-1.3.24.ebuild,v 1.3 2005/08/10 18:10:17 kito Exp $
3
# $Header: $
4
4
5
inherit flag-o-matic mono #48511
5
inherit flag-o-matic mono #48511
6
6
Lines 11-31 Link Here
11
LICENSE="as-is"
11
LICENSE="as-is"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~x86"
13
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~x86"
14
IUSE="java guile python tcltk ruby perl php X"
14
IUSE="doc guile java perl php python ruby tcltk X"
15
15
16
DEPEND="virtual/libc
16
DEPEND="virtual/libc
17
	python? ( >=dev-lang/python-2.0 )
17
	guile? ( >=dev-util/guile-1.4 )
18
	java? ( virtual/jdk )
18
	java? ( virtual/jdk )
19
	perl? ( >=dev-lang/perl-5.6.1 )
20
	php? ( virtual/php )
21
	python? ( virtual/python )
19
	ruby? ( virtual/ruby )
22
	ruby? ( virtual/ruby )
20
	guile? ( >=dev-util/guile-1.4 )
21
	tcltk? (
23
	tcltk? (
22
		dev-lang/tcl
24
		dev-lang/tcl
23
		X? ( dev-lang/tk )
25
		X? ( dev-lang/tk )
24
	)
26
	)"
25
	perl? ( >=dev-lang/perl-5.6.1 )
26
	php? ( >=dev-php/php-4.0.0 )"
27
28
S=${WORKDIR}/SWIG-${PV}
29
27
30
src_unpack() {
28
src_unpack() {
31
	unpack ${A}
29
	unpack ${A}
Lines 43-70 Link Here
43
	fi
41
	fi
44
42
45
	econf \
43
	econf \
46
		`use_with python py` \
44
		`use_with guile` \
47
		`use_with java java "${JAVA_HOME}"` \
45
		`use_with java java "${JAVA_HOME}"` \
48
		`use_with java javaincl "${JAVA_HOME}/include"` \
46
		`use_with java javaincl "${JAVA_HOME}/include"` \
49
		`use_with ruby ruby /usr/bin/ruby` \
50
		`use_with guile` \
51
		`use_with tcltk tcl` \
52
		`use_with perl perl5 /usr/bin/perl` \
47
		`use_with perl perl5 /usr/bin/perl` \
53
		`use_with php php4` \
48
		`use_with php php4` \
49
		`use_with python py` \
50
		`use_with ruby ruby /usr/bin/ruby` \
51
		`use_with tcltk tcl` \
54
		|| die
52
		|| die
55
53
56
	# fix the broken configure script
57
	use tcltk || sed -i -e "s:am__append_1 =:#am__append_1 =:" Runtime/Makefile
58
59
	`has_version dev-lisp/plt` && PLT=/usr/share/plt/collects
60
	`has_version dev-lisp/mzscheme` && PLT=/usr/share/mzscheme/collects
54
	`has_version dev-lisp/mzscheme` && PLT=/usr/share/mzscheme/collects
55
	`has_version dev-lisp/plt` && PLT=/usr/share/plt/collects
61
56
62
	emake || die
57
	emake || die
63
}
58
}
64
59
65
src_install() {
60
src_install() {
66
	make install DESTDIR=${D} || die
61
	make install DESTDIR=${D} || die
67
	dodoc ANNOUNCE CHANGES FUTURE NEW README TODO
62
	dodoc ANNOUNCE CHANGES CHANGES.current FUTURE NEW README TODO
63
	use doc && dohtml -r Doc/{Devel,Manual}
68
}
64
}
69
65
70
src_test() {
66
src_test() {

Return to bug 104762