summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2013-09-03 21:59:11 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2013-09-03 21:59:11 +0000
commitbf55d56996e9c8224fe3ee313e61034992c4b722 (patch)
tree43daee425ba551e9827908b02c30a1c79f84d40b /x11-libs/gdk-pixbuf
parentAdd gdk-pixbuf cache handling functions. (diff)
downloadgentoo-2-bf55d56996e9c8224fe3ee313e61034992c4b722.tar.gz
gentoo-2-bf55d56996e9c8224fe3ee313e61034992c4b722.tar.bz2
gentoo-2-bf55d56996e9c8224fe3ee313e61034992c4b722.zip
Update to use eclass gdk-pixbuf cache handling.
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key C6085806)
Diffstat (limited to 'x11-libs/gdk-pixbuf')
-rw-r--r--x11-libs/gdk-pixbuf/ChangeLog6
-rw-r--r--x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.4.ebuild24
-rw-r--r--x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.5.ebuild24
-rw-r--r--x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.1.ebuild25
-rw-r--r--x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild28
5 files changed, 60 insertions, 47 deletions
diff --git a/x11-libs/gdk-pixbuf/ChangeLog b/x11-libs/gdk-pixbuf/ChangeLog
index fa09247060e5..3d20039dce3c 100644
--- a/x11-libs/gdk-pixbuf/ChangeLog
+++ b/x11-libs/gdk-pixbuf/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-libs/gdk-pixbuf
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v 1.86 2013/08/05 09:48:12 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v 1.87 2013/09/03 21:59:11 eva Exp $
+
+ 03 Sep 2013; Gilles Dartiguelongue <eva@gentoo.org> gdk-pixbuf-2.26.4.ebuild,
+ gdk-pixbuf-2.26.5.ebuild, gdk-pixbuf-2.28.1.ebuild, gdk-pixbuf-2.28.2.ebuild:
+ Update to use eclass gdk-pixbuf cache handling.
05 Aug 2013; Samuli Suominen <ssuominen@gentoo.org> gdk-pixbuf-2.26.4.ebuild,
gdk-pixbuf-2.26.5.ebuild, gdk-pixbuf-2.28.1.ebuild, gdk-pixbuf-2.28.2.ebuild:
diff --git a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.4.ebuild b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.4.ebuild
index d7bfde2270a3..28c3ad8eb5d9 100644
--- a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.4.ebuild
+++ b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.4.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.4.ebuild,v 1.10 2013/03/03 09:02:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.4.ebuild,v 1.11 2013/09/03 21:59:11 eva Exp $
EAPI="4"
-inherit gnome.org multilib libtool
+inherit gnome.org gnome2-utils multilib libtool
DESCRIPTION="Image loading library for GTK+"
HOMEPAGE="http://www.gtk.org/"
@@ -67,19 +67,15 @@ src_install() {
find "${D}" -name '*.la' -exec rm -f '{}' + || die
}
+pkg_preinst() {
+ gnome2_gdk_pixbuf_savelist
+}
+
pkg_postinst() {
# causes segfault if set, see bug 375615
unset __GL_NO_DSO_FINALIZER
- tmp_file=$(mktemp -t tmp_gdk_pixbuf_ebuild.XXXXXXXXXX)
- # be atomic!
- gdk-pixbuf-query-loaders > "${tmp_file}"
- if [ "${?}" = "0" ]; then
- cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
- else
- ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
- fi
- rm "${tmp_file}"
+ gnome2_gdk_pixbuf_update
if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
@@ -87,3 +83,9 @@ pkg_postinst() {
elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
fi
}
+
+pkg_postrm() {
+ if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
+ rm -f "${EROOT}"usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache
+ fi
+}
diff --git a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.5.ebuild b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.5.ebuild
index d18513f8fd73..923d050406d3 100644
--- a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.5.ebuild
+++ b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.5.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.5.ebuild,v 1.6 2013/08/05 09:48:12 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.26.5.ebuild,v 1.7 2013/09/03 21:59:11 eva Exp $
EAPI="5"
-inherit eutils gnome.org multilib libtool
+inherit eutils gnome.org gnome2-utils multilib libtool
DESCRIPTION="Image loading library for GTK+"
HOMEPAGE="http://www.gtk.org/"
@@ -63,19 +63,15 @@ src_install() {
prune_libtool_files --modules
}
+pkg_preinst() {
+ gnome2_gdk_pixbuf_savelist
+}
+
pkg_postinst() {
# causes segfault if set, see bug 375615
unset __GL_NO_DSO_FINALIZER
- tmp_file=$(mktemp -t tmp_gdk_pixbuf_ebuild.XXXXXXXXXX)
- # be atomic!
- gdk-pixbuf-query-loaders > "${tmp_file}"
- if [ "${?}" = "0" ]; then
- cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
- else
- ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
- fi
- rm "${tmp_file}"
+ gnome2_gdk_pixbuf_update
if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
@@ -83,3 +79,9 @@ pkg_postinst() {
elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
fi
}
+
+pkg_postrm() {
+ if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
+ rm -f "${EROOT}"usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache
+ fi
+}
diff --git a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.1.ebuild b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.1.ebuild
index 9630ec27db15..fe818ce4cb1c 100644
--- a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.1.ebuild
+++ b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.1.ebuild
@@ -1,9 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.1.ebuild,v 1.2 2013/08/05 09:48:12 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.1.ebuild,v 1.3 2013/09/03 21:59:11 eva Exp $
EAPI="5"
-inherit eutils gnome.org multilib libtool
+
+inherit eutils gnome.org gnome2-utils multilib libtool
DESCRIPTION="Image loading library for GTK+"
HOMEPAGE="http://www.gtk.org/"
@@ -63,19 +64,15 @@ src_install() {
prune_libtool_files --modules
}
+pkg_preinst() {
+ gnome2_gdk_pixbuf_savelist
+}
+
pkg_postinst() {
# causes segfault if set, see bug 375615
unset __GL_NO_DSO_FINALIZER
- tmp_file=$(mktemp -t tmp_gdk_pixbuf_ebuild.XXXXXXXXXX)
- # be atomic!
- gdk-pixbuf-query-loaders > "${tmp_file}"
- if [ "${?}" = "0" ]; then
- cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
- else
- ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
- fi
- rm "${tmp_file}"
+ gnome2_gdk_pixbuf_update
if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
@@ -83,3 +80,9 @@ pkg_postinst() {
elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
fi
}
+
+pkg_postrm() {
+ if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
+ rm -f "${EROOT}"usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache
+ fi
+}
diff --git a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild
index 28b9ce05a528..90beacb884dc 100644
--- a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild
+++ b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild
@@ -1,9 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild,v 1.2 2013/08/05 09:48:12 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild,v 1.3 2013/09/03 21:59:11 eva Exp $
EAPI="5"
-inherit gnome.org multilib libtool
+
+inherit gnome.org gnome2-utils multilib libtool
DESCRIPTION="Image loading library for GTK+"
HOMEPAGE="http://www.gtk.org/"
@@ -64,25 +65,26 @@ src_install() {
prune_libtool_files --modules
}
+pkg_preinst() {
+ gnome2_gdk_pixbuf_savelist
+}
+
pkg_postinst() {
# causes segfault if set, see bug 375615
unset __GL_NO_DSO_FINALIZER
- tmp_file=$(mktemp -t tmp_gdk_pixbuf_ebuild.XXXXXXXXXX)
- # be atomic!
- gdk-pixbuf-query-loaders > "${tmp_file}"
- if [ "${?}" = "0" ]; then
- cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
- else
- ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
- fi
- rm "${tmp_file}"
+ gnome2_gdk_pixbuf_update
- # FIXME: use subslots to get rebuilds when really needed
- # Every major version bump???
+ # Migration snippet for when this was handled by gtk+
if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
elog "to do that you can use qfile from portage-utils:"
elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
fi
}
+
+pkg_postrm() {
+ if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
+ rm -f "${EROOT}"usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache
+ fi
+}