# 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/${P}.tgz" RESTRICT="primaryuri" LICENSE="vuescan" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" S=${WORKDIR} DEPEND="" RDEPEND=">=x11-libs/gtk+-2.0 x86? ( dev-libs/libusb sys-libs/libstdc++-v3 ) 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 )" pkg_setup() { enewgroup scanner } 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 cat > vuescan.desktop <<-EOF [Desktop Entry] Name=VueScan Type=Application Comment=VueScan - easy scanning software Exec=/opt/vuescan/${PN} Icon=VueScan.png Categories=Graphics;Scanning; EOF insinto /usr/share/applications/ doins vuescan.desktop fowners root:scanner /opt/vuescan/vuescan } 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 }