diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-07-16 06:21:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-07-16 06:21:52 +0000 |
commit | 503cd7cb89510a35650be66f9008ec0f32bdcb28 (patch) | |
tree | 3e22a113fb826bd68316a3cc6b8079874bc02e91 /media-gfx/feh/feh-1.3.4.ebuild | |
parent | old (diff) | |
download | gentoo-2-503cd7cb89510a35650be66f9008ec0f32bdcb28.tar.gz gentoo-2-503cd7cb89510a35650be66f9008ec0f32bdcb28.tar.bz2 gentoo-2-503cd7cb89510a35650be66f9008ec0f32bdcb28.zip |
Make xinerama support optional #139594 by Viktor Griph.
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'media-gfx/feh/feh-1.3.4.ebuild')
-rw-r--r-- | media-gfx/feh/feh-1.3.4.ebuild | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/media-gfx/feh/feh-1.3.4.ebuild b/media-gfx/feh/feh-1.3.4.ebuild index a7a86e5a6456..1bc9f0365afe 100644 --- a/media-gfx/feh/feh-1.3.4.ebuild +++ b/media-gfx/feh/feh-1.3.4.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/feh/feh-1.3.4.ebuild,v 1.7 2006/01/20 00:50:06 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/feh/feh-1.3.4.ebuild,v 1.8 2006/07/16 06:21:52 vapier Exp $ + +inherit eutils autotools DESCRIPTION="A fast, lightweight imageviewer using imlib2" HOMEPAGE="http://www.linuxbrit.co.uk/feh" @@ -9,22 +11,36 @@ SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="alpha amd64 ppc ppc64 sparc x86" -IUSE="" +IUSE="xinerama" -DEPEND=">=media-libs/giblib-1.2.4 +RDEPEND=">=media-libs/giblib-1.2.4 >=media-libs/imlib2-1.0.0 >=media-libs/jpeg-6b-r4 media-libs/libpng - || ( - ( x11-libs/libX11 x11-libs/libXext x11-libs/libXinerama - x11-libs/libXt x11-proto/xproto x11-proto/xineramaproto ) - ( virtual/x11 ) + || ( ( + x11-libs/libX11 + x11-libs/libXext + xinerama? ( x11-libs/libXinerama ) + x11-libs/libXt + ) + virtual/x11 )" +DEPEND="${RDEPEND} + || ( ( x11-proto/xproto x11-proto/xineramaproto ) virtual/x11 )" src_unpack() { unpack ${A} cd "${S}" - sed -i -e "/^docsdir =/s:doc/feh:share/doc/${PF}:" Makefile.in || die + rm -f configure.ac + epatch "${FILESDIR}"/${P}-xinerama.patch + epatch "${FILESDIR}"/${P}-headers.patch + sed -i -e "/^docsdir =/s:doc/feh:share/doc/${PF}:" Makefile.am || die + eautoreconf +} + +src_compile() { + econf $(use_enable xinerama) || die + emake || die } src_install() { |