summaryrefslogtreecommitdiff
blob: 837ab5e9720c4a7e0583f961891d69e0fc86b163 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gtkhtml/gtkhtml-1.0.4.ebuild,v 1.7 2002/12/16 01:55:15 nall Exp $

IUSE="nls gnome"

inherit libtool || die "I lost my inheritance"
inherit flag-o-matic || die "I lost my inheritance"

# on PPC gtkhtml gets an assertion in spell checking code with -O3
# this is present in at least gcc-3.2. This fixes bug #11703
if [ "${ARCH}" = "ppc" ]
then
	einfo "Changing optimization to -O2 for PPC"
	replace-flags -O[3-9] -O2
fi

S=${WORKDIR}/${P}
DESCRIPTION="Lightweight HTML rendering/printing/editing engine."
SRC_URI="ftp://ftp.ximian.com/pub/source/evolution/${P}.tar.gz
	 ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnome.org/"

LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ppc sparc"

RDEPEND=">=gnome-extra/gal-0.19
	<gnome-base/control-center-1.99.0
	>=gnome-base/libghttp-1.0.9-r1
	>=dev-libs/libunicode-0.4-r1
	>=gnome-base/gnome-print-0.34
	>=gnome-base/bonobo-1.0.18
	gnome? ( <gnome-base/gconf-1.1.0 )
	nls? ( sys-devel/gettext
		>=dev-util/intltool-0.11 )
	<gnome-base/libglade-0.99.0"

DEPEND="${RDEPEND}"

src_compile() {
	elibtoolize

	local myconf=""

	use nls || myconf="${myconf} --disable-nls"

	# Evo users need to have bonobo support
	#use bonobo \
	#	&& myconf="${myconf} --with-bonobo" \
	#	|| myconf="${myconf} --without-bonobo"

	use gnome \
		&& myconf="${myconf} --with-gconf" \
		|| myconf="${myconf} --without-gconf"

  	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var/lib \
		${myconf} || die

  	emake || die "Package building failed."
}

src_install() {
	make prefix=${D}/usr \
		sysconfdir=${D}/etc \
		localstatedir=${D}/var/lib \
		install || die

	# Fix the double entry in Control Center
	rm ${D}/usr/share/control-center/capplets/gtkhtml-properties.desktop

  	dodoc AUTHORS COPYING* ChangeLog README
  	dodoc NEWS TODO
}