Marcel Telka
2022-09-28 fc7186437c365489652664e4bbcc123c003e1457
tools/perl-integrate-modul: prefer modulebuild over makemaker

3 files modified
14 ■■■■ changed files
components/perl/Encode-Detect/perl-integrate-module.conf 4 ●●●● patch | view | raw | blame | history
components/perl/Module-Build/perl-integrate-module.conf 4 ●●●● patch | view | raw | blame | history
tools/perl-integrate-module 6 ●●●● patch | view | raw | blame | history
components/perl/Encode-Detect/perl-integrate-module.conf
@@ -17,7 +17,3 @@
printf "%s\n" "$COPYRIGHT" > "$DISTRIBUTION.license"
LICENSE="MPL-1.1"
USE_DEFAULT_PERL_LICENSE=0
%include-1%
# Force modulebuild build style
BUILD_STYLE = modulebuild
components/perl/Module-Build/perl-integrate-module.conf
@@ -14,7 +14,3 @@
#
%patch% LICENSE-is-useless.patch
%include-1%
# Force modulebuild build style
BUILD_STYLE = modulebuild
tools/perl-integrate-module
@@ -157,7 +157,7 @@
#   \$WS_TOOLS/perl-integrate-module $MODULE
#
BUILD_STYLE = makemaker
BUILD_STYLE = modulebuild
EOF
gsed -e '0,/^%include-1%/d' -e '/^%/,$d' < perl-integrate-module.conf
cat <<EOF
@@ -207,8 +207,8 @@
! gmake prep > /dev/null 2>&1 && printf "FATAL: 'gmake prep' failed!\n" >&2 && exit 1
SOURCE_DIR=$(gmake print-value-SOURCE_DIR)
# Switch to modulebuild if needed
[[ ! -f "$SOURCE_DIR/Makefile.PL" && -f "$SOURCE_DIR/Build.PL" ]] && sed -i -e 's/makemaker/modulebuild/g' Makefile
# Switch to makemaker if needed
[[ ! -f "$SOURCE_DIR/Build.PL" && -f "$SOURCE_DIR/Makefile.PL" ]] && sed -i -e 's/modulebuild/makemaker/g' Makefile
# Get abstract.  Either from metacpan, or directly from sources.
ABSTRACT=$(printf "%s" "$METACPAN_MODULE" | /usr/bin/jq -r '.abstract')