wok-next annotate gmp/receipt @ rev 20526
Up mtpaint (3.49.13)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 23 17:51:29 2018 +0200 (2018-03-23) |
parents | 12ed7c1691a4 |
children | a5d7827e08cf |
rev | line source |
---|---|
al@19743 | 1 # SliTaz package receipt v2. |
pankso@520 | 2 |
pankso@520 | 3 PACKAGE="gmp" |
al@19743 | 4 VERSION="6.1.2" |
al@19743 | 5 CATEGORY="libdevel" |
al@19743 | 6 SHORT_DESC="GNU Multiple Precision Arithmetic Library" |
pankso@520 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL3" |
al@19570 | 9 WEB_SITE="https://gmplib.org/" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html" |
pankso@520 | 11 |
al@19570 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19570 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
al@19570 | 14 |
al@19570 | 15 BUILD_DEPENDS="binutils m4 ncurses-dev readline-dev texinfo" |
pascal@20186 | 16 SPLIT="gmp gmp-dev" |
slaxemulator@10575 | 17 |
al@20436 | 18 compile_rules() { |
al@20436 | 19 # Create generic libraries |
al@20436 | 20 cp -v configfsf.guess config.guess |
al@20436 | 21 cp -v configfsf.sub config.sub |
al@20436 | 22 |
pankso@16027 | 23 ./configure \ |
pankso@16257 | 24 --enable-cxx \ |
al@19570 | 25 --disable-static \ |
pankso@16257 | 26 $CONFIGURE_ARGS && |
gokhlayeh@8190 | 27 # -j > 1 make install fails. |
al@19570 | 28 make && make html && make install && make install-html |
pankso@520 | 29 } |
pankso@520 | 30 |
al@20436 | 31 testsuite() { |
al@19570 | 32 checklog=$(mktemp) |
al@19570 | 33 make check 2>&1 | tee $checklog |
al@19570 | 34 pass=$(awk '/# PASS:/{total+=$3} ; END{print total}' $checklog) |
al@19570 | 35 echo "$pass / 190 tests passed" |
al@19570 | 36 rm $checklog |
al@19570 | 37 } |
al@19743 | 38 |
al@20436 | 39 genpkg_rules() { |
al@19743 | 40 case $PACKAGE in |
al@20436 | 41 gmp) |
al@20436 | 42 copy @std |
al@20436 | 43 TAGS="LFS" |
al@20436 | 44 ;; |
al@19743 | 45 *-dev) copy @dev;; |
al@19743 | 46 esac |
al@19743 | 47 } |