| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: $
|
| 4 |
|
| 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 |
SRC_URI="mirror://bitbucket/portix/dwb/downloads/${P}.tar.gz"
|
| 12 |
|
| 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 |
virtual/pkgconfig"
|
| 29 |
|
| 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 |
}
|