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

Contents of /app-text/xiphos/xiphos-3.2.2.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: +9 -12 lines
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.2 # Copyright 1999-2015 Gentoo Foundation
2 creffett 1.1 # 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.2.2.ebuild,v 1.1 2014/10/14 19:01:57 creffett Exp $
4 creffett 1.1
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 creffett 1.2 IUSE="dbus debug"
19 creffett 1.1
20     REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21    
22     RDEPEND="${PYTHON_DEPS}
23     >=app-text/sword-1.7.3
24 creffett 1.2 >=dev-libs/glib-2[${PYTHON_USEDEP}]
25     dev-libs/libxml2[${PYTHON_USEDEP}]
26     gnome-base/gconf[${PYTHON_USEDEP}]
27 creffett 1.1 gnome-extra/gtkhtml:4.0
28     >=gnome-extra/libgsf-1.14
29 creffett 1.2 net-libs/webkit-gtk:3
30 creffett 1.1 x11-libs/gtk+:3
31     dbus? ( dev-libs/dbus-glib )
32     "
33     DEPEND="${RDEPEND}
34     app-text/docbook2X
35 creffett 1.2 app-text/gnome-doc-utils[${PYTHON_USEDEP}]
36 creffett 1.1 app-text/rarian
37 creffett 1.2 dev-libs/libxslt[${PYTHON_USEDEP}]
38 creffett 1.1 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     CCFLAGS="${CFLAGS}" \
60     LINKFLAGS="${LDFLAGS}" \
61     SGML2MAN="$(type -P docbook2man.pl)" \
62     ./waf -v \
63     --prefix=/usr \
64     --gtk=3 \
65     --debug-level=$(use debug && echo debug || echo release) \
66     $(use dbus || echo --disable-dbus) \
67     configure || die
68     }
69    
70     src_compile() {
71     ./waf -v build || die
72     }
73    
74     src_install() {
75     ./waf -v --destdir="${D}" install || die
76    
77     doman ${PN}.1
78     dodoc AUTHORS ChangeLog README RELEASE-NOTES TODO
79    
80     dodoc Xiphos.ogg
81     docompress -x /usr/share/doc/${PF}/Xiphos.ogg
82    
83     rm -rf "${ED}"/usr/share/doc/${PN}
84     }
85    
86     pkg_preinst() { gnome2_icon_savelist; }
87     pkg_postinst() { gnome2_icon_cache_update; }
88     pkg_postrm() { gnome2_icon_cache_update; }

  ViewVC Help
Powered by ViewVC 1.1.20