gmp: split C++ into gmpxx subpkg; less deps in base.

This commit is contained in:
Juan RP 2014-12-29 18:21:49 +01:00
parent d1a8c10bc2
commit 9b692ff5ef
3 changed files with 20 additions and 13 deletions

View file

@ -57,7 +57,7 @@ libgij.so.15 libgcj-4.9.0_1
libperl.so perl-5.20.1_1
libmp.so.3 gmp-5.0.1_1
libgmp.so.10 gmp-5.0.1_1
libgmpxx.so.4 gmp-5.0.1_1
libgmpxx.so.4 gmpxx-6.0.0_2
libmpfr.so.4 mpfr-3.0.0_1
libppl.so.13 ppl-1.1_1
libppl_c.so.4 ppl-0.11_1

View file

@ -1,13 +1,11 @@
# Template build file for 'gmp'
pkgname=gmp
version=6.0.0
revision=1
revision=2
bootstrap=yes
build_style=gnu-configure
configure_args="--enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
cnfigure_args+=" ABI=32"
fi
configure_args="--enable-cxx"
hostmakedepends="m4 libtool"
makedepends="zlib-devel"
short_desc="Library for arbitrary precision arithmetic"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -16,15 +14,23 @@ homepage="http://gmplib.org/"
distfiles="http://mirror.anl.gov/pub/gnu/gmp/gmp-${version}a.tar.xz"
checksum=9156d32edac6955bc53b0218f5f3763facb890b73a835d5e1b901dcf8eb8b764
if [ "$CROSS_BUILD" ]; then
hostmakedepends="m4 libtool"
pre_configure() {
libtoolize -f
}
fi
case "$XBPS_TARGET_MACHINE" in
i686*) cnfigure_args+=" ABI=32";;
esac
pre_configure() {
libtoolize -f
}
gmpxx_package() {
short_desc+=" - C++ support"
replaces="gmp<6.0.0_2"
pkg_install() {
vmove usr/lib/libgmpxx.so.*
}
}
gmp-devel_package() {
depends="gmp>=${version}_${revision}"
depends="gmpxx>=${version}_${revision} gmp>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include

1
srcpkgs/gmpxx Symbolic link
View file

@ -0,0 +1 @@
gmp