wok-next annotate gmp/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a5d7827e08cf |
children | e19ff076dc63 |
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" |
al@21020 | 7 MAINTAINER="devel@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" |
al@21020 | 16 SPLIT="$PACKAGE-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 && |
al@20570 | 27 fix libtool && |
gokhlayeh@8190 | 28 # -j > 1 make install fails. |
al@21020 | 29 make && |
al@21020 | 30 make html && |
al@21020 | 31 make install && |
al@21020 | 32 make install-html |
pankso@520 | 33 } |
pankso@520 | 34 |
al@20436 | 35 testsuite() { |
al@19570 | 36 checklog=$(mktemp) |
al@19570 | 37 make check 2>&1 | tee $checklog |
al@21020 | 38 pass=$(awk '/# PASS:/{total+=$3}; END{print total}' $checklog) |
al@19570 | 39 echo "$pass / 190 tests passed" |
al@19570 | 40 rm $checklog |
al@19570 | 41 } |
al@19743 | 42 |
al@20436 | 43 genpkg_rules() { |
al@19743 | 44 case $PACKAGE in |
al@20436 | 45 gmp) |
al@20436 | 46 copy @std |
al@20436 | 47 TAGS="LFS" |
al@20436 | 48 ;; |
al@19743 | 49 *-dev) copy @dev;; |
al@19743 | 50 esac |
al@19743 | 51 } |