app-portage/gemato: Support installing utility scripts
authorMichał Górny <mgorny@gentoo.org>
Sun, 6 May 2018 19:31:24 +0000 (21:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 6 May 2018 19:33:02 +0000 (21:33 +0200)
Closes: https://bugs.gentoo.org/655094

app-portage/gemato/gemato-13.0.ebuild
app-portage/gemato/gemato-9999.ebuild
app-portage/gemato/metadata.xml

index 8da41cdee06c08052cb97507932b441672b888ab..914ecd2cb4be94b283f8a63cfdb44470ab9492e9 100644 (file)
@@ -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
+}
index 6dcd6cb0edfd683594c270498b37bd3e844d9262..605958de2ad2fc9a497c04ef7faa6af6c94989cf 100644 (file)
@@ -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
+}
index 23ea67a25989b5d72f33eac95ec87fa67ed38386..fecff7a1fcd3a34f35cf3739f495d76d1d75ece6 100644 (file)
@@ -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>