Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/hplip-plugin/
Date: Fri, 04 Sep 2020 23:12:16
Message-Id: 1599261114.2f8c3d1aaff80f1a3b83889f653256107f416410.chewi@gentoo
1 commit: 2f8c3d1aaff80f1a3b83889f653256107f416410
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 23:10:18 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 23:11:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f8c3d1a
7
8 net-print/hplip-plugin: Add missing ORBlite deps and wrap in USE flag
9
10 Closes: https://bugs.gentoo.org/740322
11 Package-Manager: Portage-3.0.5, Repoman-3.0.1
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13
14 ...ugin-3.20.6.ebuild => hplip-plugin-3.20.6-r1.ebuild} | 17 +++++++++++++----
15 net-print/hplip-plugin/metadata.xml | 3 +++
16 2 files changed, 16 insertions(+), 4 deletions(-)
17
18 diff --git a/net-print/hplip-plugin/hplip-plugin-3.20.6.ebuild b/net-print/hplip-plugin/hplip-plugin-3.20.6-r1.ebuild
19 similarity index 83%
20 rename from net-print/hplip-plugin/hplip-plugin-3.20.6.ebuild
21 rename to net-print/hplip-plugin/hplip-plugin-3.20.6-r1.ebuild
22 index 94c7a5c5514..fa8335f3ab1 100644
23 --- a/net-print/hplip-plugin/hplip-plugin-3.20.6.ebuild
24 +++ b/net-print/hplip-plugin/hplip-plugin-3.20.6-r1.ebuild
25 @@ -11,12 +11,16 @@ SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run"
26 LICENSE="hplip-plugin"
27 SLOT="0"
28 KEYWORDS="~amd64 ~arm ~x86"
29 -IUSE=""
30 +IUSE="orblite"
31
32 RDEPEND="
33 ~net-print/hplip-${PV}
34 - virtual/libusb:0
35 virtual/udev
36 + orblite? (
37 + media-gfx/sane-backends
38 + >=sys-libs/glibc-2.26
39 + virtual/libusb:0
40 + )
41 "
42 DEPEND=""
43
44 @@ -45,8 +49,13 @@ src_install() {
45 for plugin in *-${hplip_arch}.so; do
46 local plugin_type=prnt
47 case "${plugin}" in
48 - fax_*) plugin_type=fax ;;
49 - bb_*) plugin_type=scan ;;
50 + bb_orblite-*)
51 + use orblite || continue
52 + plugin_type=scan ;;
53 + bb_*)
54 + plugin_type=scan ;;
55 + fax_*)
56 + plugin_type=fax ;;
57 esac
58
59 exeinto "${HPLIP_HOME}"/${plugin_type}/plugins
60
61 diff --git a/net-print/hplip-plugin/metadata.xml b/net-print/hplip-plugin/metadata.xml
62 index ccfaea82845..cb97715b859 100644
63 --- a/net-print/hplip-plugin/metadata.xml
64 +++ b/net-print/hplip-plugin/metadata.xml
65 @@ -12,4 +12,7 @@
66 <upstream>
67 <remote-id type="sourceforge">hplip</remote-id>
68 </upstream>
69 + <use>
70 + <flag name="orblite">Install the ORBlite scanner plugin</flag>
71 + </use>
72 </pkgmetadata>