pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/perl5



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Nov 16 11:55:58 UTC 2024

Modified Files:
        pkgsrc/lang/perl5: Makefile module.mk

Log Message:
perl5: pkglint -F


To generate a diff of this commit:
cvs rdiff -u -r1.279 -r1.280 pkgsrc/lang/perl5/Makefile
cvs rdiff -u -r1.76 -r1.77 pkgsrc/lang/perl5/module.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/perl5/Makefile
diff -u pkgsrc/lang/perl5/Makefile:1.279 pkgsrc/lang/perl5/Makefile:1.280
--- pkgsrc/lang/perl5/Makefile:1.279    Sat Nov 16 11:54:24 2024
+++ pkgsrc/lang/perl5/Makefile  Sat Nov 16 11:55:57 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.279 2024/11/16 11:54:24 wiz Exp $
+# $NetBSD: Makefile,v 1.280 2024/11/16 11:55:57 wiz Exp $
 
 .include "license.mk"
 .include "Makefile.common"
@@ -55,7 +55,7 @@ CONFIGURE_ARGS.SunOS+=        -Aundef:csh
 
 # As of 5.40.0
 # with
-#ALLOW_NETWORK_ACCESS=yes
+#ALLOW_NETWORK_ACCESS= yes
 # Failed 2 tests out of 2733, 99.93% okay.
 #         porting/customized.t
 #         porting/regen.t

Index: pkgsrc/lang/perl5/module.mk
diff -u pkgsrc/lang/perl5/module.mk:1.76 pkgsrc/lang/perl5/module.mk:1.77
--- pkgsrc/lang/perl5/module.mk:1.76    Tue Jun  6 12:41:45 2023
+++ pkgsrc/lang/perl5/module.mk Sat Nov 16 11:55:57 2024
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.76 2023/06/06 12:41:45 riastradh Exp $
+# $NetBSD: module.mk,v 1.77 2024/11/16 11:55:57 wiz Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install perl5 modules.
@@ -45,31 +45,31 @@ PERL5_MODULE_MK=    # defined
 
 PERL5_MODULE_TYPE?=            MakeMaker
 
-.if (${PERL5_MODULE_TYPE} != "MakeMaker") && \
+.  if (${PERL5_MODULE_TYPE} != "MakeMaker") && \
     (${PERL5_MODULE_TYPE} != "Module::Build") && \
     (${PERL5_MODULE_TYPE} != "Module::Build::Bundled") && \
     (${PERL5_MODULE_TYPE} != "Module::Build::Tiny") && \
     (${PERL5_MODULE_TYPE} != "Module::Install") && \
     (${PERL5_MODULE_TYPE} != "Module::Install::Bundled")
 PKG_FAIL_REASON+=      "\`\`${PERL5_MODULE_TYPE}'' is not a supported PERL5_MODULE_TYPE."
-.endif
+.  endif
 
 # Default test target for Perl modules
 TEST_TARGET?=          test
 
 .include "../../mk/compiler.mk"
 
-.if ${PERL5_MODULE_TYPE} == "Module::Build" || \
+.  if ${PERL5_MODULE_TYPE} == "Module::Build" || \
     ${PERL5_MODULE_TYPE} == "Module::Build::Bundled" || \
     ${PERL5_MODULE_TYPE} == "Module::Build::Tiny"
 PERL5_MODTYPE=         modbuild
 PERL5_MODBUILD_DESTDIR_OPTION= --destdir ${DESTDIR:Q}
-.elif ${PERL5_MODULE_TYPE} == "Module::Install" || \
+.  elif ${PERL5_MODULE_TYPE} == "Module::Install" || \
       ${PERL5_MODULE_TYPE} == "Module::Install::Bundled"
 PERL5_MODTYPE=         modinst
-.elif ${PERL5_MODULE_TYPE} == "MakeMaker"
+.  elif ${PERL5_MODULE_TYPE} == "MakeMaker"
 PERL5_MODTYPE=         makemaker
-.endif
+.  endif
 
 
 ###########################################################################
@@ -81,20 +81,20 @@ PERL5_MODTYPE=              makemaker
 BUILDLINK_DEPMETHOD.perl+=     full
 .include "../../lang/perl5/buildlink3.mk"
 
-.if ${PKGPATH} != devel/p5-Module-Build && \
+.  if ${PKGPATH} != devel/p5-Module-Build && \
     (${PERL5_MODULE_TYPE} == "Module::Build")
 TOOL_DEPENDS+=         p5-Module-Build>=0.42050:../../devel/p5-Module-Build
-.endif
+.  endif
 
-.if ${PKGPATH} != devel/p5-Module-Build-Tiny && \
+.  if ${PKGPATH} != devel/p5-Module-Build-Tiny && \
     (${PERL5_MODULE_TYPE} == "Module::Build::Tiny")
 TOOL_DEPENDS+=         p5-Module-Build-Tiny>=0.23:../../devel/p5-Module-Build-Tiny
