summaryrefslogtreecommitdiff
blob: 1da66e98892cf1d13dcff472fd74297df524d8fa (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/xiphos/xiphos-3.1.1.ebuild,v 1.1 2009/08/10 00:39:05 beandog Exp $

EAPI="2"

inherit libtool gnome2 eutils

DESCRIPTION="GTK+ based Bible study software, formerly gnomesword"
HOMEPAGE="http://xiphos.org"
SRC_URI="mirror://sourceforge/gnomesword/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="firefox seamonkey spell xulrunner +gtkhtml"
RDEPEND="
	=app-text/sword-1.6.0
	>=x11-libs/gtk+-2
	>=gnome-base/libgnomeui-2
	>=gnome-base/libgnomeprintui-2.2
	>=gnome-base/libglade-2
	app-text/gnome-doc-utils
	dev-libs/libxml2
	xulrunner? ( net-libs/xulrunner:1.8 )
	!xulrunner? ( firefox? ( =www-client/mozilla-firefox-2* ) )
	!xulrunner? ( !firefox? ( seamonkey? ( =www-client/seamonkey-1* ) ) )
	!xulrunner? ( !firefox? ( !seamonkey? ( gtkhtml? ( >=gnome-extra/gtkhtml-3.18 ) ) ) )
	spell? (
		app-text/gnome-spell
		>=gnome-base/libbonoboui-2 )"
DEPEND="${RDEPEND}
	!app-text/gnomesword
	>=dev-util/pkgconfig-0.12
	>=dev-util/intltool-0.29
	>=app-text/scrollkeeper-0.3.14"

pkg_setup() {
	if use xulrunner; then
		G2CONF="${G2CONF} --with-gecko=xulrunner"
	elif use firefox; then
		G2CONF="${G2CONF} --with-gecko=firefox"
	elif use seamonkey; then
		G2CONF="${G2CONF} --with-gecko=seamonkey"
	elif use gtkhtml; then
		G2CONF="${G2CONF} --enable-gtkhtml"
	else
		eerror "Setup your USE flags to specify a backend to use:"
		eerror "xulrunner, firefox, seamonkey or gtkhtml"
		die "Fix USE flags"
	fi
	G2CONF="${G2CONF} $(use_enable spell pspell)"
	DOCS="NEWS ChangeLog README TODO"

}

pkg_postinst() {
	gnome2_pkg_postinst

	einfo "Xiphos requires modules to be of any use. You may install the"
	einfo "sword modules packages in app-dicts/, or download modules"
	einfo "individually from the sword website: http://crosswire.org/sword/"
}