blob: 7aae95c5b7d8edb45a4b41ad29283b7b62a9426c [file] [log] [blame]
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gtkhtml/gtkhtml-3.28.2.ebuild,v 1.2 2010/01/07 21:40:14 fauli Exp $
EAPI="2"
GCONF_DEBUG="no"
inherit autotools eutils gnome2
DESCRIPTION="Lightweight HTML Rendering/Printing/Editing Engine"
HOMEPAGE="http://www.gnome.org/"
LICENSE="GPL-2 LGPL-2"
SLOT="3.14"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
IUSE="glade"
# We keep bonobo until we can make sure no apps in tree uses
# the old composer code.
RDEPEND=">=x11-libs/gtk+-2.16
>=gnome-base/gail-1.1
>=x11-themes/gnome-icon-theme-2.22.0
>=gnome-base/orbit-2
>=app-text/enchant-1.1.7
gnome-base/gconf:2
>=app-text/iso-codes-0.49
>=net-libs/libsoup-2.26.0:2.4
glade? ( dev-util/glade:3 )"
DEPEND="${RDEPEND}
sys-devel/gettext
>=dev-util/intltool-0.40.0
>=dev-util/pkgconfig-0.9"
DOCS="AUTHORS BUGS ChangeLog NEWS README TODO"
pkg_setup() {
ELTCONF="--reverse-deps"
G2CONF="${G2CONF}
--disable-static
$(use_with glade glade-catalog)"
}
src_prepare() {
gnome2_src_prepare
# Add missing file, upstream bug #597361
cp "${FILESDIR}/gtkhtml-editor.xml" \
"${S}/components/editor/gtkhtml-editor.xml" || die "cp failed"
# FIXME: Fix compilation flags crazyness
sed 's/CFLAGS="$CFLAGS $WARNING_FLAGS"//' \
-i configure.ac configure || die "sed 1 failed"
sed -i -e 's:-DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -DGNOME_DISABLE_DEPRECATED=1::g' \
a11y/Makefile.am a11y/Makefile.in || die "sed 2 failed"
# ./../doltcompile: line 31: --silent : command not found
intltoolize --force --copy --automake || die "intltoolize failed"
eautoreconf
}