Gentoo Archives: gentoo-commits

From: Chris Reffett <creffett@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/xiphos/
Date: Wed, 25 May 2016 23:47:08
Message-Id: 1464219890.10952fc55c50a1a401159157f2f399c5298064fb.creffett@gentoo
1 commit: 10952fc55c50a1a401159157f2f399c5298064fb
2 Author: Chris Reffett <creffett <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 25 23:29:32 2016 +0000
4 Commit: Chris Reffett <creffett <AT> gentoo <DOT> org>
5 CommitDate: Wed May 25 23:44:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10952fc5
7
8 app-text/xiphos: Restore 4.0.4 and mask 4.0.4-r1 due to text display breakage.
9
10 Package-Manager: portage-2.2.28
11
12 app-text/xiphos/xiphos-4.0.4.ebuild | 89 +++++++++++++++++++++++++++++++++++++
13 1 file changed, 89 insertions(+)
14
15 diff --git a/app-text/xiphos/xiphos-4.0.4.ebuild b/app-text/xiphos/xiphos-4.0.4.ebuild
16 new file mode 100644
17 index 0000000..b5fbabd
18 --- /dev/null
19 +++ b/app-text/xiphos/xiphos-4.0.4.ebuild
20 @@ -0,0 +1,89 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +PYTHON_COMPAT=( python2_7 )
27 +inherit flag-o-matic gnome2-utils python-single-r1 toolchain-funcs
28 +
29 +MY_PV="${PV}-20150830"
30 +MY_P="${PN}-${MY_PV}"
31 +DESCRIPTION="A bible study frontend for Sword (formerly known as GnomeSword)"
32 +HOMEPAGE="http://xiphos.org/"
33 +SRC_URI="mirror://sourceforge/gnomesword/${MY_P}.tar.gz"
34 +
35 +LICENSE="GPL-2 FDL-1.1 LGPL-2 MIT MPL-1.1"
36 +SLOT="0"
37 +KEYWORDS="~amd64"
38 +IUSE="dbus debug"
39 +
40 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
41 +
42 +RDEPEND="${PYTHON_DEPS}
43 + >=app-text/sword-1.7.4
44 + >=dev-libs/glib-2[${PYTHON_USEDEP}]
45 + dev-libs/libxml2[${PYTHON_USEDEP}]
46 + gnome-base/gconf[${PYTHON_USEDEP}]
47 + gnome-extra/gtkhtml:4.0
48 + >=gnome-extra/libgsf-1.14
49 + net-libs/webkit-gtk:3
50 + x11-libs/gtk+:3
51 + dbus? ( dev-libs/dbus-glib )
52 +"
53 +DEPEND="${RDEPEND}
54 + app-text/docbook2X
55 + app-text/gnome-doc-utils[${PYTHON_USEDEP}]
56 + app-text/rarian
57 + dev-libs/libxslt[${PYTHON_USEDEP}]
58 + dev-util/intltool
59 + net-libs/biblesync
60 + virtual/pkgconfig
61 + sys-devel/gettext
62 +"
63 +
64 +pkg_setup() {
65 + python-single-r1_pkg_setup
66 +}
67 +
68 +src_prepare() {
69 + sed -i \
70 + -e '/FLAGS_DEBUG/s:-g:-Wall:' \
71 + -e '/FLAGS_RELEASE/s:-O2:-Wall:' \
72 + wscript || die
73 +}
74 +
75 +src_configure() {
76 + append-cppflags -DNO_SWORD_SET_RENDER_NOTE_NUMBERS=1
77 +
78 + tc-export AR CC CPP CXX RANLIB
79 +
80 + CCFLAGS="${CFLAGS}" \
81 + LINKFLAGS="${LDFLAGS}" \
82 + SGML2MAN="$(type -P docbook2man.pl)" \
83 + ./waf -v \
84 + --prefix=/usr \
85 + --gtk=3 \
86 + --debug-level=$(use debug && echo debug || echo release) \
87 + $(use dbus || echo --disable-dbus) \
88 + configure || die
89 +}
90 +
91 +src_compile() {
92 + ./waf -v build || die
93 +}
94 +
95 +src_install() {
96 + ./waf -v --destdir="${D}" install || die
97 +
98 + doman ${PN}.1
99 + dodoc AUTHORS ChangeLog README RELEASE-NOTES TODO
100 +
101 + dodoc Xiphos.ogg
102 + docompress -x /usr/share/doc/${PF}/Xiphos.ogg
103 +
104 + rm -rf "${ED}"/usr/share/doc/${PN}
105 +}
106 +
107 +pkg_preinst() { gnome2_icon_savelist; }
108 +pkg_postinst() { gnome2_icon_cache_update; }
109 +pkg_postrm() { gnome2_icon_cache_update; }