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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (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.16: +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-r1.ebuild,v 1.16 2006/04/07 18:02:32 smithj 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 }
41
42 src_compile() {
43 emake || die
44 }
45
46 src_install() {
47 dodir /usr/bin /usr/share/info /usr/share/man/man1
48 make PREFIX=${D}/usr \
49 SHARE_INFIX=/share \
50 INFO_DIR_UPDATE=no \
51 MANDIR=${D}/usr/share/man/man1 \
52 install || die
53
54 # Fix info files
55 cd ${D}/usr/share/info
56 for i in 1 2 3
57 do
58 mv xzgv-$i.gz xzgv.info-$i.gz
59 done
60 gzip -dc xzgv.gz | \
61 sed -e 's:^xzgv-:xzgv\.info-:g' | \
62 gzip -9c > xzgv.info.gz
63 rm xzgv.gz
64
65 cd ${S}
66
67 dodoc AUTHORS ChangeLog INSTALL NEWS README* TODO
68 }

  ViewVC Help
Powered by ViewVC 1.1.20