From c8163148da22d4c5813df1ef5572d76648e2111d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 20 Feb 2009 06:26:27 +0100 Subject: [PATCH] gmp, mpfr: converted to subpkgs. --HG-- extra : convert_revision : 8ce5b84c7d3adf91880e38466ba360bd028a464b --- templates/gmp/dev.template | 17 +++++++++++++++++ templates/gmp/libs.template | 17 +++++++++++++++++ templates/gmp/template | 3 ++- templates/mpfr/dev.template | 17 +++++++++++++++++ templates/mpfr/libs.template | 17 +++++++++++++++++ templates/mpfr/template | 3 ++- 6 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 templates/gmp/dev.template create mode 100644 templates/gmp/libs.template create mode 100644 templates/mpfr/dev.template create mode 100644 templates/mpfr/libs.template diff --git a/templates/gmp/dev.template b/templates/gmp/dev.template new file mode 100644 index 00000000000..d5e6152ac1f --- /dev/null +++ b/templates/gmp/dev.template @@ -0,0 +1,17 @@ +# Template file for 'gmp-dev'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." +run_depends="gmp-libs-4.2.4" + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + + mkdir -p ${destdir}/usr/lib + mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/include ${destdir}/usr + mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libgmp.*a \ + ${destdir}/usr/lib +} diff --git a/templates/gmp/libs.template b/templates/gmp/libs.template new file mode 100644 index 00000000000..07b02883067 --- /dev/null +++ b/templates/gmp/libs.template @@ -0,0 +1,17 @@ +# Template file for 'gmp-libs'. +# +short_desc="${short_desc} (libraries)" +long_desc="${long_desc} + + This package contains only the ${sourcepkg} shared libraries." +run_depends="glibc-2.8" + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + + # Move the shared lib. + mkdir -p ${destdir}/usr/lib + mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libgmp.so* \ + ${destdir}/usr/lib +} diff --git a/templates/gmp/template b/templates/gmp/template index 65e60960158..415ae0ce0ff 100644 --- a/templates/gmp/template +++ b/templates/gmp/template @@ -1,5 +1,6 @@ # Template build file for 'gmp' pkgname=gmp +sourcepkg=gmp version=4.2.4 distfiles="ftp://ftp.gmplib.org/pub/$pkgname-$version.tar.bz2" build_style=gnu_configure @@ -23,7 +24,7 @@ long_desc=" operations, since GNU MP in many cases has asymptotically faster algorithms." base_chroot=yes -run_depends="glibc-2.8" +subpackages="dev libs" pre_configure() { diff --git a/templates/mpfr/dev.template b/templates/mpfr/dev.template new file mode 100644 index 00000000000..8e1d89b5570 --- /dev/null +++ b/templates/mpfr/dev.template @@ -0,0 +1,17 @@ +# Template file for 'mpfr-dev'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." +run_depends="mpfr-libs-4.2.4" + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + + mkdir -p ${destdir}/usr/lib + mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/include ${destdir}/usr + mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libmpfr.*a \ + ${destdir}/usr/lib +} diff --git a/templates/mpfr/libs.template b/templates/mpfr/libs.template new file mode 100644 index 00000000000..3fb3734bbd1 --- /dev/null +++ b/templates/mpfr/libs.template @@ -0,0 +1,17 @@ +# Template file for 'mpfr-libs'. +# +short_desc="${short_desc} (libraries)" +long_desc="${long_desc} + + This package contains only the ${sourcepkg} shared libraries." +run_depends="glibc-2.8 gmp-libs-4.2.4" + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + + # Move the shared lib. + mkdir -p ${destdir}/usr/lib + mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libmpfr.so* \ + ${destdir}/usr/lib +} diff --git a/templates/mpfr/template b/templates/mpfr/template index 3ac16e627c3..2c4c9d6576c 100644 --- a/templates/mpfr/template +++ b/templates/mpfr/template @@ -1,5 +1,6 @@ # Template build file for 'mpfr' pkgname=mpfr +sourcepkg=mpfr version=2.4.0 distfiles="http://www.mpfr.org/mpfr-current/$pkgname-$version.tar.bz2" build_style=gnu_configure @@ -17,4 +18,4 @@ long_desc=" base_chroot=yes build_depends="gmp-4.2.4" -run_depends="glibc-2.8 gmp-4.2.4" +subpackages="dev libs"