summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-print/hplip-plugin/hplip-plugin-3.20.6-r1.ebuild (renamed from net-print/hplip-plugin/hplip-plugin-3.20.6.ebuild)17
-rw-r--r--net-print/hplip-plugin/metadata.xml3
2 files changed, 16 insertions, 4 deletions
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
index 94c7a5c55145..fa8335f3ab18 100644
--- a/net-print/hplip-plugin/hplip-plugin-3.20.6.ebuild
+++ b/net-print/hplip-plugin/hplip-plugin-3.20.6-r1.ebuild
@@ -11,12 +11,16 @@ SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run"
LICENSE="hplip-plugin"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
-IUSE=""
+IUSE="orblite"
RDEPEND="
~net-print/hplip-${PV}
- virtual/libusb:0
virtual/udev
+ orblite? (
+ media-gfx/sane-backends
+ >=sys-libs/glibc-2.26
+ virtual/libusb:0
+ )
"
DEPEND=""
@@ -45,8 +49,13 @@ src_install() {
for plugin in *-${hplip_arch}.so; do
local plugin_type=prnt
case "${plugin}" in
- fax_*) plugin_type=fax ;;
- bb_*) plugin_type=scan ;;
+ bb_orblite-*)
+ use orblite || continue
+ plugin_type=scan ;;
+ bb_*)
+ plugin_type=scan ;;
+ fax_*)
+ plugin_type=fax ;;
esac
exeinto "${HPLIP_HOME}"/${plugin_type}/plugins
diff --git a/net-print/hplip-plugin/metadata.xml b/net-print/hplip-plugin/metadata.xml
index ccfaea828450..cb97715b8595 100644
--- a/net-print/hplip-plugin/metadata.xml
+++ b/net-print/hplip-plugin/metadata.xml
@@ -12,4 +12,7 @@
<upstream>
<remote-id type="sourceforge">hplip</remote-id>
</upstream>
+ <use>
+ <flag name="orblite">Install the ORBlite scanner plugin</flag>
+ </use>
</pkgmetadata>