# $Id$ PNAME="libtommath" PVER="1.1.0" PBUILD="r1" PCAT="dev-libs" DESCRIPTION="Highly optimized and portable routines for integer based number theoretic applications." HOMEPAGE="http://www.libtom.net/" DEPEND=">= virtual/glibc" SRCFILE="ltm-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" msetfeature "!check" sminclude mbuild alx-split SRC_URI=( #http://www.libtom.net/files/${SRCFILE} https://github.com/libtom/${PNAME}/releases/download/v${PVER}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) #UP2DATE="updatecmd ${HOMEPAGE} | grep -i ${PNAME}.*\(.*\) | sed 's:.*(\(.*\)).*:\1:;/^$/d'" UP2SEPERATOR="v" UP2EXCLUDE="RC" UP2DATE="updatecmd https://github.com/libtom/${PNAME}/releases | highesttarball gz" src_compile() { cd ${SRCDIR} mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH="/usr/$(mlibdir)" || die } alx_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 }