diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-10-27 14:59:18 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-10-27 14:59:18 +0000 |
commit | d078f0d82aa02ab52b91ea4f70a278a5d5dc3a7e (patch) | |
tree | 128916e5ab1ccf97c66775e8930a644159280e9b /sci-libs | |
parent | Stable for HPPA (bug #244594). (diff) | |
download | gentoo-2-d078f0d82aa02ab52b91ea4f70a278a5d5dc3a7e.tar.gz gentoo-2-d078f0d82aa02ab52b91ea4f70a278a5d5dc3a7e.tar.bz2 gentoo-2-d078f0d82aa02ab52b91ea4f70a278a5d5dc3a7e.zip |
Initial import
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/taucs/ChangeLog | 10 | ||||
-rw-r--r-- | sci-libs/taucs/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/taucs/metadata.xml | 31 | ||||
-rw-r--r-- | sci-libs/taucs/taucs-2.2.ebuild | 87 |
4 files changed, 132 insertions, 0 deletions
diff --git a/sci-libs/taucs/ChangeLog b/sci-libs/taucs/ChangeLog new file mode 100644 index 000000000000..1aceba8d2b91 --- /dev/null +++ b/sci-libs/taucs/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-libs/taucs +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/taucs/ChangeLog,v 1.1 2008/10/27 14:59:18 bicatali Exp $ + +*taucs-2.2 (27 Oct 2008) + + 27 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml, + +taucs-2.2.ebuild: + Initial import + diff --git a/sci-libs/taucs/Manifest b/sci-libs/taucs/Manifest new file mode 100644 index 000000000000..34b15f80122c --- /dev/null +++ b/sci-libs/taucs/Manifest @@ -0,0 +1,4 @@ +DIST taucs-2.2.tgz 1573863 RMD160 e7621bc65af42432e708318e93bce8958bf3a482 SHA1 9f86bd091d42cad308b5137914fb7aa564bd0aae SHA256 fc13dae767db5e9035b1ce63036a16d3a260aad784f461e073f1150a078a77e4 +EBUILD taucs-2.2.ebuild 2267 RMD160 fb895aa52a5c08192e07c015b22030d02b6f17cd SHA1 096273ad21ca31e22df33563be8240ff06c3886d SHA256 6e2d25c6a4ac859748ca53b41d21da242b0c69e099f9aa7f71a09e80389042f1 +MISC ChangeLog 250 RMD160 b42b5d166e2d557ebc326f7c13011c5518a0a38f SHA1 2d8c21da96153afc39c1cf7c8af989a46813fb56 SHA256 3208ca273d636594db68a2b20911a9eacf1b2c571500a68f063aa3374d0437da +MISC metadata.xml 1192 RMD160 a09b4862a992a6afbb8849b486abab65f8a7f601 SHA1 ce6d41e929a336bab3913879a2f72c42b8c2a481 SHA256 ef6ccec56e93e5ab3450fe7202219b2ee382e9169569715f35dc46d0888bf006 diff --git a/sci-libs/taucs/metadata.xml b/sci-libs/taucs/metadata.xml new file mode 100644 index 000000000000..0af4e8a50834 --- /dev/null +++ b/sci-libs/taucs/metadata.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang="en"> + TAUCS is a C library of sparse linear solvers. + The current version of the library (1.0) includes the following + functionality: + + * Multifrontal Supernodal Cholesky Factorization. + * Left-Looking Supernodal Cholesky Factorization. + * Drop-Tolerance Incomplete-Cholesky Factorization. + * Out-of-Core, Left-Looking Supernodal Sparse Cholesky Factorization. + * Out-of-Core Sparse LU with Partial Pivoting Factor and Solve. + * Ordering Codes and Interfaces to Existing Ordering Codes. + * Multilevel-Support-Graph Preconditioners. + * Matrix Operations. + * Matrix Input/Output. + * Matrix Generators. + * Iterative Solvers. + * Vaidya's Preconditioners. + * Recursive Vaidya's Preconditioners. + * Multilevel-Support-Graph Preconditioners. + * Utility Routines +</longdescription> +<use> + <flag name='metis'>Add partioning support using metis + (<pkg>sci-libs/metis</pkg>, <pkg>sci-libs/parmetis</pkg>)</flag> + <flag name='cilk'>Enable multithreading using <pkg>dev-lang/cilk</pkg>)</flag> +</use> +</pkgmetadata> diff --git a/sci-libs/taucs/taucs-2.2.ebuild b/sci-libs/taucs/taucs-2.2.ebuild new file mode 100644 index 000000000000..082c8fcf697b --- /dev/null +++ b/sci-libs/taucs/taucs-2.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/taucs/taucs-2.2.ebuild,v 1.1 2008/10/27 14:59:18 bicatali Exp $ + +EAPI=2 +inherit eutils fortran toolchain-funcs flag-o-matic + +DESCRIPTION="C library of sparse linear solvers" +HOMEPAGE="http://www.tau.ac.il/~stoledo/taucs/" +SRC_URI="http://www.tau.ac.il/~stoledo/${PN}/${PV}/${PN}.tgz -> ${P}.tgz" + +KEYWORDS="~amd64 ~x86" +LICENSE="LGPL-2.1" + +IUSE="cilk doc +metis" +SLOT="0" + +RDEPEND="virtual/blas + virtual/lapack + metis? ( || ( sci-libs/metis sci-libs/parmetis ) ) + cilk? ( dev-lang/cilk )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S="${WORKDIR}" +FORTRAN="gfortran ifc g77" + +src_configure() { + cat > config/linux_shared.mk <<-EOF + CFLAGS=${CFLAGS} -fPIC + FC=${FORTRANC} + FFLAGS=${FFLAGS} -fPIC + LDFLAGS=${LDFLAGS} -fPIC + LIBBLAS=$(pkg-config --libs blas) + LIBLAPACK=$(pkg-config --libs lapack) + LIBF77= + EOF + use metis && echo "LIBMETIS=$(pkg-config --libs metis)" \ + >> config/linux_shared.mk + # no cat <<EOF because -o has a trailing space + if use cilk; then + echo "CILKC=cilkc" >> config/linux_shared.mk + echo "CILKFLAGS=-O2 -I/usr/include/cilk -fPIC" >> config/linux_shared.mk + echo "CILKOUTFLG=-o " >> config/linux_shared.mk + fi + sed -e 's/ -fPIC//g' \ + config/linux_shared.mk \ + > config/linux_static.mk || die +} + +src_compile() { + # not autotools configure + ./configure variant=_static || die + emake || die + ./configure variant=_shared || die + emake || die + + cd lib/linux_shared + $(tc-getAR) x libtaucs.a + $(tc-getLD) $(raw-ldflags) *.o \ + -shared \ + -soname libtaucs.so.1 \ + -o libtaucs.so.1.0.0 \ + $(pkg-config --libs blas lapack metis) \ + || die "shared lib linking failed" +} + +src_test() { + ./testscript variant=_static || die "compile test failed" + if grep -q FAILED testscript.log; then + eerror "Test failed. See ${S}/testscript.log" + die "test failed" + fi +} + +src_install() { + dolib.a lib/linux_static/libtaucs.a || die "static lib install failed" + dolib.so lib/linux_shared/libtaucs.so.1.0.0 || die "shared lib install failed" + dosym libtaucs.so.1.0.0 /usr/$(get_libdir)/libtaucs.so.1 + dosym libtaucs.so.1 /usr/$(get_libdir)/libtaucs.so + + insinto /usr/include + doins build/*/*.h src/*.h || die "headers install failed" + + insinto /usr/share/doc/${PF} + use doc && doins doc/*.pdf +} |