DIST simple-scan-3.18.2.tar.xz 510416 SHA256 061b58e5909362200e5cdffcdcc70d1afb8f8948efc1ec8ab592c7783c8939e9 SHA512 d2374bc8d7186647851729c3e3b879fa81fab7a38ba78ea9a4d9a72b7e8a63d6c58fc68602942d21eb350d1255d03bed731ca243ff69ffb88231a1c54f9df8c6 WHIRLPOOL 672a04293fa578fa0f9ce907aa177c3a42f0b52d01159087f856360c5d2bc08ac95b2c7f790c323e5c56d1b4d804ea24573a4b6930fe9116463521ca670254c0
+DIST simple-scan-3.20.0.tar.xz 550444 SHA256 8df5a5a5b06220e98770f11c53db8fc5d0d8d675d1c395f2bcd19fc8656eb62c SHA512 2b06d3d98ad740a864fbe2278d509e958f5b3c8eaf8eb27cc15b4b033986ca7e7c7db301e60a2a0a204b16cb9a27e9d50fefcf956f15685bd79d27375bfd308b WHIRLPOOL 17007ec48097471cf3ea44359b3803249b6fbe692f883998b3d5cfca976580a1a10560f05ff2ae3460fa251d7f9df42ddc117d905317d5f4ac608398b2fb20ed
--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit gnome2 vala versionator
+
+DESCRIPTION="Simple document scanning utility"
+HOMEPAGE="https://launchpad.net/simple-scan"
+
+MY_PV=$(get_version_component_range 1-2)
+SRC_URI="https://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="colord"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.32:2
+ dev-libs/libgusb[vala]
+ >=media-gfx/sane-backends-1.0.20:=
+ >=sys-libs/zlib-1.2.3.1:=
+ virtual/jpeg:0=
+ x11-libs/cairo:=
+ >=x11-libs/gtk+-3:3
+ colord? ( >=x11-misc/colord-0.1.24:=[udev] )
+"
+RDEPEND="${COMMON_DEPEND}
+ x11-misc/xdg-utils
+ x11-themes/adwaita-icon-theme
+"
+DEPEND="${COMMON_DEPEND}
+ $(vala_depend)
+ app-text/yelp-tools
+ >=dev-util/intltool-0.35.0
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # https://bugs.launchpad.net/simple-scan/+bug/1462769
+ rm -f src/simple_scan_vala.stamp || die
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-packagekit \
+ $(use_enable colord)
+}