# $Id$
PNAME="isl"
PVER="0.12.2"
PBUILD="r2"
PCAT="dev-libs"
DESCRIPTION="Library for manipulating sets and relations of integer points bounded by linear constraints."
HOMEPAGE="http://freecode.com/projects/isl/"
DEPEND=">= dev-libs/gmp-6.0"
SRCFILE="${PNAME}-${PVER}.tar.bz2"
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
sminclude multilib
SRC_URI=(
http://isl.gforge.inria.fr/${SRCFILE}
mirror://${PNAME}/${SRCFILE}
)
UP2DATE="updatecmd http://freecode.com/projects/isl/releases.atom | grep '
${PNAME}' | sed 's:.*${PNAME}\ \(.*\)<.*:\1:;q'"
src_install()
{
mmake DESTDIR=${BINDIR} install || die
# move gdb scripts to a proper location and to pretty-print ldconfig
minstalldir /usr/share/gdb/auto-load/usr/$(mlibdir) || die
mv -v ${BINDIR}/usr/$(mlibdir)/libisl*gdb.py* ${BINDIR}/usr/share/gdb/auto-load/usr/$(mlibdir)/ || die
# multilib as well
if [[ $(mlibdir) != lib ]] && [[ -d ${BINDIR}/usr/lib ]]
then
minstalldir /usr/share/gdb/auto-load/usr/lib || die
mv -v ${BINDIR}/usr/lib/libisl*gdb.py* ${BINDIR}/usr/share/gdb/auto-load/usr/lib/ || die
fi
minstalldocs AUTHORS ChangeLog LICENSE README || die
}