diff options
author | Romain Perier <mrpouet@gentoo.org> | 2010-02-08 17:44:16 +0000 |
---|---|---|
committer | Romain Perier <mrpouet@gentoo.org> | 2010-02-08 17:44:16 +0000 |
commit | 42ceb8c1f15682d95f40202a66d9950c7800d814 (patch) | |
tree | e2e78a83a3fa9c395ada68990624a1a2dc5547be /gnome-extra/gnome-web-photo | |
parent | Add the 'opengl' USE flag. (diff) | |
download | historical-42ceb8c1f15682d95f40202a66d9950c7800d814.tar.gz historical-42ceb8c1f15682d95f40202a66d9950c7800d814.tar.bz2 historical-42ceb8c1f15682d95f40202a66d9950c7800d814.zip |
Fix compatibility with xulrunner-1.9.2, per bug #303897.
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
Diffstat (limited to 'gnome-extra/gnome-web-photo')
4 files changed, 118 insertions, 2 deletions
diff --git a/gnome-extra/gnome-web-photo/ChangeLog b/gnome-extra/gnome-web-photo/ChangeLog index 7ee54787fba7..d120a1de13ee 100644 --- a/gnome-extra/gnome-web-photo/ChangeLog +++ b/gnome-extra/gnome-web-photo/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for gnome-extra/gnome-web-photo # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-web-photo/ChangeLog,v 1.2 2010/01/11 13:53:45 mrpouet Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-web-photo/ChangeLog,v 1.3 2010/02/08 17:44:15 mrpouet Exp $ + +*gnome-web-photo-0.8-r1 (08 Feb 2010) + + 08 Feb 2010; Romain Perier <mrpouet@gentoo.org> + +gnome-web-photo-0.8-r1.ebuild, + +files/gnome-web-photo-0.8-libxul-compat.patch: + Fix compatibility with xulrunner-1.9.2, per bug #303897. 11 Jan 2010; Romain Perier <mrpouet@gentoo.org> gnome-web-photo-0.8.ebuild: diff --git a/gnome-extra/gnome-web-photo/Manifest b/gnome-extra/gnome-web-photo/Manifest index 7460456bad75..39d5fde7637d 100644 --- a/gnome-extra/gnome-web-photo/Manifest +++ b/gnome-extra/gnome-web-photo/Manifest @@ -1,4 +1,6 @@ +AUX gnome-web-photo-0.8-libxul-compat.patch 2654 RMD160 5244dae86b0c6d45f5bd68f8539b4281ab303e17 SHA1 539bc4b52f3e688b6dbe3e817e62e094310100a8 SHA256 d08ccb1185528793f4cf10a809036a367a69fc5dbba99d210762d364060fc996 DIST gnome-web-photo-0.8.tar.bz2 313764 RMD160 6a51fe1d7bf99ca9056ce07294cdd895e06173ea SHA1 fb26a418543be519e695ea2f4a0798bb89d8eb6f SHA256 96d897ad416d0a389573e9b91e935984899f88572282371f2386499573420a80 +EBUILD gnome-web-photo-0.8-r1.ebuild 975 RMD160 754f0758d4d4d8c0625e661e823a0d0e73962dd9 SHA1 18f70300a1f2f74868e7ca8418bdfa3aec31f287 SHA256 b5a25159f8033b5c2703f0dc9e32026eb5f2312747cee1631f8af1eaa073add0 EBUILD gnome-web-photo-0.8.ebuild 810 RMD160 12891fa3b29af58607a0cc9a2c2f97ae0ca93b30 SHA1 6b56f066e0578f8b9d161a119372da2b8ef0ad4e SHA256 c0fb44ac2407ff9012b24fa631e7beb96f9ca6d2fe95e832f4ec991afa0fae60 -MISC ChangeLog 718 RMD160 68658fff5b38ff0937269f2df989474c9e1afc20 SHA1 fc4f3b3330df1bc935c06cce59af87e3b337227b SHA256 160368cc0c84348a3f1988d549db762c862be5e62d99f8c4ea27980c217553aa +MISC ChangeLog 951 RMD160 a9a3ee15b4622ba51c66ae46dbd859eaf59e1c97 SHA1 7cec3b187ef9a2c04550c5cb981aabc7f293cf94 SHA256 074cf5fd4287f5eb5e2d1a3c40086271ec80f32e28f7a1df50949d908befbded MISC metadata.xml 297 RMD160 a06c3fbd6ad6810a778282f78443cd100cdb2eb6 SHA1 c1e30858d55addc736cfdfd12ecce7b0f6295cb6 SHA256 ca44f4680f96ef5c0ba6173dc34bc897c499891b78142067b6bf707aad4d1520 diff --git a/gnome-extra/gnome-web-photo/files/gnome-web-photo-0.8-libxul-compat.patch b/gnome-extra/gnome-web-photo/files/gnome-web-photo-0.8-libxul-compat.patch new file mode 100644 index 000000000000..14833ac679ad --- /dev/null +++ b/gnome-extra/gnome-web-photo/files/gnome-web-photo-0.8-libxul-compat.patch @@ -0,0 +1,70 @@ +From c90a9ed422d683840b59fc50c7d201e63cbd2028 Mon Sep 17 00:00:00 2001 +From: Romain Perier <mrpouet@gentoo.org> +Date: Mon, 8 Feb 2010 18:27:29 +0100 +Subject: Fix backward compatibility with xulrunner-1.9.2 + +1)° xulrunner-1.9.2 no longer installs libxul-unstable +2)° Since 1.9.2 nsIPresShell has an API change (RenderDocument), + so we've to check LIBXUL_VERSION + +--- + m4/libxul.m4 | 9 +++++++-- + src/Makefile.am | 1 + + src/Writer.cpp | 8 ++++++-- + 3 files changed, 14 insertions(+), 4 deletions(-) + +--- a/m4/libxul.m4 ++++ b/m4/libxul.m4 +@@ -50,7 +50,7 @@ if test "$libxul_cv_have_libxul" != "yes"; then + AC_MSG_ERROR([libxul not found]) + fi + +-libxul_cv_version="$($PKG_CONFIG --modversion $libxul_cv_libxul_pkg)" ++libxul_cv_version="$($PKG_CONFIG --modversion $libxul_cv_libxul_pkg | sed 's:\.::g')" + libxul_cv_prefix="$($PKG_CONFIG --variable=prefix $libxul_cv_libxul_pkg)" + libxul_cv_include_root="$($PKG_CONFIG --variable=includedir $libxul_cv_libxul_pkg)" + libxul_cv_sdkdir="$($PKG_CONFIG --variable=sdkdir $libxul_cv_libxul_pkg)" +@@ -59,7 +59,12 @@ libxul_cv_sdkdir="$($PKG_CONFIG --variable=sdkdir $libxul_cv_libxul_pkg)" + # I can figure this out, do it like this: + libxul_cv_libdir="$($PKG_CONFIG --variable=sdkdir $libxul_cv_libxul_pkg)/bin" + +-libxul_cv_includes="$($PKG_CONFIG --cflags-only-I libxul-unstable libxul)" ++libxul_cv_includes="$($PKG_CONFIG --cflags-only-I libxul)" ++ ++# xulrunner-1.9.2 no longer installs libxul-unstable ++if $($PKG_CONFIG --exists libxul-unstable); then ++ libxul_cv_includes+="$($PKG_CONFIG --cflags-only-I libxul-unstable)" ++fi + + AC_DEFINE([HAVE_LIBXUL],[1],[Define for libxul]) + +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -42,6 +42,7 @@ gnome_web_photo_CPPFLAGS = \ + -DLOCALEDIR=\"$(datadir)/locale\" \ + -DGECKO_HOME=\"$(GECKO_HOME)\" \ + -DGECKO_PREFIX=\"$(GECKO_PREFIX)\" \ ++ -DLIBXUL_VERSION=$(LIBXUL_VERSION) \ + -DXPCOM_GLUE_USE_NSPR \ + -DXPCOM_GLUE \ + $(AM_CPPFLAGS) +--- a/src/Writer.cpp ++++ b/src/Writer.cpp +@@ -196,9 +196,13 @@ Writer::Write() + + width = NSAppUnitsToIntPixels(cutout.width, p2a); + height = NSAppUnitsToIntPixels(cutout.height, p2a); +- +- rv = presShell->RenderDocument(cutout, PR_FALSE, PR_TRUE, ++#if LIBXUL_VERSION >= 192 ++ rv = presShell->RenderDocument(cutout, nsIPresShell::RENDER_IGNORE_VIEWPORT_SCROLLING, + NS_RGB(255, 255, 255), context); ++#else ++ rv = presShell->RenderDocument(cutout, PR_FALSE, PR_TRUE, ++ NS_RGB(255, 255, 255), context); ++#endif + if (NS_SUCCEEDED(rv)) { + imgContext->DrawSurface(surface, gfxSize(width, height)); + } + + diff --git a/gnome-extra/gnome-web-photo/gnome-web-photo-0.8-r1.ebuild b/gnome-extra/gnome-web-photo/gnome-web-photo-0.8-r1.ebuild new file mode 100644 index 000000000000..a04fb8b3d116 --- /dev/null +++ b/gnome-extra/gnome-web-photo/gnome-web-photo-0.8-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-web-photo/gnome-web-photo-0.8-r1.ebuild,v 1.1 2010/02/08 17:44:15 mrpouet Exp $ + +inherit autotools gnome2 + +DESCRIPTION="a tool to generate images and thumbnails from HTML files" +HOMEPAGE="ftp://ftp.gnome.org/pub/gnome/sources/gnome-web-photo" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="jpeg" + +RDEPEND=">=dev-libs/glib-2.6.0 + >=x11-libs/gtk+-2.6.3 + >=dev-libs/libxml2-2.6.12 + >=gnome-base/gnome-vfs-2.9.2 + media-libs/libpng + gnome-base/gconf + jpeg? ( media-libs/jpeg ) + net-libs/xulrunner" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.19" + +DOCS="AUTHORS ChangeLog HACKING NEWS README TODO" + +pkg_setup() { + G2CONF="${G2CONF} $(use_enable jpeg)" +} +src_unpack() { + gnome2_src_unpack + + # Compatibility with xulrunner-1.9.2, per bug #303897 + epatch "${FILESDIR}"/${P}-libxul-compat.patch + eautoreconf +} |