summaryrefslogtreecommitdiff
blob: 907d5719f630462c13df1fe1adc7eb593f36a529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/xzgv/xzgv-0.7.ebuild,v 1.3 2002/07/11 06:30:38 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="An X image viewer."
SRC_URI="http://xzgv.browser.org/${P}.tar.gz"
HOMEPAGE="http://xzgv.browser.org/"

DEPEND=">=x11-base/xfree-4.0.3
	>=media-libs/jpeg-6b-r2
	>=media-libs/libpng-1.0.12
	>=media-libs/tiff-3.5.5
	>=sys-libs/zlib-1.1.3-r2
	=x11-libs/gtk+-1.2*
	>=media-libs/imlib-1.0"

src_unpack() {

	unpack ${P}.tar.gz
	
	cd ${S}
	cp config.mk config.mk.orig
	sed -e "s:-O2 -Wall:${CFLAGS}:" \
		config.mk.orig > config.mk

}

src_compile() {

	emake || die

}

src_install() {

	dodir /usr/bin /usr/share/info /usr/man/man1
	make PREFIX=${D}/usr	\
		 SHARE_INFIX=/share	\
		 INFO_DIR_UPDATE=no	\
	     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 COPYING ChangeLog INSTALL NEWS README* TODO
}