blob: 4ebe47f83217c1bdea84434f3b79096fa3080e12 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/sword/sword-1.6.2.ebuild,v 1.11 2014/08/10 18:34:51 slyfox Exp $
EAPI=5
inherit eutils flag-o-matic
DESCRIPTION="Library for Bible reading software"
HOMEPAGE="http://www.crosswire.org/sword/"
SRC_URI="http://www.crosswire.org/ftpmirror/pub/${PN}/source/v${PV%.*}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd ~ppc-macos"
IUSE="curl debug doc icu static-libs"
RDEPEND="sys-libs/zlib
curl? ( net-misc/curl )
icu? ( dev-libs/icu:= )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS="AUTHORS CODINGSTYLE ChangeLog README"
RESTRICT="test" #Restricting for now, see bug 313207
src_prepare() {
sed -i \
-e '/FLAGS/s:-g3::' -e '/FLAGS/s:-O0::' \
-e '/FLAGS/s:-O2::' -e '/FLAGS/s:-O3::' \
configure || die
sed -i -e '/FLAGS/s:-Werror::' configure || die #408289
sed -i -e '/^#inc.*curl.*types/d' src/mgr/curl*.cpp || die #378055
cat <<-EOF > "${T}"/${PN}.conf
[Install]
DataPath=${EPREFIX}/usr/share/${PN}/
EOF
epatch "${FILESDIR}"/${P}-gcc47.patch
}
src_configure() {
# TODO: Why is this here and can we remove it?
strip-flags
econf \
$(use_enable static-libs static) \
$(use_enable debug) \
--with-zlib \
$(use_with icu) \
--with-conf \
$(use_with curl)
}
src_install() {
default
find "${ED}" -name '*.la' -exec rm -f {} +
if use doc; then
rm -rf examples/.cvsignore
rm -rf examples/cmdline/.cvsignore
rm -rf examples/cmdline/.deps
cp -R samples examples "${ED}"/usr/share/doc/${PF}/
fi
insinto /etc
doins "${T}"/${PN}.conf
}
pkg_postinst() {
elog "Check out http://www.crosswire.org/sword/modules/"
elog "to download modules that you would like to use with SWORD."
elog "Follow module installation instructions found on"
elog "the web or in ${EROOT}/usr/share/doc/${PF}/"
}
|