summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2010-12-22 22:56:54 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2010-12-22 22:56:54 +0000
commit0cb61441c3e37660b091feadc32cb32d133268d1 (patch)
tree3bdb6ff9bd02f937182beb4b1c305618a117294b /net-libs
parentArrange to build against upower since devicekit-power was removed a bit too e... (diff)
downloadgentoo-2-0cb61441c3e37660b091feadc32cb32d133268d1.tar.gz
gentoo-2-0cb61441c3e37660b091feadc32cb32d133268d1.tar.bz2
gentoo-2-0cb61441c3e37660b091feadc32cb32d133268d1.zip
Make sure tests are built only when needed, bug #343249. Pin slotted dependencies to needed slots. Replace addpredict by appropriate env variable adjustement and do the same for tests.
(Portage version: 2.2.0_alpha9/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/webkit-gtk/ChangeLog8
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-1.2.5-tests-build.patch22
-rw-r--r--net-libs/webkit-gtk/webkit-gtk-1.2.5.ebuild29
3 files changed, 44 insertions, 15 deletions
diff --git a/net-libs/webkit-gtk/ChangeLog b/net-libs/webkit-gtk/ChangeLog
index 98c2f97007ee..fba7a7dfe33b 100644
--- a/net-libs/webkit-gtk/ChangeLog
+++ b/net-libs/webkit-gtk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/webkit-gtk
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/ChangeLog,v 1.85 2010/11/25 07:25:39 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/ChangeLog,v 1.86 2010/12/22 22:56:54 eva Exp $
+
+ 22 Dec 2010; Gilles Dartiguelongue <eva@gentoo.org> webkit-gtk-1.2.5.ebuild,
+ +files/webkit-gtk-1.2.5-tests-build.patch:
+ Make sure tests are built only when needed, bug #343249. Pin slotted
+ dependencies to needed slots. Replace addpredict by appropriate env variable
+ adjustement and do the same for tests.
25 Nov 2010; Fabian Groffen <grobian@gentoo.org> webkit-gtk-1.2.5.ebuild,
+files/webkit-gtk-1.2.5-darwin-quartz.patch,
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.2.5-tests-build.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.2.5-tests-build.patch
new file mode 100644
index 000000000000..0d9e1448056e
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-1.2.5-tests-build.patch
@@ -0,0 +1,22 @@
+Do not build tests if not requested to.
+
+--- a/GNUmakefile.am 2010-12-21 17:23:58.000000000 +0100
++++ b/GNUmakefile.am 2010-12-21 17:24:28.000000000 +0100
+@@ -46,7 +46,8 @@
+
+ # Libraries and support components
+ bin_PROGRAMS :=
++check_PROGRAMS :=
+ noinst_PROGRAMS :=
+ noinst_HEADERS :=
+ noinst_LTLIBRARIES :=
+ lib_LIBRARIES :=
+@@ -541,7 +541,7 @@
+ include WebKit/gtk/po/GNUmakefile.am
+
+ # Build unit tests
+-noinst_PROGRAMS += $(TEST_PROGS)
++check_PROGRAMS += $(TEST_PROGS)
+
+ webkit_tests_cflags = \
+ -fno-strict-aliasing \
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.2.5.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.2.5.ebuild
index 966a7557234b..90eeab858c81 100644
--- a/net-libs/webkit-gtk/webkit-gtk-1.2.5.ebuild
+++ b/net-libs/webkit-gtk/webkit-gtk-1.2.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.2.5.ebuild,v 1.4 2010/11/25 07:25:39 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.2.5.ebuild,v 1.5 2010/12/22 22:56:54 eva Exp $
EAPI="3"
@@ -26,10 +26,10 @@ RDEPEND="
virtual/jpeg
>=media-libs/libpng-1.4
x11-libs/cairo
- >=x11-libs/gtk+-2.13[aqua=]
- >=dev-libs/glib-2.21.3
+ >=x11-libs/gtk+-2.13:2[aqua=]
+ >=dev-libs/glib-2.21.3:2
>=dev-libs/icu-3.8.1-r1
- >=net-libs/libsoup-2.29.90
+ >=net-libs/libsoup-2.29.90:2.4
>=dev-db/sqlite-3
>=app-text/enchant-0.22
>=x11-libs/pango-1.12
@@ -64,6 +64,9 @@ src_prepare() {
# Don't force -O2
sed -i 's/-O2//g' "${S}"/configure.ac || die "sed failed"
+ # Don't build tests if not needed, part of bug #343249
+ epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch"
+
# Prevent maintainer mode from being triggered during make
AT_M4DIR=autotools eautoreconf
}
@@ -90,19 +93,17 @@ src_configure() {
econf ${myconf}
}
-src_test() {
- unset DISPLAY
- # Tests can fail without it, bug 323669
- export XDG_DATA_HOME="${T}"
- # Tests will fail without it, bug 294691, bug 310695
- Xemake check || die "Test phase failed"
-}
-
src_compile() {
# Fix sandbox error with USE="introspection"
# https://bugs.webkit.org/show_bug.cgi?id=35471
- addpredict "$(unset HOME; echo ~)/.local"
- emake || die "Compile failed"
+ emake XDG_DATA_HOME="${T}/.local" || die "Compile failed"
+}
+
+src_test() {
+ unset DISPLAY
+ # Tests need virtualx, bug #294691, bug #310695
+ # Set XDG_DATA_HOME for introspection tools, bug #323669
+ Xemake check XDG_DATA_HOME="${T}/.local" || die "Test phase failed"
}
src_install() {