summaryrefslogtreecommitdiff
blob: 8596928ef6a104c2f1f95a9324118c531bdb8f0b (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
58
59
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit autotools

MY_P="${PN}${PV}_lite"

DESCRIPTION="lite version of pNMRsim"
HOMEPAGE="http://www.dur.ac.uk/paul.hodgkinson/pNMRsim/"
SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.gz"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="cpu_flags_x86_sse threads"

RDEPEND="sci-libs/minuit"
DEPEND="${RDEPEND}"

RESTRICT=mirror

S="${WORKDIR}/${PN}R3"

DOCS=( CHANGES docs/cmatrix.pdf )
PATCHES=(
	"${FILESDIR}/${PN}-3.11.0-shared.patch"
	"${FILESDIR}/${PN}-3.2.1-minuit2.patch"
	"${FILESDIR}/${PN}-3.2.1-gcc4.4.patch"
	"${FILESDIR}/${PN}-3.2.1-gcc4.6.patch"
	"${FILESDIR}/${PN}-3.2.1-gcc4.7.patch"
	"${FILESDIR}/${PN}-3.9.0-atlas.patch"
	"${FILESDIR}/${PN}-3.11.0-gcc5.2.patch"
	"${FILESDIR}/${PN}-3.11.0-fix-c++14.patch"
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		--with-minuit \
		--without-atlas \
		--with-sysroot="${EROOT}" \
		$(use_with cpu_flags_x86_sse sse) \
		$(use_with threads)
}

src_install() {
	dolib.so lib/*.so*

	insinto /usr/include/${PN}R3
	doins -r include/.

	einstalldocs
}