/[gentoo-x86]/media-gfx/xzgv/xzgv-0.8-r2.ebuild
Gentoo

Contents of /media-gfx/xzgv/xzgv-0.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Jul 21 07:44:00 2007 UTC (12 years, 11 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
p.masked, removed.

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/xzgv/xzgv-0.8-r2.ebuild,v 1.7 2006/05/23 11:45:01 corsair Exp $
4
5 inherit eutils
6
7 DESCRIPTION="An X image viewer"
8 HOMEPAGE="http://rus.members.beeb.net/xzgv.html"
9 SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/apps/graphics/viewers/X/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86"
14 IUSE=""
15
16 DEPEND="media-libs/libpng
17 media-libs/jpeg
18 media-libs/tiff
19 sys-libs/zlib
20 =x11-libs/gtk+-1.2*
21 >=media-libs/imlib-1.0"
22
23 src_unpack() {
24 unpack ${A}
25
26 cd ${S}
27 cp config.mk config.mk.orig
28 sed -i -e "s:-O2 -Wall:${CFLAGS}:" config.mk
29
30 case "${ARCH}" in
31 "x86")
32 ;;
33 *)
34 sed -i -e "s/CFLAGS+=-DINTERP_MMX/#&/" config.mk
35 ;;
36 esac
37
38 # Fix for bug #74069
39 epatch ${FILESDIR}/${P}-integer-overflow-fix.diff
40 # Fix for bug #127008
41 epatch ${FILESDIR}/${P}-patched-cmyk-ycck-fix.diff
42 }
43
44 src_compile() {
45 emake || die
46 }
47
48 src_install() {
49 dodir /usr/bin /usr/share/info /usr/share/man/man1
50 make PREFIX=${D}/usr \
51 SHARE_INFIX=/share \
52 INFO_DIR_UPDATE=no \
53 MANDIR=${D}/usr/share/man/man1 \
54 install || die
55
56 # Fix info files
57 cd ${D}/usr/share/info
58 for i in 1 2 3
59 do
60 mv xzgv-$i.gz xzgv.info-$i.gz
61 done
62 gzip -dc xzgv.gz | \
63 sed -e 's:^xzgv-:xzgv\.info-:g' | \
64 gzip -9c > xzgv.info.gz
65 rm xzgv.gz
66
67 cd ${S}
68
69 dodoc AUTHORS ChangeLog INSTALL NEWS README* TODO
70 }

  ViewVC Help
Powered by ViewVC 1.1.20