Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 279768 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/www-client/midori/midori-9999.ebuild (-15 / +46 lines)
Lines 1-38 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/www-client/midori/midori-9999.ebuild,v 1.10 2009/04/05 15:57:11 jokey Exp $
3
# $Header: $
4
4
5
inherit git eutils multilib
5
EAPI=2
6
7
inherit git multilib xfconf
6
8
7
DESCRIPTION="A lightweight web browser"
9
DESCRIPTION="A lightweight web browser"
8
HOMEPAGE="http://www.twotoasts.de/index.php?/pages/midori_summary.html"
10
HOMEPAGE="http://www.twotoasts.de/index.php?/pages/midori_summary.html"
9
EGIT_REPO_URI="git://git.xfce.org/kalikiana/midori"
11
EGIT_REPO_URI="git://git.xfce.org/kalikiana/midori"
10
EGIT_PROJECT="midori"
12
EGIT_PROJECT="midori"
11
13
12
LICENSE="GPL-2"
14
LICENSE="LGPL-2"
13
SLOT="0"
15
SLOT="0"
14
KEYWORDS=""
16
KEYWORDS=""
15
IUSE=""
17
IUSE="-doc gnome +html idn libnotify nls +sqlite +unique"
16
18
17
RDEPEND="net-libs/webkit-gtk
19
RDEPEND="libnotify? ( x11-libs/libnotify )
18
	net-libs/libsoup
20
	>=net-libs/libsoup-2.26
19
	dev-db/sqlite"
21
	>=net-libs/webkit-gtk-1.1.1
22
	dev-libs/libxml2
23
	x11-libs/gtk+
24
	gnome? ( net-libs/libsoup[gnome] )
25
	idn? ( net-dns/libidn )
26
	sqlite? ( >=dev-db/sqlite-3.0 )
27
	unique? ( dev-libs/libunique )"
20
28
21
DEPEND="${RDEPEND}
29
DEPEND="${RDEPEND}
22
	dev-util/pkgconfig
30
	dev-lang/python
23
	dev-util/intltool
31
	doc? ( dev-util/gtk-doc )
24
	sys-devel/gettext"
32
	html? ( dev-python/docutils )
33
	nls? ( sys-devel/gettext )"
34
35
src_prepare() {
36
	# moving docs to version-specific directory
37
	sed -i -e "s:\${DOCDIR}/${PN}:\${DOCDIR}/${PF}/:g" wscript
38
	sed -i -e "s:/${PN}/user/midori.html:/${PF}/user/midori.html:g" midori/midori-browser.c
39
}
25
40
26
pkg_setup() {
41
src_configure() {
27
	ewarn "Note: this software is not yet in a too mature status so expect some minor things to break"
42
	CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" ./waf \
43
		--prefix="/usr/" \
44
		--libdir="/usr/$(get_libdir)" \
45
		--disable-docs \
46
		$(use_enable doc apidocs) \
47
		$(use_enable html userdocs) \
48
		$(use_enable idn libidn) \
49
		$(use_enable nls nls) \
50
		$(use_enable sqlite) \
51
		$(use_enable unique) \
52
		configure || die "configure failed"
28
}
53
}
29
54
30
src_compile() {
55
src_compile() {
31
	CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" ./waf --prefix="/usr/" --libdir="/usr/$(get_libdir)/" configure || die "waf configure failed."
56
	./waf build || die "build failed"
32
	./waf build || die "waf build failed."
33
}
57
}
34
58
35
src_install() {
59
src_install() {
36
	DESTDIR=${D} ./waf install || die "waf install failed."
60
	DESTDIR=${D} ./waf install || die "install failed"
61
	rm -r ${D}/usr/share/doc/${PN}
37
	dodoc AUTHORS ChangeLog INSTALL TODO
62
	dodoc AUTHORS ChangeLog INSTALL TODO
38
}
63
}
64
65
pkg_postinst() {
66
	xfconf_pkg_postinst
67
	ewarn "Midori tends to crash due to bugs in WebKit."
68
	ewarn "Report bugs at http://www.twotoasts.de/bugs"
69
}

Return to bug 279768