# $Id$ PNAME="swig" PVER="3.0.8" PBUILD="r1" PCAT="dev-lang" DESCRIPTION="Simplified Wrapper and Interface Generator." HOMEPAGE="http://www.swig.org/" DEPEND=">= dev-lang/python-2.7 >= dev-lang/perl-5.20.1 >= dev-libs/libpcre-8.36 >= sys-libs/libstdc++-5.3" SDEPEND=">= virtual/sed" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild msetfeature "!check" SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME} gz" # note1: build only with python, java, perl, ruby, tcl support # left out: guile, lua, mono, ocaml, php, pike src_compile() { cd ${SRCDIR} # swig doesn't like any CFLAGS unset CXXFLAGS unset CFLAGS mconfigure \ --with-python \ --without-java \ --without-ruby \ --with-perl5=/usr/bin/perl \ --without-tcl \ --without-guile \ --without-php4 \ --without-ocaml \ --without-pike \ --without-csharp \ --without-lua \ || die # we don't have lisp-plt PLT="" mmake || die }