wok-next view gmp/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | c78b38baa3f0 |
children | 90a5eb560fd6 |
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="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://gmplib.org/"
10 HOST_ARCH="i486 arm"
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="gmp gmp-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --enable-cxx \
23 --disable-static \
24 --docdir=/usr/share/doc/gmp-$VERSION \
25 $CONFIGURE_ARGS &&
26 # -j > 1 make install fails.
27 make && make html && make install && make install-html
28 }
30 testsuite()
31 {
32 checklog=$(mktemp)
33 make check 2>&1 | tee $checklog
34 pass=$(awk '/# PASS:/{total+=$3} ; END{print total}' $checklog)
35 echo "$pass / 190 tests passed"
36 rm $checklog
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 gmp) copy @std;;
44 *-dev) copy @dev;;
45 esac
46 }