# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit versionator MY_PV=$(replace_version_separator 3 '-') DESCRIPTION="This tool enables you to scan a document by using the Scan key on the Brother MFC through the network." HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html" SRC_URI=" x86? ( http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-${MY_PV}.i386.deb ) amd64? ( http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-${MY_PV}.amd64.deb ) " LICENSE="Brother" SLOT="0" KEYWORDS="x86 amd64" IUSE="" RESTRICT="fetch strip" use x86 && DOWNLOAD_URL="http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-${MY_PV}.i386.deb&lang=English_lpr" use amd64 && DOWNLOAD_URL="http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-${MY_PV}.amd64.deb&lang=English_lpr" DEPEND="" RDEPEND="${DEPEND}" S="$WORKDIR" pkg_nofetch() { einfo "Please download ${A} from:" einfo " ${DOWNLOAD_URL}" einfo "Select 'I Accept' and move the file to ${DISTDIR}." } src_unpack() { unpack "${A}" unpack ./data.tar.gz rm -f control.tar.gz data.tar.gz debian-binary } src_compile() { # empty? rmdir ./usr/share/doc/ rmdir ./usr/share } src_install() { cp -r * "$D/" } pkg_postinst() { einfo "For configuration instructions, please refer to" einfo " http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_scn4.html" einfo "and" einfo " http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_scn5.html" }