summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-02-05 18:15:41 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-02-05 18:15:41 +0000
commit5504a1a4742ef96b7116f43b944ddf88fdeb792b (patch)
tree6a38d174f2b8ead54b82e9ee2d8147c3a13c182d /sci-libs/camd
parentStable for HPPA (bug #208922). (diff)
downloadhistorical-5504a1a4742ef96b7116f43b944ddf88fdeb792b.tar.gz
historical-5504a1a4742ef96b7116f43b944ddf88fdeb792b.tar.bz2
historical-5504a1a4742ef96b7116f43b944ddf88fdeb792b.zip
Initial import. Thanks to Justin Bronder for his work, see bug #173900
Package-Manager: portage-2.1.4
Diffstat (limited to 'sci-libs/camd')
-rw-r--r--sci-libs/camd/ChangeLog10
-rw-r--r--sci-libs/camd/Manifest5
-rw-r--r--sci-libs/camd/camd-2.2.0.ebuild34
-rw-r--r--sci-libs/camd/files/camd-2.2.0-autotools.patch70
-rw-r--r--sci-libs/camd/metadata.xml10
5 files changed, 129 insertions, 0 deletions
diff --git a/sci-libs/camd/ChangeLog b/sci-libs/camd/ChangeLog
new file mode 100644
index 000000000000..c0a9331704d8
--- /dev/null
+++ b/sci-libs/camd/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/camd
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/camd/ChangeLog,v 1.1 2008/02/05 18:06:35 bicatali Exp $
+
+*camd-2.2.0 (05 Feb 2008)
+
+ 05 Feb 2008; SĂ©bastien Fabbro <bicatali@gentoo.org>
+ +files/camd-2.2.0-autotools.patch, +metadata.xml, +camd-2.2.0.ebuild:
+ Initial import. Thanks to Justin Bronder for his work, see bug #173900
+
diff --git a/sci-libs/camd/Manifest b/sci-libs/camd/Manifest
new file mode 100644
index 000000000000..6176dc3ec2c8
--- /dev/null
+++ b/sci-libs/camd/Manifest
@@ -0,0 +1,5 @@
+AUX camd-2.2.0-autotools.patch 2008 RMD160 c0ed2dff5684354bce8e1e224f39d972f334025d SHA1 769b095662ad2cb2e9fe2b36331c5e609d8e4b08 SHA256 55765472aa0fea869193281cd12a8a453ce63aca89e97832b169b8d73f63951f
+DIST CAMD-2.2.0.tar.gz 227593 RMD160 ac91f020edac556d19fb23a5f88dfd0837f85b0a SHA1 02d323da119d3203714b3c1948f62c9813ba39a7 SHA256 a8a2254335e7dfbca7e19904fdf1a5e6149c41e141356d08121e6f806b209f45
+EBUILD camd-2.2.0.ebuild 829 RMD160 64f309cc9da1bb50434b1a2ac79c0df55f46a4da SHA1 f5d9ed6b24e7775ad18a87744c5ebeec512885e6 SHA256 5255533a7e30b2d9a3edc25fcab2046cf259a6566d6dc4e7c517d18e70c4c3f2
+MISC ChangeLog 342 RMD160 ff5693310b39f73c0b937ca0fb8146b18eef367e SHA1 773a83031297e09fbc59e13a16d67869b4d5afa7 SHA256 4aa8164f86ddce7cd189b2bbe0fdbb7920185517a6808766e0e8d9f4a51b6a26
+MISC metadata.xml 388 RMD160 c113858b95883d16cf651a79d3b47e77b67d049e SHA1 474d7347b0459d0bf364eeba4a9675d1482c5b88 SHA256 956c7962863742a1d11c50b38da36d666bd5f5b3054c80b5c317324f209ca22f
diff --git a/sci-libs/camd/camd-2.2.0.ebuild b/sci-libs/camd/camd-2.2.0.ebuild
new file mode 100644
index 000000000000..108e481fe862
--- /dev/null
+++ b/sci-libs/camd/camd-2.2.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/camd/camd-2.2.0.ebuild,v 1.1 2008/02/05 18:06:35 bicatali Exp $
+
+inherit autotools eutils
+
+MY_PN=CAMD
+DESCRIPTION="Library to order a sparse matrix prior to Cholesky factorization"
+HOMEPAGE="http://www.cise.ufl.edu/research/sparse/camd"
+SRC_URI="http://www.cise.ufl.edu/research/sparse/${PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+DEPEND="sci-libs/ufconfig"
+
+S="${WORKDIR}/${MY_PN}"
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-autotools.patch
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README.txt Doc/ChangeLog || die "dodoc failed"
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins Doc/CAMD_UserGuide.pdf || die "pdf install failed"
+ fi
+}
diff --git a/sci-libs/camd/files/camd-2.2.0-autotools.patch b/sci-libs/camd/files/camd-2.2.0-autotools.patch
new file mode 100644
index 000000000000..aa73d68de1b5
--- /dev/null
+++ b/sci-libs/camd/files/camd-2.2.0-autotools.patch
@@ -0,0 +1,70 @@
+--- configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ configure.ac 2008-01-31 15:35:15.579030692 +0000
+@@ -0,0 +1,12 @@
++# -*- Autoconf -*-
++AC_PREREQ(2.59)
++AC_INIT(camd, 2.2.0, davis@cise.ufl.edu)
++AM_INIT_AUTOMAKE([foreign])
++AC_PROG_INSTALL
++AC_PROG_LIBTOOL
++AC_CHECK_LIB(m, sqrt)
++AC_CHECK_HEADERS(UFconfig.h)
++AC_CONFIG_FILES([Source/Makefile
++ Demo/Makefile
++ Makefile])
++AC_OUTPUT
+--- ./Demo/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./Demo/Makefile.am 2008-01-31 15:36:57.492838429 +0000
+@@ -0,0 +1,26 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++check_PROGRAMS = \
++ camd_demo \
++ camd_l_demo \
++ camd_demo2 \
++ camd_simple
++
++LDADD = $(top_builddir)/Source/libcamd.la -lm
++
++camd_demo_SOURCES = camd_demo.c
++camd_l_demo_SOURCES = camd_l_demo.c
++camd_demo2_SOURCES = camd_demo2.c
++camd_simple_SOURCES = camd_simple.c
++
++check-local: $(check_PROGRAMS)
++ @for i in $(check_PROGRAMS); do \
++ echo "Testing $$i"; \
++ ./$$i > my_$$i.out; \
++ if ! diff $$i.out my_$$i.out; then \
++ echo "Test $$i failed!"; \
++ exit 1; \
++ fi \
++ done;
++
++clean-local:
++ rm -f my*.out
+--- ./Source/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./Source/Makefile.am 2008-01-31 15:37:17.205961816 +0000
+@@ -0,0 +1,17 @@
++CAMDCSRC = \
++ camd_aat.c camd_1.c camd_2.c camd_dump.c camd_postorder.c \
++ camd_defaults.c camd_order.c camd_control.c camd_info.c \
++ camd_valid.c camd_preprocess.c
++
++lib_LTLIBRARIES = libcamd.la
++noinst_LTLIBRARIES = libcamdi.la libcamdl.la
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++
++libcamdi_la_SOURCES = $(CAMDCSRC)
++libcamdi_la_CPPFLAGS = $(AM_CPPFLAGS) -DDINT
++libcamdl_la_SOURCES = $(CAMDCSRC)
++libcamdl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG
++
++libcamd_la_SOURCES = camd_global.c
++libcamd_la_LIBADD = libcamdl.la libcamdi.la -lm
++
+--- ./Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./Makefile.am 2008-01-31 15:34:59.202097424 +0000
+@@ -0,0 +1,3 @@
++SUBDIRS = Demo Source
++EXTRA_DIST = README.txt
++include_HEADERS = Include/camd.h Include/camd_internal.h
diff --git a/sci-libs/camd/metadata.xml b/sci-libs/camd/metadata.xml
new file mode 100644
index 000000000000..29134883ffec
--- /dev/null
+++ b/sci-libs/camd/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ CAMD is a set of routines for ordering a sparse matrix prior to
+ Cholesky factorization (or for LU factorization with diagonal
+ pivoting). There are versions in both C and Fortran.
+</longdescription>
+</pkgmetadata>