blob: 2146050826fce513e584902cbe1e3e7823934ea1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit flag-o-matic fortran-2 toolchain-funcs
MY_PV="${PV/_p/+}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Subroutine Library in Systems and Control Theory"
HOMEPAGE="https://web.archive.org/web/20191022092917/http://www.slicot.org"
SRC_URI="http://cdn-fastly.deb.debian.org/debian/pool/main/s/${PN}/${PN}_${MY_PV}.orig.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc examples"
DEPEND="
virtual/blas
virtual/lapack
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_unpack() {
default
rm -f "${S}/makefile" || die
cp "${FILESDIR}/Makefile" "${S}" || die
}
src_prepare() {
export SO="0"
export VERS="${SO}.0"
append-fflags "$($(tc-getPKG_CONFIG) --libs blas)" "$($(tc-getPKG_CONFIG) --libs lapack)"
default
}
src_install() {
dolib.so libslicot.so
dolib.so "libslicot.so.${SO}"
dolib.so "libslicot.so.${VERS}"
use doc && HTML_DOCS=( libindex.html )
use doc && HTML_DOCS+=( doc/*.html )
einstalldocs
if use examples; then
insinto "/usr/share/${P}/examples"
doins -r examples/.
insinto "/usr/share/${P}/examples77"
doins -r examples77/.
insinto "/usr/share/${P}/benchmark_data"
doins -r benchmark_data/.
fi
}
|