Commit b65d2fc0 authored by Leo's avatar Leo
Browse files

add cpan-variable to apkbuild-lint

parent 7d1a4963
......@@ -67,6 +67,9 @@ somask
url
langdir
patch_args
cpandepends
cpanmakedepends
cpancheckdepends
HOSTCC" | tr '\n' '|')
default_builddir_value() {
......@@ -265,6 +268,14 @@ braced_variable() {
sed 's|[\./"\-]$||g' # This strips the last match in the grep
}
cpan_variable() {
[ "$SKIP_CPAN_VARIABLE" ] && return 0
[ "$SKIP_AL35" ] && return 0
scan '^cpandepends=' 'merge the contents of cpandepends into depends and remove it' 'AL35' 'MC'
scan '^cpanmakedepends=' 'merge the contents of cpanmakedepends into makedepends and remove it' 'AL35' 'MC'
scan '^cpancheckdepends=' 'merge the contents of cpancheckdepends into checkdepends and remove it' 'AL35' 'MC'
}
_run_apkbuild_leo() {
# Run all tests from Leo
pkgname_quoted &
......@@ -303,6 +314,7 @@ for apkbuild; do
double_underscore_in_variable &
variable_capitalized &
braced_variable &
cpan_variable &
for phase in prepare build check package; do
superfluous_cd_builddir "$phase" &
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment