summaryrefslogtreecommitdiff
blob: f8df6f8763947f35fa5e6672aa8df996ecff4f73 (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
59
60
61
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xloadimage/xloadimage-4.1.ebuild,v 1.8 2002/12/09 04:41:54 manson Exp $

IUSE="tiff jpeg png"

MY_P=${P/-/.}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Xloadimage is a utility which will view many different types of images under X11"
SRC_URI="ftp://ftp.x.org/R5contrib/${MY_P}.tar.gz"
HOMEPAGE="http://gopher.std.com/homepages/jimf/xloadimage.html"
LICENSE="MIT"
SLOT="0"
KEYWORDS="x86 sparc  ppc"
DEPEND="x11-base/xfree
	tiff? ( media-libs/tiff )
	png? ( media-libs/libpng )
	jpeg? ( media-libs/jpeg )"
#RDEPEND=""

src_unpack() {
	unpack ${MY_P}.tar.gz
	cd ${S}
	patch -p1 < ${FILESDIR}/${P}-gentoo.diff
	
	cp Make.conf Make.conf.orig
	sed -e "s:OPT_FLAGS=:OPT_FLAGS=$CFLAGS:" Make.conf.orig >Make.conf

}

src_compile() {
	chmod 0755 configure
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"

	make || die
}

src_install () {
	dobin xloadimage
	dosym /usr/bin/xloadimage /usr/bin/xsetbg
	dosym /usr/bin/xloadimage /usr/bin/xview
	dobin uufilter

	insinto /etc/X11
	doins xloadimagerc

	mv xloadimage.man xloadimage.1
	mv uufilter.man uufilter.1

	doman xloadimage.1
	doman uufilter.1

	dosym /usr/share/man/man1/xloadimage.1.gz /usr/share/man/man1/xsetbg.1.gz
	dosym /usr/share/man/man1/xloadimage.1.gz /usr/share/man/man1/xview.1.gz

	dodoc README
}