aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Maxime Sorin <maxime.sorin@clever-cloud.com> 2019-06-29 22:57:42 +0200
committerAvatar Maxime Sorin <maxime.sorin@clever-cloud.com> 2019-06-30 11:13:29 +0200
commit5e5ac40364f708b5987147ccc485d0ee9b6d0dc5 (patch)
tree3011961ac2b0c11532e6083ec28a7b3746c3b489
parentb2dffd69b2c12f973f812c0e7ad6cdad29a2a779 (diff)
downloadkeruspe-5e5ac40364f708b5987147ccc485d0ee9b6d0dc5.tar.gz
keruspe-5e5ac40364f708b5987147ccc485d0ee9b6d0dc5.tar.xz
add flag for generate-metadata.bash
-rw-r--r--packages/app-paludis/paludis-scripts/paludis-scripts-scm.exheres-07
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/app-paludis/paludis-scripts/paludis-scripts-scm.exheres-0 b/packages/app-paludis/paludis-scripts/paludis-scripts-scm.exheres-0
index da6359a..efa1477 100644
--- a/packages/app-paludis/paludis-scripts/paludis-scripts-scm.exheres-0
+++ b/packages/app-paludis/paludis-scripts/paludis-scripts-scm.exheres-0
@@ -10,7 +10,9 @@ HOMEPAGE="http://paludis.exherbo.org/"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~armv8"
-MYOPTIONS=""
+MYOPTIONS="
+ metadata [[ description = [ Generate metadata after syncing ] ]]
+"
DEPENDENCIES="
run:
@@ -18,6 +20,8 @@ DEPENDENCIES="
"
src_install() {
+ optionq metadata || edo rm -r "${WORK}"/hooks/sync_all_post
+
for dir in "${WORK}"/hooks/*; do
exeinto /usr/share/paludis/hooks/$(basename "${dir}")
doexe "${dir}"/*
@@ -25,4 +29,3 @@ src_install() {
dobin $(find "${WORK}" -maxdepth 1 -type f ! -name grex.rb ! -name portage2paludis.bash ! -name .gitreview)
}
-