summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/xnview/xnview-1.50.ebuild')
-rw-r--r--x11-misc/xnview/xnview-1.50.ebuild36
1 files changed, 16 insertions, 20 deletions
diff --git a/x11-misc/xnview/xnview-1.50.ebuild b/x11-misc/xnview/xnview-1.50.ebuild
index 5835cabbad4c..a8e8d746c7df 100644
--- a/x11-misc/xnview/xnview-1.50.ebuild
+++ b/x11-misc/xnview/xnview-1.50.ebuild
@@ -1,44 +1,40 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 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 $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xnview/xnview-1.50.ebuild,v 1.7 2004/04/14 01:36:27 abhishek Exp $
+
+inherit rpm
+
+MY_PN=XnView-static
+MY_P="${MY_PN}-${PV}"
-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"
+SRC_URI="x86? mirror://gentoo/${MY_P}.i386.rpm
+ ppc? mirror://gentoo/${MY_P}.ppc.rpm"
SLOT="0"
LICENSE="free-noncomm as-is"
-KEYWORDS="x86 ppc"
+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
-}
+S="${WORKDIR}/usr"
src_install() {
BASE_DIR=/opt/XnView
into /opt
- dobin ${S}/X11R6/bin/{xnview,nview,nconvert}
+ dobin 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
+ dolib lib/libformat.so.*
+ dosym ${BASE_DIR}/lib/libformat.so.* ${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
+ doins X11R6/lib/X11/app-defaults/XnView
fperms 444 /usr/lib/X11/app-defaults/XnView
doman local/man/man1/*.1
@@ -46,5 +42,5 @@ src_install() {
dodoc doc/XnView-${PV}/*.txt
insinto ${BASE_DIR}/Filters/
- doins usr/share/XnView/Filters/*.dat
+ doins share/XnView/Filters/*.dat
}