Contents of /smage/trunk/core/libtommath/libtommath-0.42.0-r7.smage2
Parent Directory | Revision Log
Revision 10247 -
(show annotations)
(download)
Thu Aug 17 08:45:46 2017 UTC (7 years, 1 month ago) by niro
File size: 995 byte(s)
Thu Aug 17 08:45:46 2017 UTC (7 years, 1 month ago) by niro
File size: 995 byte(s)
auto added: ver bump to 0.42.0-r7
1 | # $Id$ |
2 | |
3 | PNAME="libtommath" |
4 | PVER="0.42.0" |
5 | PBUILD="r7" |
6 | |
7 | PCAT="dev-libs" |
8 | |
9 | DESCRIPTION="Highly optimized and portable routines for integer based number theoretic applications." |
10 | HOMEPAGE="http://www.libtom.net/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | |
14 | SRCFILE="ltm-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude alx-split |
18 | |
19 | SRC_URI=( |
20 | http://www.libtom.net/files/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${PNAME}-${PVER}-build-fixes.patch |
23 | ) |
24 | |
25 | UP2DATE="updatecmd ${HOMEPAGE} | grep -i ${PNAME}.*\(.*\) | sed 's:.*(\(.*\)).*:\1:;/^$/d'" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # apply some build fixes |
33 | mpatch ${PNAME}-${PVER}-build-fixes.patch || die |
34 | } |
35 | |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH="/usr/$(mlibdir)" || die |
40 | } |
41 | |
42 | alx_generic_src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH="/usr/$(mlibdir)" install || die |
46 | minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die |
47 | } |