diff options
author | Matthias Maier <tamiko@kyomu.43-1.org> | 2014-03-02 12:55:44 +0100 |
---|---|---|
committer | Matthias Maier <tamiko@kyomu.43-1.org> | 2014-03-02 17:34:09 +0100 |
commit | 6eba82e86da2b800a7ce584a0d2ba104f98dffaf (patch) | |
tree | a30fcf54641a0262bca62ff814e1cb9ca39952c4 /sci-libs/libsc | |
parent | sci-chemistry/freeon: Removing old versions. (diff) | |
download | sci-6eba82e86da2b800a7ce584a0d2ba104f98dffaf.tar.gz sci-6eba82e86da2b800a7ce584a0d2ba104f98dffaf.tar.bz2 sci-6eba82e86da2b800a7ce584a0d2ba104f98dffaf.zip |
Debundle libsc from p4est package; introduce a new package libsc
This reflects current upstream development in debundling libsc from p4est.
Diffstat (limited to 'sci-libs/libsc')
-rw-r--r-- | sci-libs/libsc/ChangeLog | 9 | ||||
-rw-r--r-- | sci-libs/libsc/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/libsc/libsc-0.7.3.ebuild | 79 | ||||
-rw-r--r-- | sci-libs/libsc/metadata.xml | 15 |
4 files changed, 104 insertions, 0 deletions
diff --git a/sci-libs/libsc/ChangeLog b/sci-libs/libsc/ChangeLog new file mode 100644 index 000000000..0ad5af654 --- /dev/null +++ b/sci-libs/libsc/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-libs/libsc +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*libsc-0.7.3 (02 Mar 2014) + + 02 Mar 2014; Matthias Maier <tamiko+GENTOO@kyomu.43-1.org> + +libsc-0.7.3.ebuild, +metadata.xml: + Initial import. diff --git a/sci-libs/libsc/Manifest b/sci-libs/libsc/Manifest new file mode 100644 index 000000000..b98578e2d --- /dev/null +++ b/sci-libs/libsc/Manifest @@ -0,0 +1 @@ +DIST libsc-0.7.3.tar.gz 683970 SHA256 e54e52dadda8d0ceda4205962e5b7f262f0bd30d2eadc8f63e04ec1bec95715c SHA512 66c4024dbe8b5d87d2559731ef7a4548f18626b8f7533aad86b09ea19c6516107f29aba29c1d236bbf6d982ea624340755dbe4f2ff8a2d88b25c8f0514c8cc53 WHIRLPOOL 6fe56373329cffadfffb5dc1d67b487db1a041fa6950a61555c2dfdc1571718259ea4106ecc0ee81f62e517bf65add55b17a93fa4da60cd4e019f790b25f6ef7 diff --git a/sci-libs/libsc/libsc-0.7.3.ebuild b/sci-libs/libsc/libsc-0.7.3.ebuild new file mode 100644 index 000000000..63c44da11 --- /dev/null +++ b/sci-libs/libsc/libsc-0.7.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +WANT_AUTOMAKE=1.11 + +inherit autotools-utils toolchain-funcs eutils multilib + +DESCRIPTION="The SC Library provides support for parallel scientific applications." +HOMEPAGE="http://www.p4est.org/" +SRC_URI="https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +LICENSE="LGPL-2.1+" +SLOT="0" + +IUSE="debug examples mpi romio static-libs" +REQUIRED_USE="romio? ( mpi )" + +RDEPEND=" + !<sci-libs/p4est-0.3.5 + dev-lang/lua + sys-apps/util-linux + virtual/blas + virtual/lapack + mpi? ( virtual/mpi[romio?] )" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig" + +DOCS=(AUTHORS NEWS README) + +AUTOTOOLS_AUTORECONF=true + +src_prepare() { + # Use libtool's -release option so that we end up with a valid SONAME + # and library version symlinks: + sed -i \ + "s/^\(src_libsc_la_CPPFLAGS.*\)\$/\1\nsrc_libsc_la_LDFLAGS = -release ${PV}/" \ + "${S}"/src/Makefile.am || die "sed failed" + + # Inject a version number into the build system + echo "${PV}" > ${S}/.tarball-version + + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable debug) + $(use_enable mpi) + $(use_enable romio mpiio) + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + if use examples + then + docinto examples + dodoc -r example/* + docompress -x /usr/share/doc/${PF}/examples + else + # Remove the compiled example binaries in case of -examples: + rm -r "${ED}"/usr/bin || die "rm failed" + fi + + # Fix up some wrong installation paths: + dodir /usr/share/libsc + mv "${ED}"/etc/* "${ED}"/usr/share/libsc + rmdir "${ED}"/etc/ +} diff --git a/sci-libs/libsc/metadata.xml b/sci-libs/libsc/metadata.xml new file mode 100644 index 000000000..850a922d1 --- /dev/null +++ b/sci-libs/libsc/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <email>tamiko+GENTOO@kyomu.43-1.org</email> + <name>Matthias Maier</name> +</maintainer> +<longdescription lang="en"> + The SC Library provides support for parallel scientific applications. + This support library is primarily used by the p4est library. +</longdescription> +<use> +</use> +</pkgmetadata> |