summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2021-04-15 11:21:25 +0300
committerJoonas Niilola <juippis@gentoo.org>2021-04-15 11:21:25 +0300
commit6b9e95b1e5c0903aa4fbaa2beeee2d539a992b0b (patch)
tree7d9934707b0250a3cf5d27c7f7106be557b64c7e /eclass
parentsys-cluster/ipvsadm: fix pkg-config call (diff)
downloadgentoo-6b9e95b1e5c0903aa4fbaa2beeee2d539a992b0b.tar.gz
gentoo-6b9e95b1e5c0903aa4fbaa2beeee2d539a992b0b.tar.bz2
gentoo-6b9e95b1e5c0903aa4fbaa2beeee2d539a992b0b.zip
optfeature.eclass: add pkg_postinst() { } to example code snippets
- to make it more understandable where optfeature is supposed to be used. Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/optfeature.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/optfeature.eclass b/eclass/optfeature.eclass
index b558e8c9084f..06776da922d9 100644
--- a/eclass/optfeature.eclass
+++ b/eclass/optfeature.eclass
@@ -52,11 +52,13 @@ _OPTFEATURE_DOHEADER=true
# two optfeature calls. Then a custom header is set that is going to be
# displayed in case dev-db/a or dev-db/b are not installed.
# @CODE
+# pkg_postinst() {
# optfeature "foo support" app-misc/foo
# optfeature "bar support" app-misc/bar
# optfeature_header "Install optional database backends:"
# optfeature "a DB backend" dev-db/a
# optfeature "b DB backend" dev-db/b
+# }
# @CODE
optfeature_header() {
debug-print-function ${FUNCNAME} "$@"
@@ -74,9 +76,11 @@ optfeature_header() {
# app-misc/bar or app-misc/baz[bar] for optional bar support
# and either both app-misc/a and app-misc/b or app-misc/c for alphabet support.
# @CODE
+# pkg_postinst() {
# optfeature "foo support" app-misc/foo
# optfeature "bar support" app-misc/bar app-misc/baz[bar]
# optfeature "alphabet support" "app-misc/a app-misc/b" app-misc/c
+# }
# @CODE
optfeature() {
debug-print-function ${FUNCNAME} "$@"