app-portage/gemato: Update to install repo.postsync.d script
authorMichał Górny <mgorny@gentoo.org>
Sun, 10 Dec 2017 09:48:53 +0000 (10:48 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 10 Dec 2017 10:09:56 +0000 (11:09 +0100)
app-portage/gemato/gemato-9999.ebuild
app-portage/gemato/metadata.xml

index 244ff5bbf7f52d061759bae0ee5624ace06938cf..375377b795d54d7e8e0ca1d931c0d4217e618a51 100644 (file)
@@ -16,16 +16,26 @@ EGIT_REPO_URI="https://github.com/mgorny/gemato.git"
 LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="+blake2 bzip2 +gpg lzma sha3"
+IUSE="+blake2 bzip2 +gpg lzma +portage-postsync sha3"
 
 RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
        blake2? ( $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' python{2_7,3_4,3_5} pypy{,3}) )
        bzip2? ( $(python_gen_cond_dep 'dev-python/bz2file[${PYTHON_USEDEP}]' python2_7 pypy) )
        gpg? ( app-crypt/gnupg )
        lzma? ( $(python_gen_cond_dep 'dev-python/backports-lzma[${PYTHON_USEDEP}]' python2_7 pypy) )
+       portage-postsync? ( app-crypt/gentoo-keys )
        sha3? ( $(python_gen_cond_dep 'dev-python/pysha3[${PYTHON_USEDEP}]' python{2_7,3_4,3_5} pypy{,3}) )"
 DEPEND="${RDEPEND}"
 
 python_test() {
        esetup.py test
 }
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use portage-postsync; then
+               exeinto /etc/portage/repo.postsync.d
+               doexe utils/repo.postsync.d/00gemato
+       fi
+}
index 23ea67a25989b5d72f33eac95ec87fa67ed38386..ae9f301814184906be41a9dd7e8c756759e4f2b0 100644 (file)
@@ -10,6 +10,8 @@
                        functions</flag>
                <flag name='gpg'>Install dependencies needed for OpenPGP
                        signature verification support</flag>
+               <flag name='portage-postsync'>Install a Portage hook to verify
+                       the repository after fetching via rsync</flag>
                <flag name='sha3'>Install dependencies needed for SHA3 hash
                        functions</flag>
        </use>