-.endif
+.  endif
 
-.if ${PKGPATH} != devel/p5-Module-Install && \
+.  if ${PKGPATH} != devel/p5-Module-Install && \
     (${PERL5_MODULE_TYPE} == "Module::Install")
 TOOL_DEPENDS+=         p5-Module-Install>=0.91:../../devel/p5-Module-Install
-.endif
+.  endif
 
 
 ###########################################################################
@@ -143,7 +143,7 @@ do-modbuild-configure:
 
 .PHONY: do-modinst-configure
 do-modinst-configure:
-.if ${PERL5_MODULE_TYPE} == "Module::Install"
+.  if ${PERL5_MODULE_TYPE} == "Module::Install"
        ${RUN}                                                          \
        for dir in ${PERL5_CONFIGURE_DIRS}; do                          \
                cd ${WRKSRC};                                           \
@@ -156,7 +156,7 @@ do-modinst-configure:
                                ${BUILDLINK_PREFIX.perl}/bin/perl Makefile.PL --skipdeps ${MAKE_PARAMS};        \
                fi;                                                     \
        done
-.else
+.  else
        ${RUN}                                                          \
        for dir in ${PERL5_CONFIGURE_DIRS}; do                          \
                cd ${WRKSRC};                                           \
@@ -166,14 +166,14 @@ do-modinst-configure:
                                ${BUILDLINK_PREFIX.perl}/bin/perl Makefile.PL --skipdeps ${MAKE_PARAMS};        \
                fi;                                                     \
        done
-.endif
+.  endif
 
 .PHONY: perl5-configure
 perl5-configure: do-${PERL5_MODTYPE}-configure
 
-.if !empty(PERL5_CONFIGURE:M[yY][eE][sS])
+.  if !empty(PERL5_CONFIGURE:M[yY][eE][sS])
 do-configure: perl5-configure
-.endif
+.  endif
 
 .PHONY: do-modbuild-build
 do-modbuild-build:
@@ -187,13 +187,13 @@ do-modbuild-test:
 do-modbuild-install:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install ${PERL5_MODBUILD_DESTDIR_OPTION} ${BUILD_PARAMS}
 
-.if target(do-${PERL5_MODTYPE}-build) && !defined(NO_BUILD)
+.  if target(do-${PERL5_MODTYPE}-build) && !defined(NO_BUILD)
 do-build: do-${PERL5_MODTYPE}-build
 do-test: do-${PERL5_MODTYPE}-test
-.endif
-.if target(do-${PERL5_MODTYPE}-install)
+.  endif
+.  if target(do-${PERL5_MODTYPE}-install)
 do-install: do-${PERL5_MODTYPE}-install
-.endif
+.  endif
 
 
 ###########################################################################
@@ -206,19 +206,19 @@ do-install: do-${PERL5_MODTYPE}-install
 # respectively.
 #
 PERL5_MAKE_FLAGS.makemaker+=   OPTIMIZE=${CFLAGS:Q}" "${CPPFLAGS:Q}
-.if ${OBJECT_FMT} == "a.out"
+.  if ${OBJECT_FMT} == "a.out"
 PERL5_MAKE_FLAGS.makemaker+=   OTHERLDFLAGS=${LDFLAGS:S/-Wl,//g:Q}
-.else
+.  else
 PERL5_MAKE_FLAGS.makemaker+=   OTHERLDFLAGS=${LDFLAGS:Q}
-.endif
+.  endif
 
 # Repoint all of the vendor-specific variables to be under the perl5
 # module's ${PREFIX}.
 #
 .include "../../lang/perl5/vars.mk"
-.for _var_ in ${_PERL5_VARS}
+.  for _var_ in ${_PERL5_VARS}
 PERL5_MAKE_FLAGS.makemaker+=   ${_var_}=${PERL5_${_var_}:Q}
-.endfor
+.  endfor
 #
 # The PREFIX in the generated Makefile will point to ${PERL5_PREFIX},
 # so override its value to the module's ${PREFIX}.
@@ -229,10 +229,10 @@ PERL5_MAKE_FLAGS.makemaker+=      PREFIX=${PR
 PERL5_MAKE_FLAGS+=     ${PERL5_MAKE_FLAGS.${PERL5_MODTYPE}}
 MAKE_FLAGS+=           ${PERL5_MAKE_FLAGS}
 
-.if defined(PERL5_LDFLAGS) && !empty(PERL5_LDFLAGS)
+.  if !empty(PERL5_LDFLAGS)
 #FIX_RPATH+=   PERL5_LDFLAGS
 LDFLAGS+=      ${PERL5_LDFLAGS}
-.endif
+.  endif
 
 .include "../../lang/perl5/packlist.mk"
 



Home | Main Index | Thread Index | Old Index