| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cgcode/cgcode-1.0-r2.ebuild,v 1.1 2012/05/30 08:59:54 jlec Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit eutils fortran-2 toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="Conjugate gradient Codes for large sparse linear systems"
|
| 10 |
HOMEPAGE="http://fetk.org/codes/cgcode/index.html"
|
| 11 |
SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
|
| 12 |
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
| 15 |
LICENSE="GPL-2"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
RDEPEND="virtual/blas"
|
| 19 |
DEPEND="${RDEPEND}"
|
| 20 |
|
| 21 |
S="${WORKDIR}"/${PN}
|
| 22 |
|
| 23 |
src_prepare() {
|
| 24 |
epatch "${FILESDIR}"/${PV}-gentoo.patch
|
| 25 |
|
| 26 |
cat >> make.inc <<- EOF
|
| 27 |
F77 = $(tc-getFC)
|
| 28 |
FFLAGS = ${FFLAGS}
|
| 29 |
BLASLIBS = $(pkg-config --libs blas)
|
| 30 |
EOF
|
| 31 |
}
|
| 32 |
|
| 33 |
src_install() {
|
| 34 |
dobin goos good
|
| 35 |
dolib.so src/lib${PN}.so*
|
| 36 |
dodoc INTRODUCTION NOTE README
|
| 37 |
}
|