# $Id$ PNAME="libtommath" PVER="0.42.0" PBUILD="r1" PCATEGORIE="dev-libs" DESCRIPTION="Highly optimized and portable routines for integer based number theoretic applications." HOMEPAGE="http://www.libtom.org/" DEPEND="" SRCFILE="ltm-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mcore-split SRC_URI=( #http://www.libtom.org/files/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-build-fixes.patch ) UP2DATE="updatecmd ${HOMEPAGE} | grep -i ${PNAME}.*\(.*\) | sed 's:.*(\(.*\)).*:\1:;/^$/d'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # apply some build fixes mpatch ${PNAME}-${PVER}-build-fixes.patch || die } src_compile() { cd ${SRCDIR} mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH="/usr/$(mlibdir)" || die } mcore_generic_src_install() { cd ${SRCDIR} mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH="/usr/$(mlibdir)" install || die minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die }