blob: cb6705320133a94a2e6c274d80eff5fb389fe34a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/swig-1.3.36.ebuild,v 1.6 2009/01/16 10:01:04 armin76 Exp $
inherit flag-o-matic mono eutils #48511
DESCRIPTION="Simplified Wrapper and Interface Generator"
HOMEPAGE="http://www.swig.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
IUSE="chicken clisp doc guile java lua mono mzscheme ocaml octave perl php pike python R ruby tcl tk" #gcj
RESTRICT="test"
DEPEND="
chicken? ( dev-scheme/chicken )
clisp? ( dev-lisp/clisp )
guile? ( dev-scheme/guile )
java? ( virtual/jdk )
lua? ( dev-lang/lua )
mono? ( dev-lang/mono )
mzscheme? ( dev-scheme/plt-scheme )
perl? ( dev-lang/perl )
php? ( virtual/php )
pike? ( dev-lang/pike )
python? ( virtual/python )
R? ( dev-lang/R )
ocaml? ( dev-lang/ocaml )
octave? ( sci-mathematics/octave )
ruby? ( virtual/ruby )
tcl? ( dev-lang/tcl )
tk? ( dev-lang/tk )
"
# gcj? ( sys-devel/gcc[+gcj] )
src_unpack() {
unpack ${A};cd "${S}"
if has_version '>=dev-scheme/plt-scheme-4'; then
epatch "${FILESDIR}"/fix-for-PLT4.patch
./autogen.sh
fi
}
src_compile() {
strip-flags
local myconf
if use ruby ; then
local rubyver=$(ruby --version | cut -d '.' -f 1,2)
export RUBY="/usr/$(get_libdir)/ruby/${rubyver/ruby /}/"
fi
econf \
$(use_with chicken) \
$(use_with clisp) \
$(use_with guile) \
$(use_with java java "${JAVA_HOME}") \
$(use_with java javaincl "${JAVA_HOME}/include") \
$(use_with lua) \
$(use_with mono csharp) \
$(use_with mzscheme) \
$(use_with ocaml) \
$(use_with octave) \
$(use_with perl perl5 /usr/bin/perl) \
$(use_with php php4) \
$(use_with pike) \
$(use_with python) \
$(use_with R r) \
$(use_with ruby ruby /usr/bin/ruby) \
$(use_with tk x) \
$(use_with tcl) \
|| die
emake || die
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc ANNOUNCE CHANGES CHANGES.current FUTURE NEW README TODO
use doc && dohtml -r Doc/{Devel,Manual}
}
|