blob: 5835cabbad4c0e53fff9b3ba03e98856bdcba4c8 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xnview/xnview-1.50.ebuild,v 1.6 2003/09/05 23:18:18 msterret Exp $
MY_P=XnView-static
S=${WORKDIR}/usr
DESCRIPTION="XnView image viewer/converter"
HOMEPAGE="http://www.xnview.com/"
SRC_URI="x86? ftp://www.zoo-logique.org/xnview/download/${MY_P}.i386.rpm
ppc? ftp://www.zoo-logique.org/xnview/download/${MY_P}.ppc.rpm"
SLOT="0"
LICENSE="free-noncomm as-is"
KEYWORDS="x86 ppc"
DEPEND="app-arch/rpm2targz"
src_unpack() {
rpm2targz ${DISTDIR}/${A}
use x86 && MY_P=${MY_P}.i386
use ppc && MY_P=${MY_P}.ppc
tar zxvf ${WORKDIR}/${MY_P}.tar.gz &>/dev/null
}
src_install() {
BASE_DIR=/opt/XnView
into /opt
dobin ${S}/X11R6/bin/{xnview,nview,nconvert}
into ${BASE_DIR}
dolib lib/libformat.so.3.87
dosym ${BASE_DIR}/lib/libformat.so.3.87 ${BASE_DIR}/lib/libformat.so
insinto /etc/env.d
doins ${FILESDIR}/99XnView
insinto /usr/lib/X11/app-defaults/XnView
doins ${S}/X11R6/lib/X11/app-defaults/XnView
fperms 444 /usr/lib/X11/app-defaults/XnView
doman local/man/man1/*.1
dodoc doc/XnView-${PV}/*.txt
insinto ${BASE_DIR}/Filters/
doins usr/share/XnView/Filters/*.dat
}
|