wok-next annotate gmp/receipt @ rev 20186

Restore gmp, fix gpm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 02 18:48:36 2017 +0100 (2017-11-02)
parents c78b38baa3f0
children 90a5eb560fd6
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/"
pankso@16257 10 HOST_ARCH="i486 arm"
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
pankso@520 18 # Rules to configure and make the package.
pankso@520 19 compile_rules()
pankso@16257 20 {
pankso@16027 21 ./configure \
pankso@16257 22 --enable-cxx \
al@19570 23 --disable-static \
al@19570 24 --docdir=/usr/share/doc/gmp-$VERSION \
pankso@16257 25 $CONFIGURE_ARGS &&
gokhlayeh@8190 26 # -j > 1 make install fails.
al@19570 27 make && make html && make install && make install-html
pankso@520 28 }
pankso@520 29
al@19570 30 testsuite()
al@19570 31 {
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@19743 39 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19743 40 genpkg_rules()
al@19743 41 {
al@19743 42 case $PACKAGE in
al@19743 43 gmp) copy @std;;
al@19743 44 *-dev) copy @dev;;
al@19743 45 esac
al@19743 46 }