2012-02-18 22:01:27 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-05-03 14:13:46 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/www-client/dwb/dwb-9999.ebuild,v 1.2 2012/05/03 06:01:05 jdhore Exp $
|
2012-02-18 22:01:27 +04:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
|
|
|
inherit mercurial toolchain-funcs
|
|
|
|
|
|
|
|
EHG_REPO_URI="https://bitbucket.org/portix/dwb"
|
|
|
|
|
|
|
|
DESCRIPTION="Dynamic web browser based on WebKit and GTK+"
|
|
|
|
HOMEPAGE="http://portix.bitbucket.org/dwb/"
|
|
|
|
SRC_URI=""
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
|
|
|
IUSE="examples gtk3"
|
|
|
|
|
|
|
|
RDEPEND=">=net-libs/libsoup-2.32:2.4
|
|
|
|
!gtk3? (
|
|
|
|
>=net-libs/webkit-gtk-1.4.0:2
|
|
|
|
x11-libs/gtk+:2
|
|
|
|
)
|
|
|
|
gtk3? (
|
|
|
|
>=net-libs/webkit-gtk-1.4.0:3
|
|
|
|
x11-libs/gtk+:3
|
|
|
|
)"
|
|
|
|
DEPEND="${RDEPEND}
|
2012-05-03 14:13:46 +04:00
|
|
|
virtual/pkgconfig"
|
2012-02-18 22:01:27 +04:00
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i -e "/^CFLAGS += -\(pipe\|g\|O2\)/d" config.mk || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
local myconf
|
|
|
|
use gtk3 && myconf+=" GTK=3"
|
|
|
|
|
|
|
|
emake CC="$(tc-getCC)" ${myconf}
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
|
|
|
if use examples ; then
|
|
|
|
dodoc -r examples
|
|
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
|
|
fi
|
|
|
|
}
|