blob: 495d4db2c3f846b58641070d366ce52fcfdfd454 (
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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="git://burrow-owl.git.sourceforge.net/gitroot/burrow-owl/burrow-owl"
GIT="git-2"
fi
AUTOTOOLS_AUTORECONF="true"
inherit autotools-utils ${GIT}
SRC_PN="${PN/-owl}"
SRC_P="${SRC_PN}-${PV}"
DESCRIPTION="Visualize multidimensional nuclear magnetic resonance (NMR) spectra"
HOMEPAGE="http://burrow-owl.sourceforge.net/"
if [[ ${PV} = 9999* ]]; then
SRC_URI="examples? ( mirror://sourceforge/${PN}/${SRC_PN}-demos.tar )"
else
SRC_URI="
mirror://sourceforge/${PN}/${SRC_P}.tar.gz
examples? ( mirror://sourceforge/${PN}/${SRC_PN}-demos.tar )"
S="${WORKDIR}/${SRC_P}"
fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples static-libs"
RDEPEND="
dev-scheme/guile-gnome-platform
>=dev-scheme/guile-cairo-1.4
>=sci-libs/starparse-1.0
x11-libs/gtk+:2"
DEPEND="${RDEPEND}
dev-util/indent
dev-util/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PV}-no-doc.patch
"${FILESDIR}"/${PV}-impl-dec.patch
"${FILESDIR}"/${PV}-header.patch
)
MAKEOPTS+=" -j1"
src_unpack() {
if [[ ${PV} = 9999* ]]; then
git-2_src_unpack
use examples && unpack ${A}
else
unpack ${A}
fi
}
src_configure() {
local myeconfargs=(
$(use_with doc doxygen)
)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
if use examples; then
pushd "${WORKDIR}"/burrow-demos
docinto demonstration
dodoc *
cd data
docinto demonstration/data
dodoc *
popd
fi
}
|