/[gentoo-alt]/trunk/prefix/dev-lang/swig/swig-1.3.27.ebuild
Gentoo

Contents of /trunk/prefix/dev-lang/swig/swig-1.3.27.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1166 - (show annotations) (download)
Sat Mar 25 22:08:50 2006 UTC (13 years, 2 months ago) by kito
File size: 1713 byte(s)
PREFIX->EPREFIX DEST->EDEST
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/swig-1.3.27.ebuild,v 1.3 2005/10/22 20:50:18 vapier Exp $
4
5 EAPI="prefix"
6
7 inherit flag-o-matic mono eutils #48511
8
9 DESCRIPTION="Simplified Wrapper and Interface Generator"
10 HOMEPAGE="http://www.swig.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="as-is"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~x86"
16 IUSE="doc guile java lua mono perl php pike python ruby tcltk X"
17 RESTRICT="test"
18
19 DEPEND="lua? ( dev-lang/lua )
20 guile? ( >=dev-util/guile-1.4 )
21 java? ( virtual/jdk )
22 mono? ( dev-lang/mono )
23 perl? ( >=dev-lang/perl-5.6.1 )
24 php? ( virtual/php )
25 pike? ( dev-lang/pike )
26 python? ( virtual/python )
27 ocaml? ( dev-lang/ocaml )
28 ruby? ( virtual/ruby )
29 tcltk? (
30 dev-lang/tcl
31 X? ( dev-lang/tk )
32 )"
33
34 src_compile() {
35 strip-flags
36
37 local myconf
38 if use ruby ; then
39 local rubyver=$(ruby --version | cut -d '.' -f 1,2)
40 export RUBY="${EPREFIX}/usr/$(get_libdir)/ruby/${rubyver/ruby /}/"
41 fi
42
43 econf \
44 $(use_with X x) \
45 $(use_with tcltk tcl) \
46 $(use_with python python python) \
47 $(use_with perl perl5 /usr/bin/perl) \
48 $(use_with java java "${JAVA_HOME}") \
49 $(use_with java javaincl "${JAVA_HOME}/include") \
50 $(use_with guile) \
51 $(use_with ruby ruby /usr/bin/ruby) \
52 $(use_with php php4) \
53 $(use_with ocaml) \
54 $(use_with pike) \
55 $(use_with mono csharp) \
56 $(use_with lua) \
57 || die
58
59 emake || die
60 }
61
62 src_install() {
63 make install DESTDIR="${EDEST}" || die
64 dodoc ANNOUNCE CHANGES CHANGES.current FUTURE NEW README TODO
65 use doc && dohtml -r Doc/{Devel,Manual}
66 }

  ViewVC Help
Powered by ViewVC 1.1.20