commit:     473767626ea842a91c342a234ddb655df713ad96
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May  6 19:31:24 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May  6 19:33:02 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47376762

app-portage/gemato: Support installing utility scripts

Closes: https://bugs.gentoo.org/655094

 app-portage/gemato/gemato-13.0.ebuild | 11 ++++++++++-
 app-portage/gemato/gemato-9999.ebuild | 13 +++++++++++--
 app-portage/gemato/metadata.xml       |  3 +++
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/app-portage/gemato/gemato-13.0.ebuild 
b/app-portage/gemato/gemato-13.0.ebuild
index 8da41cdee06..914ecd2cb4b 100644
--- a/app-portage/gemato/gemato-13.0.ebuild
+++ b/app-portage/gemato/gemato-13.0.ebuild
@@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
 LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~mips ~ppc ~ppc64 ~sparc x86 
~x64-cygwin ~amd64-fbsd"
-IUSE="+blake2 bzip2 +gpg lzma sha3 test"
+IUSE="+blake2 bzip2 +gpg lzma sha3 test tools"
 
 MODULE_RDEPEND="
        blake2? ( $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' 
python{2_7,3_4,3_5} pypy{,3}) )
@@ -32,3 +32,12 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
 python_test() {
        esetup.py test
 }
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use tools; then
+               insinto /usr/share/gemato
+               doins utils/*.{bash,py}
+       fi
+}

diff --git a/app-portage/gemato/gemato-9999.ebuild 
b/app-portage/gemato/gemato-9999.ebuild
index 6dcd6cb0edf..605958de2ad 100644
--- a/app-portage/gemato/gemato-9999.ebuild
+++ b/app-portage/gemato/gemato-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -16,7 +16,7 @@ EGIT_REPO_URI="https://github.com/mgorny/gemato.git";
 LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="+blake2 bzip2 +gpg lzma sha3 test"
+IUSE="+blake2 bzip2 +gpg lzma sha3 test tools"
 
 MODULE_RDEPEND="
        blake2? ( $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' 
python{2_7,3_4,3_5} pypy{,3}) )
@@ -33,3 +33,12 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
 python_test() {
        esetup.py test
 }
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use tools; then
+               insinto /usr/share/gemato
+               doins utils/*.{bash,py}
+       fi
+}

diff --git a/app-portage/gemato/metadata.xml b/app-portage/gemato/metadata.xml
index 23ea67a2598..fecff7a1fcd 100644
--- a/app-portage/gemato/metadata.xml
+++ b/app-portage/gemato/metadata.xml
@@ -12,6 +12,9 @@
                        signature verification support</flag>
                <flag name='sha3'>Install dependencies needed for SHA3 hash
                        functions</flag>
+               <flag name='tools'>Install additional utilities (benchmarks,
+                       hash testing tools, fast Manifest generators)
+                       to /usr/share/gemato.</flag>
        </use>
        <upstream>
                <bugs-to>https://github.com/mgorny/gemato/issues/</bugs-to>

Reply via email to