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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Feb 18 15:06:08 2015 UTC (5 years, 1 month ago) by creffett
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Make dep on webkit-gtk mandatory, bug 516256. Drop old.

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0xD1BAB6B528DB029C)

1 creffett 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 creffett 1.2 # $Header: /var/cvsroot/gentoo-x86/app-text/xiphos/xiphos-3.1.6.ebuild,v 1.1 2014/02/04 23:59:22 creffett Exp $
4 creffett 1.1
5     # TODO: waf-utils.eclass ?
6    
7     EAPI=5
8     PYTHON_COMPAT=( python{2_6,2_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.7.2
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     --debug-level=$(use debug && echo debug || echo release) \
69     $(use dbus || echo --disable-dbus) \
70     configure || die
71     }
72    
73     src_compile() {
74     ./waf -v build || die
75     }
76    
77     src_install() {
78     ./waf -v --destdir="${D}" install || die
79    
80     doman ${PN}.1
81     dodoc AUTHORS ChangeLog NEWS README RELEASE-NOTES TODO
82    
83     dodoc Xiphos.ogg
84     docompress -x /usr/share/doc/${PF}/Xiphos.ogg
85    
86     rm -rf "${ED}"/usr/share/doc/${PN}
87     }
88    
89     pkg_preinst() { gnome2_icon_savelist; }
90     pkg_postinst() { gnome2_icon_cache_update; }
91     pkg_postrm() { gnome2_icon_cache_update; }

  ViewVC Help
Powered by ViewVC 1.1.20