blob: b7aaef2aec03f3838d46bd3a7186197b5928fe12 (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/swig-1.3_alpha5-r2.ebuild,v 1.2 2001/07/10 03:17:07 achim Exp $
P=swig1.3a5
A=${P}.tar.gz
S=${WORKDIR}/SWIG1.3a5
DESCRIPTION="Simplified wrapper and interface generator"
SRC_URI="http://download.sourceforge.net/swig/${A}"
HOMEPAGE="http://www.swig.org"
DEPEND="virtual/glibc >=sys-devel/gcc-2.95.2
python? ( >=dev-lang/python-2.0 )
java? ( >=dev-lang/jdk-1.3 )
ruby? ( >=dev-lang/ruby-1.6.1 )
guile? ( >=dev-util/guile-1.4 )
tcltk? ( >=dev-lang/tcl-tk-8.4.2 )
perl? ( >=sys-devel/perl-5.6.1 )"
src_compile() {
local myconf
if [ "`use python`" ] ; then
myconf="--with-py"
else
myconf="--without-py"
fi
if [ "`use java`" ] ; then
myconf="$myconf --with-java"
else
myconf="$myconf --without-java"
fi
if [ -z "`use ruby`" ] ; then
myconf="$myconf --without-ruby"
fi
if [ "`use guile`" ] ; then
myconf="$myconf --with-guile"
else
myconf="$myconf --without-guile"
fi
if [ "`use tcltk`" ] ; then
myconf="$myconf --with-tcl --with-tcllib=/usr/lib/tcl-8.4"
else
myconf="$myconf --without-tcltk"
fi
if [ "`use perl`" ]
then
myconf="$myconf --with-perl"
else
myconf="$myconf --without-perl"
fi
unset CXXFLAGS
unset CFLAGS
try ./configure --prefix=/usr --host=${CHOST} \
--with-doc=html $myconf
try make
}
src_install () {
try make prefix=${D}/usr install
}
|