summaryrefslogtreecommitdiff
path: root/media-gfx/iscan-plugin-network-nt/iscan-plugin-network-nt-1.1.3.ebuild
blob: 5c9a1f35377bd83bf0752770b9ed683823cf7d74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit linux-info rpm

DESCRIPTION="Network scanning plugin for EPSON scanners (nonfree)"

HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
# This is distributed as part of the "bundle driver"; since we already have the
# opensource part separately we just install the nonfree part here.

ISCAN_VERSION="3.62.0"

SRC_URI="https://download2.ebz.epson.net/imagescanv3/centos/latest1/rpm/x64/imagescan-bundle-centos-8-${ISCAN_VERSION}.x64.rpm.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="media-gfx/iscan"
RESTRICT="bindist mirror strip"
CONFIG_CHECK="~SYN_COOKIES"
S=${WORKDIR}

src_unpack() {
	default
	rpm_unpack ./imagescan-bundle-centos-8-${ISCAN_VERSION}.x64.rpm/plugins/imagescan-plugin-networkscan-${PV}-1epson4centos8.x86_64.rpm
}

src_install() {
	exeinto /usr/libexec/utsushi
	doexe usr/libexec/utsushi/networkscan

	gunzip usr/share/doc/imagescan-plugin-networkscan/*.gz
	dodoc usr/share/doc/imagescan-plugin-networkscan/*
}