diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-04-29 11:53:30 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-04-29 11:53:30 +0000 |
commit | dd168fd6ffedad4080ca406956ae7216b5ac41f4 (patch) | |
tree | cf05c4c3b7c47657e71fe29c2187b71f8de47dd0 /media-gfx | |
parent | [sci-physics/sassena] Initial import (diff) | |
download | gentoo-2-dd168fd6ffedad4080ca406956ae7216b5ac41f4.tar.gz gentoo-2-dd168fd6ffedad4080ca406956ae7216b5ac41f4.tar.bz2 gentoo-2-dd168fd6ffedad4080ca406956ae7216b5ac41f4.zip |
Move to EAPI=4, handle static-libs, add fix for gold.ld, call Xemake #294295; do not call elibtoolize twice, #411389
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/gtkimageview/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild | 31 |
2 files changed, 25 insertions, 14 deletions
diff --git a/media-gfx/gtkimageview/ChangeLog b/media-gfx/gtkimageview/ChangeLog index 0ba86bf4e39c..6f63fce7480a 100644 --- a/media-gfx/gtkimageview/ChangeLog +++ b/media-gfx/gtkimageview/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-gfx/gtkimageview -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/gtkimageview/ChangeLog,v 1.20 2011/03/12 10:36:48 radhermit Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/gtkimageview/ChangeLog,v 1.21 2012/04/29 11:53:30 jlec Exp $ + + 29 Apr 2012; Justin Lecher <jlec@gentoo.org> gtkimageview-1.6.4.ebuild: + Move to EAPI=4, handle static-libs, add fix for gold.ld, call Xemake #294295; + do not call elibtoolize twice, #411389 12 Mar 2011; Tim Harder <radhermit@gentoo.org> gtkimageview-1.6.4.ebuild: Use slot dep for gtk+. diff --git a/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild b/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild index 741db18eb930..99242c4bd11c 100644 --- a/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild +++ b/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild @@ -1,30 +1,33 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild,v 1.21 2011/03/12 10:36:48 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild,v 1.22 2012/04/29 11:53:30 jlec Exp $ -EAPI="2" +EAPI=4 inherit autotools gnome2 virtualx -DESCRIPTION="GtkImageView is a simple image viewer widget for GTK." -HOMEPAGE="http://trac.bjourne.webfactional.com/wiki" +DESCRIPTION="A simple image viewer widget for GTK" +HOMEPAGE="http://trac.bjourne.webfactional.com/wiki/" SRC_URI="http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/${P}.tar.gz?format=raw -> ${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd" -IUSE="doc examples" +IUSE="doc examples static-libs" # tests do not work with userpriv RESTRICT="userpriv" -RDEPEND=">=x11-libs/gtk+-2.6:2" -DEPEND="${DEPEND} +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND} gnome-base/gnome-common dev-util/gtk-doc-am doc? ( >=dev-util/gtk-doc-1.8 )" -DOCS="README" +pkg_setup() { + DOCS="README" + G2CONF="$(use_enable static-libs static)" +} src_prepare() { gnome2_src_prepare @@ -35,6 +38,9 @@ src_prepare() { # Prevent excessive build failures due to glib/gtk changes sed '/DEPRECATED_FLAGS/d' -i configure.in || die "sed 2 failed" + # Gold linker fix + sed -e '/libtest.la/s:$: -lm:g' -i tests/Makefile.am || die + if use doc; then sed "/^TARGET_DIR/i \GTKDOC_REBASE=/usr/bin/gtkdoc-rebase" \ -i gtk-doc.make || die "sed 3 failed" @@ -43,13 +49,13 @@ src_prepare() { -i gtk-doc.make || die "sed 4 failed" fi - eautoreconf + AT_NOELIBTOOLIZE=yes eautoreconf } src_test() { # the tests are only built, but not run by default local failed="0" - emake check || die "emake check failed" + Xemake check cd "${S}"/tests for test in test-* ; do if [[ -x ${test} ]] ; then @@ -61,8 +67,9 @@ src_test() { src_install() { gnome2_src_install + use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.la if use examples ; then docinto examples - dodoc tests/ex-*.c || die "dodoc failed" + dodoc tests/ex-*.c fi } |