From b62381b18b4bf2e919cbfbae11ebcad391e38e77 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 16 Dec 2022 03:35:12 +0000 Subject: gentoo auto-resync : 16:12:2022 - 03:35:12 --- media-gfx/iscan/Manifest | 4 +- media-gfx/iscan/iscan-2.30.4.2-r1.ebuild | 153 ------------------------------- media-gfx/iscan/iscan-2.30.4.2-r3.ebuild | 153 +++++++++++++++++++++++++++++++ media-gfx/iscan/iscan-3.65.0-r1.ebuild | 108 ++++++++++++++++++++++ media-gfx/iscan/iscan-3.65.0.ebuild | 108 ---------------------- 5 files changed, 263 insertions(+), 263 deletions(-) delete mode 100644 media-gfx/iscan/iscan-2.30.4.2-r1.ebuild create mode 100644 media-gfx/iscan/iscan-2.30.4.2-r3.ebuild create mode 100644 media-gfx/iscan/iscan-3.65.0-r1.ebuild delete mode 100644 media-gfx/iscan/iscan-3.65.0.ebuild (limited to 'media-gfx/iscan') diff --git a/media-gfx/iscan/Manifest b/media-gfx/iscan/Manifest index eeb2a319d98b..8ff67dd9b929 100644 --- a/media-gfx/iscan/Manifest +++ b/media-gfx/iscan/Manifest @@ -20,6 +20,6 @@ DIST imagescan_3.65.0.orig.tar.gz 12651383 BLAKE2B e1436b6d6bf9fc3fc4e5185706fc8 DIST iscan_2.30.4-2.tar.gz 1236167 BLAKE2B 598e55aa7099f7973b38f5c3227415c8ddfa7e8c645521981b4e8979047ab692427f5c1719fd83fe0635f2d4604f32f0baff8542f3e1a333298799c4cad7b980 SHA512 b12f374ff8ee1e1879fc6dbc579de39d7bcd4777ec7ad6e4345046f77b4ec13ae45ebdc2803d6907bc2747776aa7e32c313866138c7b8c7bcb53110a214154d2 DIST userg_revQ_e.pdf 627189 BLAKE2B ff57871c58dc541e30d65127bd8f4cc2a20ec5341c1d0914116f7ec4ae002d896853b99488eec71e5f8cb150e6b63d353efb9be11977de26d017701bc051014a SHA512 b09d5143855a759e0fa3e74794762566b6fbf734642f9d7f712e5f2f20e3dce6b830465fd65f83f9cc368292ce7a2c0cec709b0eba6356d95e1ba5114b3348fc DIST userg_revQ_j.pdf 734920 BLAKE2B ed2cffdc2dbf0a2403dcbd93cef3349b9e35afb305f9b36f92b8f11bd42b5281fc7bfbec108703f327fb538868c530418406d37505e6eb6afa621d2d49d007ba SHA512 d5cb0cebaae0ac36951379cad516f0575e85e0bb509cf88549239e300c7d6c6a4996497145acaa9e9783de6b08c6e352c7ffbedb23ed04c15eefbe9c3cf0bc90 -EBUILD iscan-2.30.4.2-r1.ebuild 4000 BLAKE2B 9d315f3c51ba848fda0feea5a22d004cb6010112cba8dda3372bac5a9b9ecb6ee7aec3d9cee254ba0e77305eee99be1bb342180c71a6a8048c0625cbe1b10aa6 SHA512 b42e39b888418f016a2a147aba40a3241a75d7930132a8290163d2ea4e57ee7bf57125d6382229440cf3078482f3a7f2158575d28353ae1d7d9a69bb5f389043 -EBUILD iscan-3.65.0.ebuild 3001 BLAKE2B 57db3835e6c020d520a279ed4e668ecc767fdd140161af4d9d0333aa681cbc3dfb6b14848af5efd7c1e89961a043f61db5a35b19a426fd4b6cb47bb21726ab2c SHA512 c4ed0b13ebcaf968232646d6fe51517bb7c8c46b1dc077eac551221fee76bde3df2a9c5803fe50c16934805e6cc3f6ad7eb3073008d01f947ab14e52b156c040 +EBUILD iscan-2.30.4.2-r3.ebuild 4012 BLAKE2B 11bba57421eda6c24c285fb0bd1e39e2e9618790b48dded5cace806a3b15fff661fcaef9ca0dddef13589387c0b490036c279b5026e1cfde3edd1519bc89c89c SHA512 27dafa8850935ab565f174b343c341bc96035ff3522fd33b32ec2642a85ec60173b231b7fa18ab5e2d7425fde7494c1c7e7f0a276519c36fa496e9518ad281ec +EBUILD iscan-3.65.0-r1.ebuild 3017 BLAKE2B d05fcf13d112e68b4282e61845bc3b060d453bd199c79e6205253926377bf3634ab79cd978c2d80aeed7f7251f6f644c029685abd8b43475b2eedc5a48cfebfb SHA512 31a2426f7ccad6d7b960b017691e8ddce83ee880342151cedf8d43f797ad7dbd50079c1079a4c4e6a7388c9ab6ad7108df6e8522362df0d05fb07e72dac2280a MISC metadata.xml 961 BLAKE2B b9c6fb04e94844fb8e7f1d60c5287809c61c3f642f86f55e88ba09a489ebe2b90a698b8a7f5d7c04d38324b97d746f68004c662839862f84a3d1e66cd56c998e SHA512 93c00c3fd4b23cab80f46e3f2a8bedaf92e97473fbdcc707034d86a01ff11269fe6a67648e7a369d71fd60e31d902bc8c94510b37c293df90934a6b2b38cf7f1 diff --git a/media-gfx/iscan/iscan-2.30.4.2-r1.ebuild b/media-gfx/iscan/iscan-2.30.4.2-r1.ebuild deleted file mode 100644 index c1eb390986e3..000000000000 --- a/media-gfx/iscan/iscan-2.30.4.2-r1.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -MY_DOC="userg_revQ" -inherit autotools desktop flag-o-matic - -# HINTS: -# -> non-free modules are x86 and amd64 only -# -> iscan frontend needs non-free modules -# -> sane-epkowa should be usable on every arch -# -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3) -# -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later) - -# FIXME: -# iscan doesn't compile w/o libusb, this should be fixed somehow. - -# TODO: -# (re)add closed-source binary modules which are needed for some scanners. - -DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)" -HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" -SRC_URI="http://support.epson.net/linux/src/scanner/iscan/${PN}_$(ver_rs 3 -).tar.gz - doc? ( - https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_e.pdf - l10n_ja? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_j.pdf ) - )" - -LICENSE="GPL-2 AVASYS" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="doc gimp l10n_ja nls X" - -REQUIRED_USE="gimp? ( X )" - -DEPEND=" - dev-libs/libxml2:2 - media-gfx/sane-backends - virtual/libusb:1 - virtual/udev - gimp? ( media-gfx/gimp:0/2 ) - X? ( - dev-libs/glib:2 - media-libs/libpng:= - media-libs/tiff:= - virtual/jpeg:= - x11-libs/gtk+:2 - ) -" -RDEPEND="${DEPEND} - media-gfx/iscan-data -" -BDEPEND=" - virtual/pkgconfig - nls? ( sys-devel/gettext ) -" -# Upstream ships broken sanity test -RESTRICT="test" - -S="${WORKDIR}/${PN}-$(ver_cut 1-3)" - -DOCS=( AUTHORS NEWS README ) - -PATCHES=( - "${FILESDIR}"/iscan-2.29.1-drop-ltdl.patch - "${FILESDIR}"/iscan-2.28.1.3+libpng-1.5.patch - "${FILESDIR}"/iscan-2.29.1-png-libs.patch - "${FILESDIR}"/iscan-2.30.1-fix-g++-test.patch - "${FILESDIR}"/iscan-2.30.1.1-gcc6.patch - "${FILESDIR}"/iscan-2.30.3.1-fix-x86-unknown-types.patch - "${FILESDIR}"/iscan-2.30.4.2-sscanf.patch - "${FILESDIR}"/iscan-2.30.4.2-c99.patch -) - -QA_PRESTRIPPED="usr/lib.*/libesmod.so.*" -QA_TEXTRELS="${QA_PRESTRIPPED}" -QA_FLAGS_IGNORED="${QA_PRESTRIPPED}" - -src_prepare() { - default - - if ! use X; then - sed -i -e "s:PKG_CHECK_MODULES(GTK,.*):AC_DEFINE([HAVE_GTK_2], 0):g" \ - -e "s:\(PKG_CHECK_MODULES(GDK_IMLIB,.*)\):#\1:g" configure.ac || die - fi - - eautoreconf -} - -src_configure() { - append-cppflags -D_GNU_SOURCE # needed for 'strndup' - replace-flags "-O[0-9s]" "-O1" # fix selector box bug 388073 - - local myeconfargs=( - --enable-dependency-reduction - --disable-static - $(use_enable nls) - $(use_enable gimp) - $(use_enable X frontend) - $(use_enable X jpeg) - $(use_enable X png) - $(use_enable X tiff) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - use l10n_ja && DOCS+=( {NEWS,README}.ja ) - use doc && DOCS+=( "${DISTDIR}/${MY_DOC}_$(usex l10n_ja j e).pdf" ) - default - - # install sane config - insinto /etc/sane.d - doins backend/epkowa.conf - - # link iscan so it is seen as a plugin in gimp - local gimpplugindir - local gimptool - if use gimp; then - for gimptool in gimptool gimptool-2.0; do - if [[ -x /usr/bin/${gimptool} ]]; then - einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)" - gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins - break - fi - done - if [[ "/plug-ins" != "${gimpplugindir}" ]]; then - dodir ${gimpplugindir} - dosym ../../../../bin/iscan "${gimpplugindir}"/iscan - else - ewarn "No idea where to find the gimp plugin directory" - fi - fi - - use X && make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner -} - -pkg_postinst() { - local DLL_CONF="${EPREFIX}/etc/sane.d/dll.conf" - local EPKOWA_CONF="${EPREFIX}/etc/sane.d/epkowa.conf" - - if grep -q "^[ \t]*\" ${DLL_CONF}; then - elog "Please edit ${EPKOWA_CONF} to suit your needs." - elif grep -q "\" ${DLL_CONF}; then - elog "Hint: to enable the backend, add 'epkowa' to ${DLL_CONF}" - elog "Then edit ${EPKOWA_CONF} to suit your needs." - else - echo "epkowa" >> ${DLL_CONF} || die - elog "A new entry 'epkowa' was added to ${DLL_CONF}" - elog "Please edit ${EPKOWA_CONF} to suit your needs." - fi -} diff --git a/media-gfx/iscan/iscan-2.30.4.2-r3.ebuild b/media-gfx/iscan/iscan-2.30.4.2-r3.ebuild new file mode 100644 index 000000000000..9b5dab52d145 --- /dev/null +++ b/media-gfx/iscan/iscan-2.30.4.2-r3.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_DOC="userg_revQ" +inherit autotools desktop flag-o-matic + +# HINTS: +# -> non-free modules are x86 and amd64 only +# -> iscan frontend needs non-free modules +# -> sane-epkowa should be usable on every arch +# -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3) +# -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later) + +# FIXME: +# iscan doesn't compile w/o libusb, this should be fixed somehow. + +# TODO: +# (re)add closed-source binary modules which are needed for some scanners. + +DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)" +HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" +SRC_URI="http://support.epson.net/linux/src/scanner/iscan/${PN}_$(ver_rs 3 -).tar.gz + doc? ( + https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_e.pdf + l10n_ja? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_j.pdf ) + )" + +LICENSE="GPL-2 AVASYS" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc gimp l10n_ja nls X" + +REQUIRED_USE="gimp? ( X )" + +DEPEND=" + dev-libs/libxml2:2 + media-gfx/sane-backends + virtual/libusb:1 + virtual/udev + gimp? ( media-gfx/gimp:0/2 ) + X? ( + dev-libs/glib:2 + media-libs/libjpeg-turbo:= + media-libs/libpng:= + media-libs/tiff:= + x11-libs/gtk+:2 + ) +" +RDEPEND="${DEPEND} + media-gfx/iscan-data +" +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" +# Upstream ships broken sanity test +RESTRICT="test" + +S="${WORKDIR}/${PN}-$(ver_cut 1-3)" + +DOCS=( AUTHORS NEWS README ) + +PATCHES=( + "${FILESDIR}"/iscan-2.29.1-drop-ltdl.patch + "${FILESDIR}"/iscan-2.28.1.3+libpng-1.5.patch + "${FILESDIR}"/iscan-2.29.1-png-libs.patch + "${FILESDIR}"/iscan-2.30.1-fix-g++-test.patch + "${FILESDIR}"/iscan-2.30.1.1-gcc6.patch + "${FILESDIR}"/iscan-2.30.3.1-fix-x86-unknown-types.patch + "${FILESDIR}"/iscan-2.30.4.2-sscanf.patch + "${FILESDIR}"/iscan-2.30.4.2-c99.patch +) + +QA_PRESTRIPPED="usr/lib.*/libesmod.so.*" +QA_TEXTRELS="${QA_PRESTRIPPED}" +QA_FLAGS_IGNORED="${QA_PRESTRIPPED}" + +src_prepare() { + default + + if ! use X; then + sed -i -e "s:PKG_CHECK_MODULES(GTK,.*):AC_DEFINE([HAVE_GTK_2], 0):g" \ + -e "s:\(PKG_CHECK_MODULES(GDK_IMLIB,.*)\):#\1:g" configure.ac || die + fi + + eautoreconf +} + +src_configure() { + append-cppflags -D_GNU_SOURCE # needed for 'strndup' + replace-flags "-O[0-9s]" "-O1" # fix selector box bug 388073 + + local myeconfargs=( + --enable-dependency-reduction + --disable-static + $(use_enable nls) + $(use_enable gimp) + $(use_enable X frontend) + $(use_enable X jpeg) + $(use_enable X png) + $(use_enable X tiff) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + use l10n_ja && DOCS+=( {NEWS,README}.ja ) + use doc && DOCS+=( "${DISTDIR}/${MY_DOC}_$(usex l10n_ja j e).pdf" ) + default + + # install sane config + insinto /etc/sane.d + doins backend/epkowa.conf + + # link iscan so it is seen as a plugin in gimp + local gimpplugindir + local gimptool + if use gimp; then + for gimptool in gimptool gimptool-2.0; do + if [[ -x /usr/bin/${gimptool} ]]; then + einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)" + gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins + break + fi + done + if [[ "/plug-ins" != "${gimpplugindir}" ]]; then + dodir ${gimpplugindir} + dosym ../../../../bin/iscan "${gimpplugindir}"/iscan + else + ewarn "No idea where to find the gimp plugin directory" + fi + fi + + use X && make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner +} + +pkg_postinst() { + local DLL_CONF="${EPREFIX}/etc/sane.d/dll.conf" + local EPKOWA_CONF="${EPREFIX}/etc/sane.d/epkowa.conf" + + if grep -q "^[ \t]*\" ${DLL_CONF}; then + elog "Please edit ${EPKOWA_CONF} to suit your needs." + elif grep -q "\" ${DLL_CONF}; then + elog "Hint: to enable the backend, add 'epkowa' to ${DLL_CONF}" + elog "Then edit ${EPKOWA_CONF} to suit your needs." + else + echo "epkowa" >> ${DLL_CONF} || die + elog "A new entry 'epkowa' was added to ${DLL_CONF}" + elog "Please edit ${EPKOWA_CONF} to suit your needs." + fi +} diff --git a/media-gfx/iscan/iscan-3.65.0-r1.ebuild b/media-gfx/iscan/iscan-3.65.0-r1.ebuild new file mode 100644 index 000000000000..21dc24242f01 --- /dev/null +++ b/media-gfx/iscan/iscan-3.65.0-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools desktop flag-o-matic udev xdg-utils + +DESCRIPTION="EPSON Image Scan v3 for Linux" +HOMEPAGE="https://support.epson.net/linux/en/imagescanv3.php https://gitlab.com/utsushi/utsushi" +SRC_URI="https://support.epson.net/linux/src/scanner/imagescanv3/common/imagescan_${PV}.orig.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +IUSE="graphicsmagick gui test" +KEYWORDS="~amd64 ~x86" + +# Disable opencl as during reorient.utr test it produces inconsistent results +BDEPEND=" + virtual/pkgconfig + test? ( + app-text/tesseract[png,tiff,training,-opencl] + dev-util/uncrustify + media-fonts/dejavu + virtual/imagemagick-tools[png,tiff] + ) +" +RDEPEND=" + dev-libs/boost:= + media-gfx/sane-backends + media-libs/libjpeg-turbo:= + media-libs/tiff:= + virtual/libusb:1 + graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) + !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) + gui? ( dev-cpp/gtkmm:2.4 ) +" +DEPEND="${RDEPEND}" +RESTRICT="!test? ( test )" +S="${WORKDIR}/utsushi-0.$(ver_cut 2-3)" + +PATCHES=( + "${FILESDIR}"/${PN}-3.61.0-ijg-libjpeg.patch + "${FILESDIR}"/${PN}-3.61.0-imagemagick-7.patch + "${FILESDIR}"/${PN}-3.62.0-gcc-10.patch + "${FILESDIR}"/${PN}-3.62.0-boost-1.73.patch + "${FILESDIR}"/${PN}-3.62.0-fix-symbols.patch + "${FILESDIR}"/${PN}-3.62.0-tests-boost.patch + "${FILESDIR}"/${PN}-3.62.0-tests-tesseract.patch + "${FILESDIR}"/${PN}-3.62.0-tests-linkage.patch + "${FILESDIR}"/${PN}-3.63.0-autoconf-2.70.patch + "${FILESDIR}"/${PN}-3.65.0-sane-backends-1.1.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|="-Werror -Wno-error=deprecated-declarations"|g' -i configure.ac || die + # Disable check-soname test + sed -e '/SANE_BACKEND_SANITY_CHECKS +=/d' -i sane/Makefile.am || die + eautoreconf +} + +src_configure() { + # Workaround for: + # /usr/lib64/utsushi/libutsushi.so.0: undefined symbol: libcnx_usb_LTX_factory + append-ldflags $(no-as-needed) + # https://bugs.gentoo.org/720994 + append-ldflags -pthread + local myconf=( + $(use_with gui gtkmm) + --enable-sane-config + --enable-udev-config + --with-boost=yes + --with-jpeg + --with-magick=$(usex graphicsmagick GraphicsMagick ImageMagick) + --with-magick-pp=$(usex graphicsmagick GraphicsMagick ImageMagick) + --with-sane + --with-tiff + --with-udev-confdir="$(get_udevdir)" + ) + econf "${myconf[@]}" +} + +src_install() { + default + dodoc lib/devices.conf + find "${ED}" -name '*.la' -delete || die + if use gui; then + newicon -s scalable doc/icon.svg "${PN}".svg + make_desktop_entry utsushi "Image Scan" + fi +} + +pkg_postinst() { + udev_reload + use gui && xdg_icon_cache_update + 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." +} + +pkg_postrm() { + udev_reload + use gui && xdg_icon_cache_update +} diff --git a/media-gfx/iscan/iscan-3.65.0.ebuild b/media-gfx/iscan/iscan-3.65.0.ebuild deleted file mode 100644 index b47d4d45f4ae..000000000000 --- a/media-gfx/iscan/iscan-3.65.0.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools desktop flag-o-matic udev xdg-utils - -DESCRIPTION="EPSON Image Scan v3 for Linux" -HOMEPAGE="https://support.epson.net/linux/en/imagescanv3.php https://gitlab.com/utsushi/utsushi" -SRC_URI="https://support.epson.net/linux/src/scanner/imagescanv3/common/imagescan_${PV}.orig.tar.gz" - -LICENSE="GPL-3+" -SLOT="0" -IUSE="graphicsmagick gui test" -KEYWORDS="~amd64 ~x86" - -# Disable opencl as during reorient.utr test it produces inconsistent results -BDEPEND=" - virtual/pkgconfig - test? ( - app-text/tesseract[png,tiff,training,-opencl] - dev-util/uncrustify - media-fonts/dejavu - virtual/imagemagick-tools[png,tiff] - ) -" -RDEPEND=" - dev-libs/boost:= - media-gfx/sane-backends - media-libs/tiff - virtual/jpeg - virtual/libusb:1 - graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) - !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) - gui? ( dev-cpp/gtkmm:2.4 ) -" -DEPEND="${RDEPEND}" -RESTRICT="!test? ( test )" -S="${WORKDIR}/utsushi-0.$(ver_cut 2-3)" - -PATCHES=( - "${FILESDIR}"/${PN}-3.61.0-ijg-libjpeg.patch - "${FILESDIR}"/${PN}-3.61.0-imagemagick-7.patch - "${FILESDIR}"/${PN}-3.62.0-gcc-10.patch - "${FILESDIR}"/${PN}-3.62.0-boost-1.73.patch - "${FILESDIR}"/${PN}-3.62.0-fix-symbols.patch - "${FILESDIR}"/${PN}-3.62.0-tests-boost.patch - "${FILESDIR}"/${PN}-3.62.0-tests-tesseract.patch - "${FILESDIR}"/${PN}-3.62.0-tests-linkage.patch - "${FILESDIR}"/${PN}-3.63.0-autoconf-2.70.patch - "${FILESDIR}"/${PN}-3.65.0-sane-backends-1.1.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|="-Werror -Wno-error=deprecated-declarations"|g' -i configure.ac || die - # Disable check-soname test - sed -e '/SANE_BACKEND_SANITY_CHECKS +=/d' -i sane/Makefile.am || die - eautoreconf -} - -src_configure() { - # Workaround for: - # /usr/lib64/utsushi/libutsushi.so.0: undefined symbol: libcnx_usb_LTX_factory - append-ldflags $(no-as-needed) - # https://bugs.gentoo.org/720994 - append-ldflags -pthread - local myconf=( - $(use_with gui gtkmm) - --enable-sane-config - --enable-udev-config - --with-boost=yes - --with-jpeg - --with-magick=$(usex graphicsmagick GraphicsMagick ImageMagick) - --with-magick-pp=$(usex graphicsmagick GraphicsMagick ImageMagick) - --with-sane - --with-tiff - --with-udev-confdir="$(get_udevdir)" - ) - econf "${myconf[@]}" -} - -src_install() { - default - dodoc lib/devices.conf - find "${ED}" -name '*.la' -delete || die - if use gui; then - newicon -s scalable doc/icon.svg "${PN}".svg - make_desktop_entry utsushi "Image Scan" - fi -} - -pkg_postinst() { - udev_reload - use gui && xdg_icon_cache_update - 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." -} - -pkg_postrm() { - udev_reload - use gui && xdg_icon_cache_update -} -- cgit v1.2.3