blob: bac7421855b75782fd46756222b5d1bda718ce3f (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils flag-o-matic qmake-utils toolchain-funcs
MY_P="${PN}_${PV}"
DESCRIPTION="NMR relaxation studies of protein association"
HOMEPAGE="http://sourceforge.net/projects/nmrdyn/"
SRC_URI="${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="+qt4"
RDEPEND="
sci-libs/gsl
qt4? (
dev-qt/qtcore:4
dev-qt/qtgui:4
)
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
RESTRICT="mirror fetch"
S="${WORKDIR}"/${MY_P}
pkg_nofetch() {
elog "Please contact the authors and get ${A}"
}
src_prepare() {
epatch "${FILESDIR}"/${P}-redefinition.patch
append-cppflags "$($(tc-getPKG_CONFIG) --cflags gsl)"
if use qt4; then
cd src/NMRdynGUI || die
cat >> NMRdynGUI.pro <<- EOF
INCLUDEPATH += "${S}"/src/algorithm/src
LIBS += $($(tc-getPKG_CONFIG) --libs gsl)
MOC_DIR = moc/
OBJECTS += ../objects/*.o
EOF
fi
}
src_configure() {
if use qt4; then
cd src/NMRdynGUI || die
eqmake4 NMRdynGUI.pro
fi
}
src_compile() {
emake \
-C src/algorithm \
CXX="$(tc-getCXX)" \
CPPFLAGS="${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
LDFLAGS="${LDFLAGS}" \
LIBS="$($(tc-getPKG_CONFIG) --libs gsl)"
if use qt4; then
cd src/NMRdynGUI || die
default
fi
}
src_install() {
dobin ${PN} r1r2
use qt4 && dobin src/NMRdynGUI/${PN}GUI
dodoc HISTORY README_LINUX.txt NMRdynManual.doc README_gridsearch.txt
}
|