# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A high-quality scanning and digital camera raw image processing software." HOMEPAGE="http://www.hamrick.com/" SRC_URI="http://www.hamrick.com/files/vuesca84.tgz" RESTRICT="primaryuri" LICENSE="vuescan" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" S=${WORKDIR} DEPEND="" RDEPEND=">=x11-libs/gtk+-2.0 x86? ( dev-libs/libusb ) amd64? ( app-emulation/emul-linux-x86-baselibs app-emulation/emul-linux-x86-compat app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-gtklibs )" src_install() { insinto /opt/vuescan doins vuescan.bmp vuescan.dat *htm dodir /opt/vuescan/html insinto /opt/vuescan/html doins html/* exeinto /opt/vuescan doexe vuescan doicon ${FILESDIR}/VueScan.png make_desktop_entry "/opt/vuescan/${PN}" "VueScan" "VueScan.png" "Graphics;Scanning" } pkg_postinst() { einfo "VueScan expects the webbrowser Mozilla installed in your PATH." einfo "You have to change this in the 'Prefs' tab or make available" einfo "a symlink/script named 'mozilla' starting your favourite browser." einfo "Otherwise VueScan will fail to show the HTML documentation." if use amd64 ; then ewarn "VueScan needs 32bit version of the libusb library." ewarn "You need to install it yourself since it is not provided with Gentoo." ewarn "Good luck." fi }