blob: 8a306e845c390d35fc0b58d4c7b499b88493407c (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools udev
DESCRIPTION="EPSON Image Scan v3 for Linux"
HOMEPAGE="https://support.epson.net/linux/en/imagescanv3.php"
SRC_URI="https://support.epson.net/linux/src/scanner/imagescanv3/common/imagescan_${PV}.orig.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
IUSE="graphicsmagick gui imagemagick"
KEYWORDS="~amd64 ~x86"
DEPEND="
dev-libs/boost:=
media-gfx/sane-backends
media-libs/tiff
virtual/libusb:1
virtual/jpeg
gui? ( dev-cpp/gtkmm:2.4 )
imagemagick? (
!graphicsmagick? ( media-gfx/imagemagick:= )
graphicsmagick? ( media-gfx/graphicsmagick:= )
)
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/utsushi-0.$(ver_cut 2-3)"
PATCHES=(
"${FILESDIR}"/${P}-ijg-libjpeg.patch
"${FILESDIR}"/${P}-imagemagick-7.patch
)
src_prepare() {
default
# Remove vendored libraries
rm -r upstream/boost || die
# Workaround for deprecation warnings:
# https://gitlab.com/utsushi/utsushi/issues/90
sed -e 's|-Werror||g' -i configure.ac || die
AT_NOELIBTOOLIZE=yes eautoreconf
}
src_configure() {
myconf=(
$(use_with gui gtkmm) \
$(use_with imagemagick magick) \
$(use_with imagemagick magick-pp) \
--enable-sane-config \
--enable-udev-config \
--with-boost=yes \
--with-jpeg \
--with-sane \
--with-tiff \
--with-udev-confdir="$(get_udevdir)"
)
econf "${myconf[@]}"
}
src_install() {
default
dodoc lib/devices.conf
find "${ED}" -name '*.la' -delete || die
}
pkg_postinst() {
elog "If you encounter problems with media-gfx/xsane when scanning (e.g., bad resolution),"
elog "please try the built-in GUI and kde-misc/skanlite first before reporting bugs."
}
|