From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-libs/spqr/Manifest | 8 + sci-libs/spqr/files/spqr-1.2.3-autotools.patch | 203 +++++++++++++++++++++++++ sci-libs/spqr/metadata.xml | 20 +++ sci-libs/spqr/spqr-1.2.3-r1.ebuild | 39 +++++ sci-libs/spqr/spqr-1.3.1.ebuild | 31 ++++ 5 files changed, 301 insertions(+) create mode 100644 sci-libs/spqr/Manifest create mode 100644 sci-libs/spqr/files/spqr-1.2.3-autotools.patch create mode 100644 sci-libs/spqr/metadata.xml create mode 100644 sci-libs/spqr/spqr-1.2.3-r1.ebuild create mode 100644 sci-libs/spqr/spqr-1.3.1.ebuild (limited to 'sci-libs/spqr') diff --git a/sci-libs/spqr/Manifest b/sci-libs/spqr/Manifest new file mode 100644 index 000000000000..6f83f095b781 --- /dev/null +++ b/sci-libs/spqr/Manifest @@ -0,0 +1,8 @@ +AUX spqr-1.2.3-autotools.patch 7204 SHA256 b71dddd62375f29a4a076fc14be9deee03df5ff951878dd2751a138067d48a99 SHA512 23b07ce5bbc993dbb8c7811f04d0c8997c4293ad2ffb6fee07b4fc23d5306499bfe5a84683add88a8d7050cf0ae5ed5e9d5a3d03064ef8a049918b5f2a2d1250 WHIRLPOOL a89b0e99c0aa8a3ef8b49c860b40d49e226979f0c1cc6727ce68d7845f287b541f7aae5ada3ea32757854ce70d1e62ff07c2e788e3c0dbc05b8604d47d831771 +DIST SPQR-1.2.3.tar.gz 1090017 SHA256 43c31708d4de9fbb59c00ef8c2a2df98cdf2aa1dd16887d6f4f5090df2f63abf SHA512 1abcde88e157bc99445e3589cacd6aba875429f1cdef87e36e1d6943c1474a2f8df9a65eff99e92d72e346c02f11194b6ec6829c158f42f689f95845c9b11599 WHIRLPOOL ad1e5d8ed899a6d6101e7ff6213f78d214ae88b5783a07d41e28f622b15a345128b23e655b6ab7b2ade4f41b1614eaeee026e4f8fe5b889c69417bd96968662d +DIST spqr-1.3.1.tar.bz2 1115795 SHA256 e0872ca214b347caaea28a9e6b947c980d052e92f14b3e76a3876f4df024e620 SHA512 1c7644da2bb7a14b9bc26066b84355626ce5d7c396afe5ce496ae72a5ef54431dc817178bfe7dd69ddf586b661c44066ee0850c91dba846a32787d52607749bf WHIRLPOOL 451c53c6f9501a180f3d611d28cb001a7a7a21122a9885b5e32d11fca52d5ebe36eb5a64dc880c5904806ed0f8d52d12122d4778b2cd380f06f88f8f4a4ff466 +EBUILD spqr-1.2.3-r1.ebuild 909 SHA256 8e881ea345ea044b21ad0e728b18c4e826ea497eea51dbff5853ea334a5aa314 SHA512 752f56b943603df13cdfa90c428eb379adf004f893b1fd966193b6a650c07c0af1a8236f6d015fd451b848bddc5a9f18b408adcbd521c76f0e90792ebb585cbc WHIRLPOOL 9dbede908229a0e88afbf0517aaf5638a61d035ec096d9b856b8c30344b6b6eba8cb9f12c672054f35136fdd8a66af5d9ded94d0651104764de961902b447f76 +EBUILD spqr-1.3.1.ebuild 761 SHA256 bbe7b86dbd158d377dd989d3abd1e7052837326f51a645edfd22ce2e8b9e2984 SHA512 8807c16ef052643a607115e0fd612d65c2e97621fcd0ed4b200e4befae529051d70dd22e6f4d92b65fd32299d00ad001f05326139a64fc19c2b5fabd968e54b4 WHIRLPOOL 69680060ca2f4eb1f5674e5d0632eb560676042c6b8f5dddbf3160b8e42d4683d0eb9beea4c20a1f3079ca3dff7a26949702fceb60c3f80ac0300130ceb58859 +MISC ChangeLog 3060 SHA256 30d8bd375e6e6f339c3620bfcb68e6e5fd5ea617e7d58ab22c7f9622a58e0430 SHA512 780a074a1efcd11c5ecaa5fc6b648572bd4abed0aef86711e8cb0b1c0a59d6294d64b176fd3012e6b8f8d6bcbe207421c7a3b143c3110f4f1a3038b97e0a1763 WHIRLPOOL fef170c3157b9276eabd2d3315242b2b6876f42a7040734741d697886b13c2f8f0f1de61bf0839772f66afff7a795b395633bcef44c21a0505e00273c43d2526 +MISC ChangeLog-2015 2341 SHA256 e6b0a337cc926157bf822e0b0b9618170d7fb7be7aab012c23bf1c97f5ba8f0c SHA512 56cc3d8c0ebfbc92b7b33a9b2d09f071fb6559ebc58993539ed8ed90106309d95839279b49d2a8b5371419c5ad2042063a975b4b0e245313bc70022fa4c290b2 WHIRLPOOL 14ca83182f4a746b7b965589d3efe1331c12a375806f5587930db4e7db61a10b47345cd72404592f700b101e8bf54db153a137d10b4f4617cd9d33b95bd283bc +MISC metadata.xml 845 SHA256 b61e1406e45eb08ad23720330cd0b64deb60fd5e63c92ba1ba69048de1d5c4d3 SHA512 73bccff4ac4f1ccc72d4c5e511b4c98bdb6346ca05bf09f6b92585c51a054f27b2571bd3dccc99d6cc928b343beaf4ffb68fa44db8ecb214cd90f2dd5c78f9ef WHIRLPOOL b2765f8afeeefcc2fc2521b4c5fc8795a0f7c33803aa272ab1d4877893172ba7fd9e7df921b22d8e10f654b67678673d3a10af8cc283347fcb953ad26dc33f6a diff --git a/sci-libs/spqr/files/spqr-1.2.3-autotools.patch b/sci-libs/spqr/files/spqr-1.2.3-autotools.patch new file mode 100644 index 000000000000..be5d15f188c3 --- /dev/null +++ b/sci-libs/spqr/files/spqr-1.2.3-autotools.patch @@ -0,0 +1,203 @@ +--- Demo/Makefile.am 1969-12-31 19:00:00.000000000 -0500 ++++ Demo/Makefile.am 2009-10-22 23:42:08.000000000 -0400 +@@ -0,0 +1,78 @@ ++AM_CPPFLAGS = -I$(top_srcdir)/Include ++ ++LDADD = $(top_builddir)/Source/libspqr.la \ ++ $(CHOLMOD_LIBS) $(AMD_LIBS) $(CAMD_LIBS) \ ++ $(COLAMD_LIBS) $(CCOLAMD_LIBS) \ ++ $(METIS_LIBS) $(BLAS_LIBS) $(LAPACK_LIBS) $(TBB_LIBS) ++ ++check_PROGRAMS = \ ++ qrsimple qrsimplec \ ++ qrdemo qrdemoc ++ ++qrsimple_SOURCES = qrsimple.cpp ++qrsimplec = qrsimplec.c ++qrsimplec_CFLAGS = -ansi ++qrdemo_SOURCES = qrdemo.cpp ++qrdemoc_SOURCES = qrdemoc.c ++qrdemoc_CFLAGS = -ansi ++ ++ ++check-local: $(check_PROGRAMS) ++ ./qrsimple < $(top_srcdir)/Matrix/ash219.mtx || exit 1 ++ ./qrsimplec < $(top_srcdir)/Matrix/ash219.mtx || exit 1 ++ ./qrsimple < $(top_srcdir)/Matrix/west0067.mtx || exit 1 ++ ./qrsimplec < $(top_srcdir)/Matrix/west0067.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/a2.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/r2.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/a04.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/a2.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/west0067.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/c2.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/a0.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/lfat5b.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/bfwa62.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/LFAT5.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/b1_ss.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/bcspwr01.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/lpi_galenet.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/lpi_itest6.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/ash219.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/a4.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/s32.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/c32.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/lp_share1b.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/a1.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/GD06_theory.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/GD01_b.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/Tina_AskCal_perm.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/Tina_AskCal.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/GD98_a.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/Ragusa16.mtx || exit 1 ++ ./qrdemo < $(top_srcdir)/Matrix/young1c.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/a2.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/r2.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/a04.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/a2.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/west0067.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/c2.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/a0.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/lfat5b.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/bfwa62.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/LFAT5.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/b1_ss.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/bcspwr01.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/lpi_galenet.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/lpi_itest6.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/ash219.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/a4.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/s32.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/c32.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/lp_share1b.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/a1.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/GD06_theory.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/GD01_b.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/Tina_AskCal_perm.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/Tina_AskCal.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/GD98_a.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/Ragusa16.mtx || exit 1 ++ ./qrdemoc < $(top_srcdir)/Matrix/young1c.mtx || exit 1 +--- Include/Makefile.am 1969-12-31 19:00:00.000000000 -0500 ++++ Include/Makefile.am 2009-10-22 23:42:08.000000000 -0400 +@@ -0,0 +1,5 @@ ++include_HEADERS = \ ++ spqr.hpp \ ++ SuiteSparseQR_C.h \ ++ SuiteSparseQR_definitions.h \ ++ SuiteSparseQR.hpp +--- Makefile.am 1969-12-31 19:00:00.000000000 -0500 ++++ Makefile.am 2009-10-22 23:42:08.000000000 -0400 +@@ -0,0 +1,2 @@ ++SUBDIRS = Include Source Demo ++EXTRA_DIST = README.txt +--- Source/Makefile.am 1969-12-31 19:00:00.000000000 -0500 ++++ Source/Makefile.am 2009-10-22 23:43:03.000000000 -0400 +@@ -0,0 +1,48 @@ ++AM_CPPFLAGS=-I$(top_srcdir)/Include ++ ++lib_LTLIBRARIES = libspqr.la ++ ++libspqr_la_SOURCES = \ ++ spqr_rmap.cpp \ ++ SuiteSparseQR_C.cpp \ ++ SuiteSparseQR_expert.cpp \ ++ spqr_parallel.cpp \ ++ spqr_kernel.cpp \ ++ spqr_analyze.cpp \ ++ spqr_assemble.cpp \ ++ spqr_cpack.cpp \ ++ spqr_csize.cpp \ ++ spqr_fcsize.cpp \ ++ spqr_debug.cpp \ ++ spqr_front.cpp \ ++ spqr_factorize.cpp \ ++ spqr_freenum.cpp \ ++ spqr_freesym.cpp \ ++ spqr_freefac.cpp \ ++ spqr_fsize.cpp \ ++ spqr_maxcolnorm.cpp \ ++ spqr_rconvert.cpp \ ++ spqr_rcount.cpp \ ++ spqr_rhpack.cpp \ ++ spqr_rsolve.cpp \ ++ spqr_stranspose1.cpp \ ++ spqr_stranspose2.cpp \ ++ spqr_hpinv.cpp \ ++ spqr_1fixed.cpp \ ++ spqr_1colamd.cpp \ ++ SuiteSparseQR.cpp \ ++ spqr_1factor.cpp \ ++ spqr_cumsum.cpp \ ++ spqr_shift.cpp \ ++ spqr_happly.cpp \ ++ spqr_panel.cpp \ ++ spqr_happly_work.cpp \ ++ SuiteSparseQR_qmult.cpp \ ++ spqr_trapezoidal.cpp \ ++ spqr_larftb.cpp \ ++ spqr_append.cpp \ ++ spqr_type.cpp \ ++ spqr_tol.cpp ++ ++libspqr_la_CPPFLAGS = $(AM_CPPFLAGS) $(METIS_CFLAGS) $(TBB_CFLAGS) $(LAPACK_CFLAGS) ++libspqr_la_LIBADD = $(METIS_LIBS) $(TBB_LIBS) $(LAPACK_LIBS) +--- configure.ac 1969-12-31 19:00:00.000000000 -0500 ++++ configure.ac 2009-10-22 23:42:32.000000000 -0400 +@@ -0,0 +1,55 @@ ++AC_PREREQ(2.59) ++AC_INIT(spqr, 1.2, davis@cise.ufl.edu) ++AM_INIT_AUTOMAKE([foreign]) ++AC_CONFIG_SRCDIR([Source/spqr_kernel.cpp]) ++AM_INIT_AUTOMAKE([foreign]) ++ ++AC_PROG_LIBTOOL ++AC_PROG_CXX ++AC_LANG(C++) ++ ++AC_CHECK_LIB(m, sqrt) ++AC_CHECK_LIB(lapack,zlarft_) ++AC_CHECK_HEADERS(UFconfig.h) ++AC_CHECK_HEADERS(cholmod.h) ++AC_CHECK_LIB(cholmod, cholmod_solve, [], \ ++ [AC_MSG_ERROR([Cannot find libcholmod])]) ++ ++AC_ARG_WITH(metis, ++ [AC_HELP_STRING([--with-metis], ++ [Use METIS for partitioning])], ++ [with_metis=$withval], ++ [with_metis="yes"]) ++if test x$with_metis = xyes; then ++ PKG_PROG_PKG_CONFIG ++ if test -n "$PKG_CONFIG"; then ++ PKG_CHECK_MODULES([metis], [metis]) ++ else ++ AC_CHECK_HEADERS(metis.h) ++ AC_CHECK_LIB(metis, METIS_NodeND, [METIS_LIBS=-lmetis], \ ++ [AC_MSG_ERROR([Cannot find libmetis])]) ++ fi ++ AC_DEFINE(NPARTITION) ++fi ++AM_CONDITIONAL([METIS], [test x$with_metis = xyes]) ++ ++AC_ARG_WITH(tbb, ++ [AC_HELP_STRING([--with-tbb], ++ [Use Intel Threading Building Block for multithreading])], ++ [with_tbb=$withval], ++ [with_tbb="yes"]) ++if test x$with_tbb = xyes; then ++ AC_CHECK_HEADERS(tbb/task.h) ++ TBB_CFLAGS="" ++ TBB_LIBS="-ltbb" ++ AC_SUBST(TBB_CFLAGS) ++ AC_SUBST(TBB_LIBS) ++ AC_DEFINE(HAVE_TBB) ++fi ++AM_CONDITIONAL([WITH_TBB], [test x$with_tbb = xyes]) ++ ++AC_CONFIG_FILES([Makefile ++ Source/Makefile ++ Include/Makefile ++ Demo/Makefile]) ++AC_OUTPUT diff --git a/sci-libs/spqr/metadata.xml b/sci-libs/spqr/metadata.xml new file mode 100644 index 000000000000..c7ab54f2c476 --- /dev/null +++ b/sci-libs/spqr/metadata.xml @@ -0,0 +1,20 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + SuiteSparseQR is an implementation of the multifrontal sparse QR + factorization method. Parallelism is exploited both in the BLAS and + across different frontal matrices using Intel's Threading Building + Blocks. It can obtain a substantial fraction of the theoretical + peak performance of a multicore computer. + + + Use sci-libs/metis or sci-libs/parmetis for partitioning + Enable multithreading with the Intel Threads + Building Block dev-cpp/tbb + + diff --git a/sci-libs/spqr/spqr-1.2.3-r1.ebuild b/sci-libs/spqr/spqr-1.2.3-r1.ebuild new file mode 100644 index 000000000000..9f722944c3d0 --- /dev/null +++ b/sci-libs/spqr/spqr-1.2.3-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +AUTOTOOLS_AUTORECONF=yes +inherit autotools-utils + +MY_PN=SPQR +DESCRIPTION="Multithreaded multifrontal sparse QR factorization library" +HOMEPAGE="http://www.cise.ufl.edu/research/sparse/SPQR" +SRC_URI="http://www.cise.ufl.edu/research/sparse/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="doc metis static-libs tbb" +RDEPEND="sci-libs/cholmod[supernodal(+)] + tbb? ( dev-cpp/tbb ) + metis? ( >=sci-libs/cholmod-1.7.0-r1[metis] )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( README.txt Doc/ChangeLog ) +PATCHES=( "${FILESDIR}"/${P}-autotools.patch ) + +S="${WORKDIR}/${MY_PN}" + +src_configure() { + myeconfargs+=( + $(use_with metis) + $(use_with tbb) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + use doc && doins Doc/*.pdf +} diff --git a/sci-libs/spqr/spqr-1.3.1.ebuild b/sci-libs/spqr/spqr-1.3.1.ebuild new file mode 100644 index 000000000000..9489d6068380 --- /dev/null +++ b/sci-libs/spqr/spqr-1.3.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools-utils + +DESCRIPTION="Multithreaded multifrontal sparse QR factorization library" +HOMEPAGE="http://www.cise.ufl.edu/research/sparse/SPQR" +SRC_URI="https://dev.gentoo.org/~bicatali/distfiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc metis static-libs tbb" +RDEPEND=" + virtual/lapack + >=sci-libs/cholmod-2[metis?] + tbb? ( dev-cpp/tbb )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( virtual/latex-base )" + +src_configure() { + local myeconfargs+=( + $(use_with doc) + $(use_with metis partition) + $(use_with tbb) + ) + autotools-utils_src_configure +} -- cgit v1.2.3