mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -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}"
|
||||
}
|
||||
|
||||
# @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
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
|
||||
Reference in New Issue
Block a user