# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger # /space/gentoo/cvsroot/gentoo-x86/dev-lang/swig/swig-1.3_alpha5-r2.ebuild,v 1.3 2001/11/10 11:31:53 hallski Exp S=${WORKDIR}/${PN/swig/SWIG}-${PV} DESCRIPTION="Simplified wrapper and interface generator" SRC_URI="http://telia.dl.sourceforge.net/swig/${P}.tar.gz" HOMEPAGE="http://www.swig.org" DEPEND="virtual/glibc X? ( virtual/x11 ) python? ( >=dev-lang/python-2.0 ) java? ( virtual/jdk-1.3 ) ruby? ( >=dev-lang/ruby-1.6.1 ) guile? ( >=dev-util/guile-1.4 ) tcltk? ( >=dev-lang/tcl-tk-8.3 ) perl? ( >=sys-devel/perl-5.6.1 )" #php? ( >=dev-lang/php-4.0 )" #need to add php as a USE variable #tcltk? ( >=dev-lang/tcl-8.3 ) if my tcl tk ebuild fixes are commited #mzc? ( dev-lang/mzscheme ) in case any one makes a mzscheme ebuild src_compile() { #No MzScheme ebuild yet local myconf="--without-mzc" use X || myconf="$myconf --without-x" use python || myconf="$myconf --without-python" #default enabled use java || myconf="$myconf --without-java" #default enabled use ruby || myconf="$myconf --without-ruby" #default enabled use guile || myconf="$myconf --without-guile" #default enabled use tcltk || myconf="$myconf --without-tcl" #default enabled use perl || myconf="$myconf --without-perl" #default enabled # use php || myconf="$myconf --without-php4" #default enabled #No php USE variable (yet), configure will search for it and enable #support if it finds it installed. #In case, anyone ever make a MzScheme ebuild, uncomment the next line # use mzc || myconf="$myconf --without-mzc" #default enabled #I don't understand why these were unset in swig-1.3_alpha5-r2.ebuild #will leave commented below in case problems pop up. # unset CXXFLAGS # unset CFLAGS #There are no man or info files ./configure --prefix=/usr \ --host=${CHOST} \ $myconf || die "Configuration failed" emake || die "Parallel make failed" } src_install () { make prefix=${D}/usr install || die "Install failed" dodoc ANNOUNCE CHANGES INSTALL LICENSE NEW README TODO VERSION insinto /usr/share/doc/${P}/html/Manual doins Doc/Manual/* insinto /usr/share/doc/${P}/html/Devel doins Doc/Devel/* }