diff options
Diffstat (limited to 'media-gfx/xzgv/xzgv-0.8-r2.ebuild')
-rw-r--r-- | media-gfx/xzgv/xzgv-0.8-r2.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/media-gfx/xzgv/xzgv-0.8-r2.ebuild b/media-gfx/xzgv/xzgv-0.8-r2.ebuild new file mode 100644 index 000000000000..e0d84c154784 --- /dev/null +++ b/media-gfx/xzgv/xzgv-0.8-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xzgv/xzgv-0.8-r2.ebuild,v 1.1 2006/04/07 17:57:16 smithj Exp $ + +inherit eutils + +DESCRIPTION="An X image viewer" +HOMEPAGE="http://rus.members.beeb.net/xzgv.html" +SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/apps/graphics/viewers/X/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~hppa ia64 ppc ~ppc64 sparc x86" +IUSE="" + +DEPEND="media-libs/libpng + media-libs/jpeg + media-libs/tiff + sys-libs/zlib + =x11-libs/gtk+-1.2* + >=media-libs/imlib-1.0" + +src_unpack() { + unpack ${A} + + cd ${S} + cp config.mk config.mk.orig + sed -i -e "s:-O2 -Wall:${CFLAGS}:" config.mk + + case "${ARCH}" in + "x86") + ;; + *) + sed -i -e "s/CFLAGS+=-DINTERP_MMX/#&/" config.mk + ;; + esac + + # Fix for bug #74069 + epatch ${FILESDIR}/${P}-integer-overflow-fix.diff + # Fix for bug #127008 + epatch ${FILESDIR}/${P}-patched-cmyk-ycck-fix.diff +} + +src_compile() { + emake || die +} + +src_install() { + dodir /usr/bin /usr/share/info /usr/share/man/man1 + make PREFIX=${D}/usr \ + SHARE_INFIX=/share \ + INFO_DIR_UPDATE=no \ + MANDIR=${D}/usr/share/man/man1 \ + install || die + + # Fix info files + cd ${D}/usr/share/info + for i in 1 2 3 + do + mv xzgv-$i.gz xzgv.info-$i.gz + done + gzip -dc xzgv.gz | \ + sed -e 's:^xzgv-:xzgv\.info-:g' | \ + gzip -9c > xzgv.info.gz + rm xzgv.gz + + cd ${S} + + dodoc AUTHORS ChangeLog INSTALL NEWS README* TODO +} |