Browse Source

added umfpack-4.4.ebuild

git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@33 32389bae-6d03-0410-99cf-db05cde120eb
ambertools
bicatali 17 years ago
parent
commit
e3451871c5
  1. 10
      sci-libs/umfpack/ChangeLog
  2. 4
      sci-libs/umfpack/Manifest
  3. 1
      sci-libs/umfpack/files/digest-umfpack-4.4
  4. 9
      sci-libs/umfpack/metadata.xml
  5. 53
      sci-libs/umfpack/umfpack-4.4.ebuild

10
sci-libs/umfpack/ChangeLog

@ -0,0 +1,10 @@
# ChangeLog for sci-libs/umfpack
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*umfpack-4.4 (14 Dec 2005)
14 Dec 2005; Sebastien Fabbro <seb@ist.utl.pt> +umfpack-4.4.ebuild.
Initial import. Close bug #40255.
Thanks Nathaniel Domingo <nathaniel.domingo@up.edu.ph> for the ebuild.

4
sci-libs/umfpack/Manifest

@ -0,0 +1,4 @@
MD5 021348f6f4a258c0c7464ed4825131fe umfpack-4.4.ebuild 1281
MD5 63c5288f4b132ac04c55766bd047276d metadata.xml 258
MD5 f43fb18829579bb3ff0a57379f056aa1 ChangeLog 327
MD5 fff89d024fd6d4d4c35b821657e19cdb files/digest-umfpack-4.4 64

1
sci-libs/umfpack/files/digest-umfpack-4.4

@ -0,0 +1 @@
MD5 6f4de37ec711c406a50f5d6760ea9f06 UMFPACKv4.4.tar.gz 1226870

9
sci-libs/umfpack/metadata.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<maintainer>
<email>seb@ist.utl.pt</email>
<name> Sebastien Fabbro</name>
</maintainer>
</pkgmetadata>

53
sci-libs/umfpack/umfpack-4.4.ebuild

@ -0,0 +1,53 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit toolchain-funcs
MY_PV="v${PV}"
MY_PN="`echo \"${PN}\" | tr a-z A-Z`"
DESCRIPTION="Library for unsymmetric sparse linear algebra using the Unsymmetric MultiFrontal method"
HOMEPAGE="http://www.cise.ufl.edu/research/sparse/${PN}/"
SRC_URI="http://www.cise.ufl.edu/research/sparse/${PN}/${MY_PV}/${MY_PN}${MY_PV}.tar.gz"
LICENSE="UMFPACK"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="blas doc"
DEPEND="blas? ( virtual/blas )"
S="${WORKDIR}/${MY_PN}${MY_PV}"
src_compile() {
local MYCONFIG="-DNBLAS"
local MYLIB="-lm"
local MYCFLAGS=${CFLAGS}
if use blas; then
MYCFLAGS="${MYCFLAGS} $(blas-config --cflags)"
MYCONFIG="-DCBLAS"
MYLIB="${MYLIB} $(blas-config --clibs)"
fi
cd ${MY_PN}
emake -j1 \
CC="$(tc-getCC)" \
CFLAGS="${MYCFLAGS}" \
LIB="${MYLIB}" \
CONFIG="${MYCONFIG}" lib || die "emake failed"
}
src_install() {
dolib.a {AMD,UMFPACK}/Lib/*.a
insinto /usr/include/umfpack
doins {AMD,UMFPACK}/Include/*.h
docinto amd
dodoc AMD/ChangeLog
docinto umfpack
dodoc UMFPACK/ChangeLog
if use doc; then
insinto /usr/share/doc/${PF}/amd
doins AMD/Doc/*.pdf
insinto /usr/share/doc/${PF}/umfpack
doins UMFPACK/Doc/*.pdf
fi
}
Loading…
Cancel
Save