summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-02-05 18:42:23 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-02-05 18:42:23 +0000
commit918e69d802813cc4899287e6fb922ba0c7f28259 (patch)
treef69c74ae891d05421948cd46ebb873310171c405 /sci-libs/klu
parentInitial import, part of the suitesparse (diff)
downloadgentoo-2-918e69d802813cc4899287e6fb922ba0c7f28259.tar.gz
gentoo-2-918e69d802813cc4899287e6fb922ba0c7f28259.tar.bz2
gentoo-2-918e69d802813cc4899287e6fb922ba0c7f28259.zip
Initial import, part of the suitesparse
(Portage version: 2.1.4)
Diffstat (limited to 'sci-libs/klu')
-rw-r--r--sci-libs/klu/ChangeLog10
-rw-r--r--sci-libs/klu/Manifest5
-rw-r--r--sci-libs/klu/files/klu-1.0.1-autotools.patch61
-rw-r--r--sci-libs/klu/klu-1.0.1.ebuild36
-rw-r--r--sci-libs/klu/metadata.xml10
5 files changed, 122 insertions, 0 deletions
diff --git a/sci-libs/klu/ChangeLog b/sci-libs/klu/ChangeLog
new file mode 100644
index 000000000000..6fa20bded504
--- /dev/null
+++ b/sci-libs/klu/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/klu
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/klu/ChangeLog,v 1.1 2008/02/05 18:42:23 bicatali Exp $
+
+*klu-1.0.1 (05 Feb 2008)
+
+ 05 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/klu-1.0.1-autotools.patch, +metadata.xml, +klu-1.0.1.ebuild:
+ Initial import, part of the suitesparse
+
diff --git a/sci-libs/klu/Manifest b/sci-libs/klu/Manifest
new file mode 100644
index 000000000000..b683602b114d
--- /dev/null
+++ b/sci-libs/klu/Manifest
@@ -0,0 +1,5 @@
+AUX klu-1.0.1-autotools.patch 2160 RMD160 fd54abc4d279750f9d9fe6f619539f06574c9b98 SHA1 ff5fcbe7354209afaeead1ed62bcb92388c2b128 SHA256 975bda872f643603e6f60ce792879bc71a3cee28e0a3978c30aef5c9fcff22ca
+DIST KLU-1.0.1.tar.gz 562228 RMD160 cb488b70b32f0e21d2992eacc05976cf07a8ef70 SHA1 ccc73eca912484f50ab22bab705a74ea50bd4045 SHA256 d87b4694d423cf0b3a04f55edb0e5a605d2ad229b05aa015a3c4a7cfd3629a4e
+EBUILD klu-1.0.1.ebuild 801 RMD160 937a8c0df1c05aba14144445950cad0b5d2f9cd8 SHA1 e7ec4bb00a0425a3df03707cd39eb22606de456b SHA256 493a1cb89b13990af0e78b739112c15c9a0a6fae5f51e8301615cc4ab08e3e5e
+MISC ChangeLog 307 RMD160 f8bf6c3fcd0edea8f8daf7cb97bdfd1b5272fb77 SHA1 f63ec27b874c1e664573c531a8c413b27957d729 SHA256 f33b16ad7dd6033af0002d2ce79c9f5d37975fd59499f495a686255c87af2794
+MISC metadata.xml 361 RMD160 1f16a4915bef227e22d45c89891c8e617b2e9e1b SHA1 7b0739dfcbb5580696bd700651db111750aae445 SHA256 cc5978413cf7cf79255673c927a0b4841a4c15e6e8b2ae2dbbe993b86fabbc9c
diff --git a/sci-libs/klu/files/klu-1.0.1-autotools.patch b/sci-libs/klu/files/klu-1.0.1-autotools.patch
new file mode 100644
index 000000000000..c094f50fa5c4
--- /dev/null
+++ b/sci-libs/klu/files/klu-1.0.1-autotools.patch
@@ -0,0 +1,61 @@
+--- configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ configure.ac 2008-02-01 16:31:38.558242220 +0000
+@@ -0,0 +1,13 @@
++# -*- Autoconf -*-
++AC_PREREQ(2.59)
++AC_INIT(klu, 1.0.1, davis@cise.ufl.edu)
++AM_INIT_AUTOMAKE([foreign])
++AC_PROG_INSTALL
++AC_PROG_LIBTOOL
++AC_CHECK_LIB(m, sqrt)
++AC_CHECK_LIB(btf, BTF_strongcomp)
++AC_CHECK_LIB(amd, amd_malloc)
++AC_CHECK_LIB(colamd, COLAMD_recommended)
++AC_CHECK_HEADERS(UFconfig.h)
++AC_CONFIG_FILES([Makefile Source/Makefile Demo/Makefile])
++AC_OUTPUT
+--- ./Demo/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./Demo/Makefile.am 2008-01-30 18:02:49.154496996 +0000
+@@ -0,0 +1,8 @@
++# KLU Demo Makefile. The klu_simple demo is stand-alone. The other demos
++# would require CHOLMOD.
++
++LDADD = $(top_builddir)/Source/libklu.la -lbtf -lamd -lcolamd
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++check_PROGRAMS = klu_simple
++TESTS = klu_simple
++klu_simple_SOURCES = klu_simple.c
+--- ./Source/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./Source/Makefile.am 2008-02-01 17:34:49.641897670 +0000
+@@ -0,0 +1,24 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++
++noinst_LTLIBRARIES = libklud.la libkluz.la libklul.la libkluzl.la
++
++KLUSRC = klu.c klu_kernel.c klu_dump.c \
++ klu_factor.c klu_free_numeric.c klu_solve.c \
++ klu_scale.c klu_refactor.c \
++ klu_tsolve.c klu_diagnostics.c klu_sort.c klu_extract.c
++
++CKLUSRC = klu_free_symbolic.c klu_defaults.c klu_analyze_given.c \
++ klu_analyze.c klu_memory.c
++
++libklud_la_SOURCES = $(KLUSRC) $(CKLUSRC)
++libkluz_la_SOURCES = $(KLUSRC)
++libkluz_la_CPPFLAGS = $(AM_CPPFLAGS) -DCOMPLEX
++libklul_la_SOURCES = $(KLUSRC) $(CKLUSRC)
++libklul_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG
++libkluzl_la_SOURCES = $(KLUSRC)
++libkluzl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG -DCOMPLEX
++
++lib_LTLIBRARIES = libklu.la
++libklu_la_SOURCES =
++libklu_la_LIBADD = -lamd -lbtf -lcolamd \
++ libklud.la libkluz.la libklul.la libkluzl.la
+--- ./Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./Makefile.am 2008-01-30 15:49:31.290914565 +0000
+@@ -0,0 +1,4 @@
++SUBDIRS = Source Demo
++EXTRA_DIST = README.txt
++include_HEADERS = Include/klu.h Include/klu_version.h Include/klu_internal.h
++
diff --git a/sci-libs/klu/klu-1.0.1.ebuild b/sci-libs/klu/klu-1.0.1.ebuild
new file mode 100644
index 000000000000..5fc5f82119e9
--- /dev/null
+++ b/sci-libs/klu/klu-1.0.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/klu/klu-1.0.1.ebuild,v 1.1 2008/02/05 18:42:23 bicatali Exp $
+
+inherit autotools eutils
+
+MY_PN=KLU
+DESCRIPTION="Sparse LU factorization for circuit simulation"
+HOMEPAGE="http://www.cise.ufl.edu/research/sparse/klu"
+SRC_URI="http://www.cise.ufl.edu/research/sparse/${PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+DEPEND="sci-libs/amd
+ sci-libs/btf
+ sci-libs/colamd"
+
+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/*.pdf || die
+ fi
+}
diff --git a/sci-libs/klu/metadata.xml b/sci-libs/klu/metadata.xml
new file mode 100644
index 000000000000..485be7b6f45e
--- /dev/null
+++ b/sci-libs/klu/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">
+ KLU is a sparse LU factorization algorithm well-suited for use in
+ circuit simulation. It is also part of the University
+ of Florida sparse matrix suite.
+</longdescription>
+</pkgmetadata>