summaryrefslogtreecommitdiff
path: root/scripts/Build.PL.in
AgeCommit message (Collapse)AuthorFilesLines
2018-10-10build: Set locale for CPAN tests to CGuillem Jover1-0/+2
The test suite expects to run under the C locale. Fixes: https://rt.cpan.org/Ticket/Display.html?id=127314
2018-10-10build: Set environment variables only for CPAN testsGuillem Jover1-6/+8
All these environment variables are only relevant while running the test suite. Do not pollute the rest of the environment.
2018-10-08build: Improve test and author CPAN dependenciesGuillem Jover1-2/+20
Split the test recommends from the requires and add develop recommends into a prereqs metadata hierarchy.
2018-10-08build: Fix typo in CPAN recommends keyGuillem Jover1-1/+1
2018-10-08build: Add a release_status key to the CPAN metadataGuillem Jover1-0/+2
This will enable the -TRIAL versioning that CPAN uses to avoid indexing such releases.
2018-10-08build: Generalize PACKAGE_CPAN_SIGN by setting PACKAGE_DIST_IS_RELEASE insteadGuillem Jover1-1/+1
Set the more generic name from within DPKG_DIST_IS_RELEASE, and use that directly in the Build.PL.in file.
2018-09-26build: Distribute the data files from the CPAN Build.PL scriptGuillem Jover1-0/+4
When building the CPAN package, we need to also distribute the data files, otherwise the modules will not work correctly once installed.
2018-09-26build: Perform Dpkg module substitution during CPAN module buildingGuillem Jover1-0/+37
We had an empty do_perl_subst variable in the dist-cpan autotools target that resulted in copying an empty file, but that was shadowed by a subsequent copy of the original. So we were ending up with a pristine non-substituted file. We actually need to substitute the install paths during the CPAN module building to preserve system and user settings at that point. Otherwise the dpkg autotools configure settings might be completely out of touch with the settings from the system where the CPAN module gets built.
2018-08-30build: Only sign the perl distribution if we are doing an actual releaseGuillem Jover1-1/+1
Forcing the signing while not actually preparing a tarball for a release disitribution, that is due to a signed tag, means that any random «make distcheck» will trigger an annoying gpg prompt.
2018-07-30perl: Make Build.PL check Module::Build availability at run-timeGuillem Jover1-1/+5
Doing a normal import via use, means that we need the module to be present for the unit tests, when we only need it as part of the distribution process.
2018-05-03build: Add CPAN distribution machineryGuillem Jover1-0/+74
Add a new dist-cpan target that takes care of preparing a perl distribution to be uploaded to CPAN. Only the modules are shipped, some of which do require dpkg tools being installed though. Closes: #821177