/[gentoo-x86]/app-text/xiphos/xiphos-3.1.5.ebuild
Gentoo

Contents of /app-text/xiphos/xiphos-3.1.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Apr 8 07:30:34 2015 UTC (4 years, 11 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Remove old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/xiphos/xiphos-3.1.5.ebuild,v 1.7 2014/01/06 02:01:51 creffett Exp $
4
5 # TODO: waf-utils.eclass ?
6
7 EAPI=5
8 PYTHON_COMPAT=( python2_7 )
9 inherit flag-o-matic gnome2-utils python-single-r1 toolchain-funcs
10
11 DESCRIPTION="A bible study frontend for Sword (formerly known as GnomeSword)"
12 HOMEPAGE="http://xiphos.org/"
13 SRC_URI="mirror://sourceforge/gnomesword/${P}.tar.gz"
14
15 LICENSE="GPL-2 FDL-1.1 LGPL-2 MIT MPL-1.1"
16 SLOT="0"
17 KEYWORDS="amd64 ~ppc x86"
18 IUSE="dbus debug webkit"
19
20 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21
22 RDEPEND="${PYTHON_DEPS}
23 >=app-text/sword-1.6.1
24 >=dev-libs/glib-2
25 dev-libs/libxml2
26 gnome-base/gconf
27 gnome-extra/gtkhtml:4.0
28 >=gnome-extra/libgsf-1.14
29 x11-libs/gtk+:3
30 dbus? ( dev-libs/dbus-glib )
31 webkit? ( net-libs/webkit-gtk:3 )
32 "
33 DEPEND="${RDEPEND}
34 app-text/docbook2X
35 app-text/gnome-doc-utils
36 app-text/rarian
37 dev-libs/libxslt
38 dev-util/intltool
39 virtual/pkgconfig
40 sys-devel/gettext
41 "
42
43 pkg_setup() {
44 python-single-r1_pkg_setup
45 }
46
47 src_prepare() {
48 sed -i \
49 -e '/FLAGS_DEBUG/s:-g:-Wall:' \
50 -e '/FLAGS_RELEASE/s:-O2:-Wall:' \
51 wscript || die
52 }
53
54 src_configure() {
55 append-cppflags -DNO_SWORD_SET_RENDER_NOTE_NUMBERS=1
56
57 tc-export AR CC CPP CXX RANLIB
58
59 local backend=gtkhtml
60 use webkit && backend=webkit
61
62 CCFLAGS="${CFLAGS}" \
63 LINKFLAGS="${LDFLAGS}" \
64 SGML2MAN="$(type -P docbook2man.pl)" \
65 ./waf -v \
66 --prefix=/usr \
67 --gtk=3 \
68 --backend=${backend} \
69 --debug-level=$(use debug && echo debug || echo release) \
70 $(use dbus || echo --disable-dbus) \
71 configure || die
72 }
73
74 src_compile() {
75 ./waf -v build || die
76 }
77
78 src_install() {
79 ./waf -v --destdir="${D}" install || die
80
81 doman ${PN}.1
82 dodoc AUTHORS ChangeLog NEWS README RELEASE-NOTES TODO
83
84 dodoc Xiphos.ogg
85 docompress -x /usr/share/doc/${PF}/Xiphos.ogg
86
87 rm -rf "${ED}"/usr/share/doc/${PN}
88 }
89
90 pkg_preinst() { gnome2_icon_savelist; }
91 pkg_postinst() { gnome2_icon_cache_update; }
92 pkg_postrm() { gnome2_icon_cache_update; }

  ViewVC Help
Powered by ViewVC 1.1.20