# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xnview/xnview-1.70-r1.ebuild,v 1.3 2005/12/29 22:25:49 nelchael Exp $ DESCRIPTION="XnView image viewer/converter" HOMEPAGE="http://www.xnview.com/" SRC_URI="x86? ( http://download.xnview.com/XnView-x86-unknown-linux2.x-static-fc4.tgz )" SLOT="0" LICENSE="free-noncomm as-is" KEYWORDS="x86 -*" IUSE="" DEPEND="virtual/x11 sys-libs/glibc" S="${WORKDIR}/XnView-1.70-x86-unknown-linux2.x-static-fc4" src_unpack() { unpack "${A}" einfo "Fixing RPATH" cd "${S}" sed -i -e 's#.:/usr/local/lib#/opt/XnView/lib\x00#g' bin/xnview sed -i -e 's#.:/usr/local/lib#/opt/XnView/lib\x00#g' bin/nview sed -i -e 's#.:/usr/local/lib#/opt/XnView/lib\x00#g' bin/nconvert } src_install() { BASE_DIR=/opt/XnView into /opt dobin bin/{xnview,nview,nconvert} cp app-defaults/XnView.ad app-defaults/XnView insinto /usr/lib/X11/app-defaults/XnView doins app-defaults/XnView fperms 444 /usr/lib/X11/app-defaults/XnView doman man/*.1 dodoc *.txt }