| 1 |
radhermit |
1.1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
jdhore |
1.3 |
# $Header: /var/cvsroot/gentoo-x86/www-client/dwb/dwb-2012.02.01.ebuild,v 1.2 2012/04/17 15:16:39 mgorny Exp $ |
| 4 |
radhermit |
1.1 |
|
| 5 |
|
|
EAPI=4 |
| 6 |
|
|
|
| 7 |
|
|
inherit toolchain-funcs |
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Dynamic web browser based on WebKit and GTK+" |
| 10 |
|
|
HOMEPAGE="http://portix.bitbucket.org/dwb/" |
| 11 |
mgorny |
1.2 |
SRC_URI="mirror://bitbucket/portix/dwb/downloads/${P}.tar.gz" |
| 12 |
radhermit |
1.1 |
|
| 13 |
|
|
LICENSE="GPL-3" |
| 14 |
|
|
SLOT="0" |
| 15 |
|
|
KEYWORDS="~amd64 ~x86" |
| 16 |
|
|
IUSE="examples gtk3" |
| 17 |
|
|
|
| 18 |
|
|
RDEPEND=">=net-libs/libsoup-2.32:2.4 |
| 19 |
|
|
!gtk3? ( |
| 20 |
|
|
>=net-libs/webkit-gtk-1.4.0:2 |
| 21 |
|
|
x11-libs/gtk+:2 |
| 22 |
|
|
) |
| 23 |
|
|
gtk3? ( |
| 24 |
|
|
>=net-libs/webkit-gtk-1.4.0:3 |
| 25 |
|
|
x11-libs/gtk+:3 |
| 26 |
|
|
)" |
| 27 |
|
|
DEPEND="${RDEPEND} |
| 28 |
jdhore |
1.3 |
virtual/pkgconfig" |
| 29 |
radhermit |
1.1 |
|
| 30 |
|
|
src_prepare() { |
| 31 |
|
|
sed -i -e "/^CFLAGS += -\(pipe\|g\|O2\)/d" config.mk || die |
| 32 |
|
|
} |
| 33 |
|
|
|
| 34 |
|
|
src_compile() { |
| 35 |
|
|
local myconf |
| 36 |
|
|
use gtk3 && myconf+=" GTK=3" |
| 37 |
|
|
|
| 38 |
|
|
emake CC="$(tc-getCC)" ${myconf} |
| 39 |
|
|
} |
| 40 |
|
|
|
| 41 |
|
|
src_install() { |
| 42 |
|
|
default |
| 43 |
|
|
|
| 44 |
|
|
if use examples ; then |
| 45 |
|
|
dodoc -r examples |
| 46 |
|
|
docompress -x /usr/share/doc/${PF}/examples |
| 47 |
|
|
fi |
| 48 |
|
|
} |