Skip to content

Fix POD links, declare non-core prereqs #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ my %WriteMakefileArgs = (
'ExtUtils::MakeMaker' => '0',
},
PREREQ_PM => {
'JSON::PP' => '2.0104',
'File::Path' => '2.07',
'version' => '0.77',
},
TEST_REQUIRES => {
'Test::Pod::LinkCheck::Lite' => '0',
},
EXE_FILES => ['script/apperlm'],
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
Expand Down Expand Up @@ -47,11 +53,23 @@ unless (eval { ExtUtils::MakeMaker->VERSION('6.55_03'); 1 }) {
@{$WriteMakefileArgs{PREREQ_PM}}{keys %$build_requires} = values %$build_requires;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 };
delete $WriteMakefileArgs{MIN_PERL_VERSION}
unless eval { ExtUtils::MakeMaker->VERSION('6.48'); 1 };
delete $WriteMakefileArgs{LICENSE}
unless eval { ExtUtils::MakeMaker->VERSION('6.31'); 1 };
my %min_eumm_version = (
CONFIGURE_REQUIRES => '6.52',
MIN_PERL_VERSION => '6.48',
LICENSE => '6.31',
META_MERGE => '6.46',
);
for my $parameter ( keys %min_eumm_version ) {
delete $WriteMakefileArgs{$parameter}
unless eval {
ExtUtils::MakeMaker->VERSION( $min_eumm_version{$parameter} );
1;
};
}

WriteMakefile(%WriteMakefileArgs);

sub MY::postamble {
return "authortest: test\n\tAUTHOR_TESTING=1 "
. $_[0]->test_via_harness( '$(FULLPERLRUN)', 'xt/author/*.t' );
}
28 changes: 14 additions & 14 deletions lib/Perl/Dist/APPerl.pm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package Perl::Dist::APPerl;
# Copyright (c) 2022 Gavin Hayes, see LICENSE in the root of the project
use version; our $VERSION = version->declare("v0.1.0");
use version 0.77; our $VERSION = qv(v0.1.0);
use strict;
use warnings;
use JSON::PP qw(decode_json);
use File::Path qw(make_path);
use JSON::PP 2.0104 qw(decode_json);
use File::Path 2.07 qw(make_path);
use Cwd qw(abs_path getcwd);
use Data::Dumper qw(Dumper);
use File::Basename qw(basename dirname);
Expand Down Expand Up @@ -1386,8 +1386,8 @@ chicken-and egg-situation of needing Perl to build APPerl, APPerl may
be bootstrapped from an existing build of APPerl. See README.md for
instructions.

Information on the creation of APPerl can be found in this
L<blogpost|https://computoid.com/posts/Perl-is-Actually-Portable.html>.
Information on the creation of APPerl can be found in this blog post:
L<https://computoid.com/posts/Perl-is-Actually-Portable.html>.

=head1 SYNOPSIS

Expand Down Expand Up @@ -1555,8 +1555,8 @@ builds, skipping the need for building Perl from scratch.

Enter your projects directory, create it if it doesn't exists. Download
or copy in an existing version of APPerl you wish to build off of.
Official builds are available on the
L<APPerl webpage| https://computoid.com/APPerl/>.
Official builds are available on the APPerl web page:
L<https://computoid.com/APPerl/>.
Create a new nobuild APPerl project and build it.

cd projectdir
Expand Down Expand Up @@ -1689,20 +1689,20 @@ Build and test it.

=head1 SUPPORT AND DOCUMENTATION

L<APPerl webpage|https://computoid.com/APPerl/>
APPerl web page: L<https://computoid.com/APPerl/>

Support and bug reports can be found at the repository
L<https://github.com/G4Vi/APPerl>
L<https://github.com/G4Vi/Perl-Dist-APPerl>

=head1 ACKNOWLEDGEMENTS

The L<Cosmopolitan Libc|https://github.com/jart/cosmopolitan>
contributors, especially L<Justine Tunney|https://justine.lol/> and
L<Gautham Venkatasubramanian|https://ahgamut.github.io>. APPerl
The Cosmopolitan Libc (L<https://github.com/jart/cosmopolitan>)
contributors, especially Justine Tunney (L<https://justine.lol/>) and
Gautham Venkatasubramanian (L<https://ahgamut.github.io>). APPerl
wouldn't be possible without Actually Portable Executables and
polyfills of several Linux and POSIX APIs for other platforms.
Gautham's
L<Python port|https://ahgamut.github.io/2021/07/13/ape-python/>
Gautham's Python port
(L<https://ahgamut.github.io/2021/07/13/ape-python/>)
inspired this project.

=head1 AUTHOR
Expand Down
9 changes: 9 additions & 0 deletions xt/author/pod_linkcheck.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use Test::Pod::LinkCheck::Lite;

Test::Pod::LinkCheck::Lite->new->all_pod_files_ok('.');
done_testing();