wok-next view 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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gmp"
4 VERSION="6.1.2"
5 CATEGORY="libdevel"
6 SHORT_DESC="GNU Multiple Precision Arithmetic Library"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://gmplib.org/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="binutils m4 ncurses-dev readline-dev texinfo"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 # Create generic libraries
20 cp -v configfsf.guess config.guess
21 cp -v configfsf.sub config.sub
23 ./configure \
24 --enable-cxx \
25 --disable-static \
26 $CONFIGURE_ARGS &&
27 fix libtool &&
28 # -j > 1 make install fails.
29 make &&
30 make html &&
31 make install &&
32 make install-html
33 }
35 testsuite() {
36 checklog=$(mktemp)
37 make check 2>&1 | tee $checklog
38 pass=$(awk '/# PASS:/{total+=$3}; END{print total}' $checklog)
39 echo "$pass / 190 tests passed"
40 rm $checklog
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 gmp)
46 copy @std
47 TAGS="LFS"
48 ;;
49 *-dev) copy @dev;;
50 esac
51 }