blob: 85256ae0efe40425f35ae13eb35ed606ffb68c98 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/swig-1.3.22.ebuild,v 1.4 2004/10/23 22:06:18 lanius Exp $
inherit flag-o-matic mono #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="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64"
IUSE="java guile python tcltk ruby perl php"
DEPEND="virtual/libc
python? ( >=dev-lang/python-2.0 )
java? ( virtual/jdk )
ruby? ( virtual/ruby )
guile? ( >=dev-util/guile-1.4 )
tcltk? (
dev-lang/tcl
X? ( dev-lang/tk )
)
perl? ( >=dev-lang/perl-5.6.1 )
php? ( >=dev-php/php-4.0.0 )"
S=${WORKDIR}/SWIG-${PV}
src_unpack() {
unpack ${A}
cd ${S}
sed -i -e 's:-name jni_md.h -print:-xtype f -name jni_md.h -print:g' configure
}
src_compile() {
strip-flags
local myconf
if use ruby ; then
local rubyver="`ruby --version | cut -d '.' -f 1,2`"
export RUBY="/usr/lib/ruby/${rubyver/ruby /}/"
fi
econf \
`use_with python py` \
`use_with java java "${JAVA_HOME}"` \
`use_with java javaincl "${JAVA_HOME}/include"` \
`use_with ruby ruby /usr/bin/ruby` \
`use_with guile` \
`use_with tcltk tcl` \
`use_with perl perl5 /usr/bin/perl` \
`use_with php php4` \
|| die
# fix the broken configure script
use tcltk || sed -i -e "s:am__append_1 =:#am__append_1 =:" Runtime/Makefile
`has_version dev-lisp/plt` && PLT=/usr/share/plt/collects
`has_version dev-lisp/mzscheme` && PLT=/usr/share/mzscheme/collects
emake || die
}
src_install() {
make install DESTDIR=${D} || die
dodoc ANNOUNCE CHANGES FUTURE NEW README TODO
}
|