mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
nimble.eclass: add nimble_comment_requires
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -87,6 +87,20 @@ get_package_url() {
|
|||||||
echo "${_PACKAGE_URL}"
|
echo "${_PACKAGE_URL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# @FUNCTION: nimble_comment_requires
|
||||||
|
# @USAGE: <dep...>
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# Comment out one or more 'requires' calls in the Nimble file.
|
||||||
|
nimble_comment_requires() {
|
||||||
|
debug-print-function ${FUNCNAME} "${@}"
|
||||||
|
|
||||||
|
local dep
|
||||||
|
for dep in "${@}"; do
|
||||||
|
dep=${dep//\//\\/}
|
||||||
|
sed "/requires[[:space:]]*\"${dep}\>.*\"/ s/^/#/" -i *.nimble || die
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# @FUNCTION: nimble_src_configure
|
# @FUNCTION: nimble_src_configure
|
||||||
# @USAGE:
|
# @USAGE:
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
|
|||||||
Reference in New Issue
Block a user