You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/iscan/iscan-3.61.0.ebuild

54 lines
1.2 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="EPSON Image Scan v3 for Linux"
HOMEPAGE="http://support.epson.net/linux/en/imagescanv3.php"
SRC_URI="http://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:= )
imagemagick? (
!graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
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_configure() {
econf \
$(use_with gui gtkmm) \
--with-jpeg \
$(use_with imagemagick magick) \
$(use_with imagemagick magick-pp) \
--with-tiff \
--with-sane \
--with-boost=yes
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
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."
}