diff options
author | Pacho Ramos <pacho@gentoo.org> | 2011-03-26 20:21:36 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2011-03-26 20:21:36 +0000 |
commit | 2a22396f9666e0508f8877de67965a3a56315372 (patch) | |
tree | 956e35be640f7b25c0ae003a97fd6d464d14cc98 /gnome-extra/libgsf | |
parent | Delete older ebuild. (diff) | |
download | gentoo-2-2a22396f9666e0508f8877de67965a3a56315372.tar.gz gentoo-2-2a22396f9666e0508f8877de67965a3a56315372.tar.bz2 gentoo-2-2a22396f9666e0508f8877de67965a3a56315372.zip |
Version bump fixing a crash.
(Portage version: 2.1.9.44/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra/libgsf')
-rw-r--r-- | gnome-extra/libgsf/ChangeLog | 7 | ||||
-rw-r--r-- | gnome-extra/libgsf/libgsf-1.14.20.ebuild | 144 |
2 files changed, 150 insertions, 1 deletions
diff --git a/gnome-extra/libgsf/ChangeLog b/gnome-extra/libgsf/ChangeLog index 67bf8147d2d1..e915781f8e44 100644 --- a/gnome-extra/libgsf/ChangeLog +++ b/gnome-extra/libgsf/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for gnome-extra/libgsf # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgsf/ChangeLog,v 1.174 2011/03/23 08:21:45 nirbheek Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgsf/ChangeLog,v 1.175 2011/03/26 20:21:36 pacho Exp $ + +*libgsf-1.14.20 (26 Mar 2011) + + 26 Mar 2011; Pacho Ramos <pacho@gentoo.org> +libgsf-1.14.20.ebuild: + Version bump fixing a crash. 23 Mar 2011; Nirbheek Chauhan <nirbheek@gentoo.org> -libgsf-1.14.18.ebuild, libgsf-1.14.19.ebuild: diff --git a/gnome-extra/libgsf/libgsf-1.14.20.ebuild b/gnome-extra/libgsf/libgsf-1.14.20.ebuild new file mode 100644 index 000000000000..d1da403c3562 --- /dev/null +++ b/gnome-extra/libgsf/libgsf-1.14.20.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgsf/libgsf-1.14.20.ebuild,v 1.1 2011/03/26 20:21:36 pacho Exp $ + +EAPI="3" +GCONF_DEBUG="no" +PYTHON_DEPEND="python? 2:2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.[45] 3.* *-jython" + +inherit autotools eutils gnome2 python multilib + +DESCRIPTION="The GNOME Structured File Library" +HOMEPAGE="http://projects.gnome.org/libgsf/" +SRC_URI="${SRC_URI} + mirror://gentoo/gnome-mplayer-0.9.6-gconf-2.m4.tgz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="bzip2 doc gnome gtk python thumbnail" + +RDEPEND=" + >=dev-libs/glib-2.16:2 + >=dev-libs/libxml2-2.4.16:2 + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + gnome? ( >=gnome-base/libbonobo-2 ) + gtk? ( x11-libs/gtk+:2 ) + python? ( + >=dev-python/pygobject-2.10:2 + >=dev-python/pygtk-2.10:2 ) + thumbnail? ( >=gnome-base/gconf-2:2 )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + >=dev-util/intltool-0.35.0 + dev-util/gtk-doc-am + doc? ( >=dev-util/gtk-doc-1 )" + +PDEPEND="gnome? ( || ( + media-gfx/imagemagick + media-gfx/graphicsmagick[imagemagick] ) )" + +pkg_setup() { + DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO" + G2CONF="${G2CONF} + --with-gio + --disable-static + $(use_with bzip2 bz2) + $(use_with gnome gnome-vfs) + $(use_with gnome bonobo) + $(use_with python) + $(use_with gtk gdk-pixbuf) + $(use_with thumbnail gconf)" + + if use python; then + python_pkg_setup + fi +} + +src_prepare() { + gnome2_src_prepare + + cp "${WORKDIR}/gnome-mplayer-0.9.6-gconf-2.m4" m4/ \ + || die "failed to copy gconf macro" + + # Fix gconf automagic, bug #289856, upstream bug #645775 + epatch "${FILESDIR}/${PN}-1.14.16-gconf-automagic.patch" + + # Fix useless variable in toplevel Makefile.am, bug #298813, upstream bug #645777 + epatch "${FILESDIR}/${PN}-1.14.16-automake-fixes.patch" + + # Fix build with FEATURES="stricter", upstream bug #645778 + epatch "${FILESDIR}/${PN}-1.14.19-missing-declaration.patch" + + # Python bindings are built/installed manually. + sed -e "/SUBDIRS += python/d" -i Makefile.am + + intltoolize --force --copy --automake || die "intltoolize failed" + eautoreconf + + # disable pyc compiling + mv py-compile py-compile.orig + ln -s $(type -P true) py-compile +} + +src_compile() { + gnome2_src_compile + + if use python; then + python_copy_sources python + + building() { + emake \ + PYTHON_INCLUDES="-I$(python_get_includedir)" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" + } + python_execute_function -s --source-dir python building + fi +} + +src_install() { + gnome2_src_install + + if use python; then + installation() { + emake \ + DESTDIR="${D}" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" \ + install + } + python_execute_function -s --source-dir python installation + + python_clean_installation_image + fi +} + +pkg_preinst() { + gnome2_pkg_preinst + preserve_old_lib /usr/$(get_libdir)/libgsf-1.so.1 + preserve_old_lib /usr/$(get_libdir)/libgsf-gnome-1.so.1 +} + +pkg_postinst() { + gnome2_pkg_postinst + + if use python; then + python_mod_optimize gsf + fi + + preserve_old_lib_notify /usr/$(get_libdir)/libgsf-1.so.1 + preserve_old_lib_notify /usr/$(get_libdir)/libgsf-gnome-1.so.1 +} + +pkg_postrm() { + gnome2_pkg_postrm + + if use python; then + python_mod_cleanup gsf + fi +} |