diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2013-02-20 13:15:08 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2013-02-20 13:15:08 +0000 |
commit | c9c91dd7cfe0ffa677b6e53408c4603101dee7e8 (patch) | |
tree | 68b6487fbf27817902cbe0e6faf246634b542073 /media-gfx | |
parent | Keyword ~arm (diff) | |
download | gentoo-2-c9c91dd7cfe0ffa677b6e53408c4603101dee7e8.tar.gz gentoo-2-c9c91dd7cfe0ffa677b6e53408c4603101dee7e8.tar.bz2 gentoo-2-c9c91dd7cfe0ffa677b6e53408c4603101dee7e8.zip |
Add an udev USE flag for the rules generation; add a dependency on sane-backends for the generation of said rules, and make sure to die if it fails.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/iscan-data/ChangeLog | 7 | ||||
-rw-r--r-- | media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild | 35 |
2 files changed, 26 insertions, 16 deletions
diff --git a/media-gfx/iscan-data/ChangeLog b/media-gfx/iscan-data/ChangeLog index 180f96e05a70..c6ae502c47bb 100644 --- a/media-gfx/iscan-data/ChangeLog +++ b/media-gfx/iscan-data/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-gfx/iscan-data # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-data/ChangeLog,v 1.9 2013/02/19 10:38:54 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-data/ChangeLog,v 1.10 2013/02/20 13:15:08 flameeyes Exp $ + + 20 Feb 2013; Diego E. Pettenò <flameeyes@gentoo.org> + iscan-data-1.22.0.1.ebuild: + Add an udev USE flag for the rules generation; add a dependency on sane- + backends for the generation of said rules, and make sure to die if it fails. *iscan-data-1.22.0.1 (19 Feb 2013) diff --git a/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild b/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild index 0e654ffe05da..85a2bf45f7ee 100644 --- a/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild +++ b/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild,v 1.1 2013/02/19 10:38:54 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild,v 1.2 2013/02/20 13:15:08 flameeyes Exp $ -EAPI=4 +EAPI=5 -inherit eutils versionator +inherit eutils versionator udev MY_PV="$(get_version_component_range 1-3)" MY_PVR="$(replace_version_separator 3 -)" @@ -16,23 +16,28 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="udev" -DEPEND="dev-libs/libxslt" -RDEPEND="${DEPEND}" +DEPEND="udev? ( + dev-libs/libxslt + media-gfx/sane-backends + )" +RDEPEND="" S="${WORKDIR}/${PN}-${MY_PV}" +DOCS=( NEWS SUPPORTED-DEVICES KNOWN-PROBLEMS ) + src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + default + if use udev; then # create udev rules - dodir /lib/udev/rules.d - "${D}usr/$(get_libdir)/iscan-data/make-policy-file" \ - --force --quiet --mode udev \ - -d "${D}usr/share/iscan-data/epkowa.desc" \ - -o "${D}$(get_libdir)/udev/rules.d/99-iscan.rules" - - # install docs - dodoc NEWS SUPPORTED-DEVICES KNOWN-PROBLEMS + local rulesdir=$(get_udevdir)/rules.d + dodir ${rulesdir} + "${D}usr/$(get_libdir)/iscan-data/make-policy-file" \ + --force --quiet --mode udev \ + -d "${D}usr/share/iscan-data/epkowa.desc" \ + -o "${D}${rulesdir}/99-iscan.rules" || die + fi } |