summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cgcode/ChangeLog8
-rw-r--r--sci-libs/cgcode/cgcode-1.0-r1.ebuild41
-rw-r--r--sci-libs/cgcode/metadata.xml8
3 files changed, 52 insertions, 5 deletions
diff --git a/sci-libs/cgcode/ChangeLog b/sci-libs/cgcode/ChangeLog
index 98b292f2f2bb..c3a49b9128d1 100644
--- a/sci-libs/cgcode/ChangeLog
+++ b/sci-libs/cgcode/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/cgcode
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/cgcode/ChangeLog,v 1.5 2011/06/21 15:19:21 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cgcode/ChangeLog,v 1.6 2011/11/21 16:34:36 jlec Exp $
+
+*cgcode-1.0-r1 (21 Nov 2011)
+
+ 21 Nov 2011; Justin Lecher <jlec@gentoo.org> +cgcode-1.0-r1.ebuild,
+ metadata.xml:
+ Install correct symlink for libs, #386227
21 Jun 2011; Justin Lecher <jlec@gentoo.org> cgcode-1.0.ebuild:
Add dependency on virtual/fortran
diff --git a/sci-libs/cgcode/cgcode-1.0-r1.ebuild b/sci-libs/cgcode/cgcode-1.0-r1.ebuild
new file mode 100644
index 000000000000..9ce7a4244b29
--- /dev/null
+++ b/sci-libs/cgcode/cgcode-1.0-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cgcode/cgcode-1.0-r1.ebuild,v 1.1 2011/11/21 16:34:36 jlec Exp $
+
+EAPI=4
+
+inherit eutils fortran-2 toolchain-funcs
+
+DESCRIPTION="Conjugate gradient Codes for large sparse linear systems"
+HOMEPAGE="http://fetk.org/codes/cgcode/index.html"
+SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-2"
+IUSE=""
+
+RDEPEND="
+ virtual/fortran
+ virtual/blas"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gentoo.patch
+
+ cat >> make.inc <<- EOF
+ F77 = $(tc-getFC)
+ FFLAGS = ${FFLAGS}
+ BLASLIBS = $(pkg-config --libs blas)
+ EOF
+}
+
+src_install() {
+ dobin goos good || die
+ dolib.so lib${PN}.so.1.0 || die
+ dosym lib${PN}.so.1.0 /usr/$(get_libdir)/lib${PN}.so || die
+ dosym lib${PN}.so.1.0 /usr/$(get_libdir)/lib${PN}.so.1 || die
+ dodoc INTRODUCTION NOTE README || die
+}
diff --git a/sci-libs/cgcode/metadata.xml b/sci-libs/cgcode/metadata.xml
index c6856dc7f2cf..210ad0db014c 100644
--- a/sci-libs/cgcode/metadata.xml
+++ b/sci-libs/cgcode/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>sci</herd>
-<maintainer>
- <email>jlec@gentoo.org</email>
-</maintainer>
+ <herd>sci</herd>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
</pkgmetadata>