Skip to content

Commit f540845

Browse files
committed
switch to EUMM
1 parent 450efb7 commit f540845

File tree

13 files changed

+1530
-1407
lines changed

13 files changed

+1530
-1407
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.o
2+
*.obj
3+
*.pdb
4+
*.old
5+
*.tmp
6+
*.bak
7+
*.zip
8+
*.gz
9+
tmp*
10+
xxx*
11+
blib*
12+
pm_to_blib*
13+
META.yml
14+
MYMETA.yml
15+
META.json
16+
MYMETA.json
17+
Makefile
18+
Makefile.old
19+
MANIFEST.bak
20+
MANIFEST
21+
Portable-*

Changes

Lines changed: 95 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,97 @@
11
Changes for Perl extension Portable.
22

3-
1.22 Wed 9 Apr 2014
4-
- avoiding Parse::CPAN::Meta (collisions with cpanminus) - another UGLY HACK!!!
5-
6-
1.21 Wed 9 Apr 2014
7-
- avoiding Carp (due to Carp reload failures)
8-
9-
1.20 Mon 7 Apr 2014
10-
- missing test files
11-
12-
1.19 Sun 6 Apr 2014
13-
- fixing troubles/collisions/interferences with File::Spec in 5.19.10
14-
- introducing Portable::FileSpec which is Win32 ONLY!!!! (I know it is not good)
15-
16-
1.18 Mon 25 Feb 2013
17-
- eliminating warning
18-
19-
1.17 Wed 9 May 2012
20-
- just versioning fix
21-
22-
1.16 Tue 8 May 2012
23-
- Removing dependency on List::Util (KMX)
24-
- Removing "ALPHA" from NAME (KMX)
25-
26-
1.15 Wed 2 Nov 2011
27-
- Updated to Module::Install::DSL 1.04 (ADAMK)
28-
- Fixed #68937: $Config{libpth} not correctly transformed (KMX)
29-
30-
1.14 Wed 13 Apr 2011
31-
- Updating to Module::Install::DSL 1.00
32-
- Switching to a production release
33-
34-
0.13 Mon 1 Jun 2009
35-
- Updating to Module::Install::DSL 0.91
36-
- Supports running the test suite while offline
37-
- Adding no_conn_cache support to minicpan
38-
39-
0.12 Mon 9 Feb 2009
40-
- Upgrading to Module::Install 0.79
41-
- Adding a globally-accessible $Portable::ENABLED variable that
42-
external module can use to detect if Portable mode is enabled.
43-
44-
0.11 Wed 2 Jul 2008
45-
- Debugged the minicpan backend to the point where it will
46-
actually build and install properly.
47-
48-
0.10 Wed 2 Jul 2008
49-
- Working on a proper implementation of the minicpan backend.
50-
- Added missing test_requires Test::Exception.
51-
52-
0.09 Wed 2 Jul 2008
53-
- Fixing my_documents, my_data, etc in Portable::HomeDir.
54-
- Implementing my_data also fixes Portable::CPAN.
55-
- Adding CPAN::Mini as a dependency for that backend.
56-
57-
0.08 Tue 1 Jul 2008
58-
- Adding a dependency on a new version of File::HomeDir.
59-
60-
0.07 Sun 20 Jun 2008
61-
- Bug fix to make the CPAN driver test optional.
62-
(Avoids breaking CPAN Testers)
63-
64-
0.06 Sat 28 Jun 2008
65-
- Satisfactorily completed the Config.pm hook.
66-
- Satisfactorily completed the File::HomeDir hook.
67-
- Some test tweaks to make them actually work.
68-
69-
0.05 Sun 27 Apr 2008
70-
- Don't preload the configurations.
71-
(Delay until the final ->apply is called)
72-
- Import now takes backend names as params.
73-
(Allows appending "use Portable 'Config';" to Config.pm etc)
74-
- Adding tests for the new interfaces.
75-
- Disable warnings when playing around with Config::STORE.
76-
- Completing the implementation of Portable::CPAN.
77-
- A variety of functionality bug fixes.
78-
79-
0.04 Wed 23 Apr 2008
80-
- Separating out each task into a separate class.
81-
- Making the overwriting of CPAN::Config optional,
82-
because (at least theoretically) it doesn't always exist.
83-
84-
0.03 Tue 22 Apr 2008
85-
- Moving the name from Perl::Portable to Portable.
86-
- Adding proper support for Portable'ing CPAN::Config.
87-
- Removing dependency bloat, use only 5.10.1 core modules.
88-
89-
0.02 Mon 21 Apr 2008
90-
- Completely changed the portable.perl format to be based on
91-
Config.pm instead of some arbitrary format I invented myself.
92-
93-
0.01 Fri 18 Apr 2008
94-
- Experimental first release.
3+
1.23 2020-NEXT
4+
- switch to EUMM
5+
6+
1.22 2014-04-09
7+
- avoiding Parse::CPAN::Meta (collisions with cpanminus) - another UGLY HACK!!!
8+
9+
1.21 2014-04-09
10+
- avoiding Carp (due to Carp reload failures)
11+
12+
1.20 2014-04-07
13+
- missing test files
14+
15+
1.19 2014-04-06
16+
- fixing troubles/collisions/interferences with File::Spec in 5.19.10
17+
- introducing Portable::FileSpec which is Win32 ONLY!!!! (I know it is not good)
18+
19+
1.18 2013-02-25
20+
- eliminating warning
21+
22+
1.17 2012-05-09
23+
- just versioning fix
24+
25+
1.16 2012-05-08
26+
- Removing dependency on List::Util (KMX)
27+
- Removing "ALPHA" from NAME (KMX)
28+
29+
1.15 2011-11-02
30+
- Updated to Module::Install::DSL 1.04 (ADAMK)
31+
- Fixed #68937: $Config{libpth} not correctly transformed (KMX)
32+
33+
1.14 2011-04-13
34+
- Updating to Module::Install::DSL 1.00
35+
- Switching to a production release
36+
37+
0.13 2009-06-01
38+
- Updating to Module::Install::DSL 0.91
39+
- Supports running the test suite while offline
40+
- Adding no_conn_cache support to minicpan
41+
42+
0.12 2009-02-09
43+
- Upgrading to Module::Install 0.79
44+
- Adding a globally-accessible $Portable::ENABLED variable that
45+
external module can use to detect if Portable mode is enabled.
46+
47+
0.11 2008-07-02
48+
- Debugged the minicpan backend to the point where it will
49+
actually build and install properly.
50+
51+
0.10 2008-07-02
52+
- Working on a proper implementation of the minicpan backend.
53+
- Added missing test_requires Test::Exception.
54+
55+
0.09 2008-07-02
56+
- Fixing my_documents, my_data, etc in Portable::HomeDir.
57+
- Implementing my_data also fixes Portable::CPAN.
58+
- Adding CPAN::Mini as a dependency for that backend.
59+
60+
0.08 2008-07-01
61+
- Adding a dependency on a new version of File::HomeDir.
62+
63+
0.07 2008-06-20
64+
- Bug fix to make the CPAN driver test optional.
65+
(Avoids breaking CPAN Testers)
66+
67+
0.06 2008-06-28
68+
- Satisfactorily completed the Config.pm hook.
69+
- Satisfactorily completed the File::HomeDir hook.
70+
- Some test tweaks to make them actually work.
71+
72+
0.05 2008-04-27
73+
- Don't preload the configurations.
74+
(Delay until the final ->apply is called)
75+
- Import now takes backend names as params.
76+
(Allows appending "use Portable 'Config';" to Config.pm etc)
77+
- Adding tests for the new interfaces.
78+
- Disable warnings when playing around with Config::STORE.
79+
- Completing the implementation of Portable::CPAN.
80+
- A variety of functionality bug fixes.
81+
82+
0.04 2008-04-23
83+
- Separating out each task into a separate class.
84+
- Making the overwriting of CPAN::Config optional,
85+
because (at least theoretically) it doesn't always exist.
86+
87+
0.03 2008-04-22
88+
- Moving the name from Perl::Portable to Portable.
89+
- Adding proper support for Portable'ing CPAN::Config.
90+
- Removing dependency bloat, use only 5.10.1 core modules.
91+
92+
0.02 2008-04-21
93+
- Completely changed the portable.perl format to be based on
94+
Config.pm instead of some arbitrary format I invented myself.
95+
96+
0.01 2008-04-18
97+
- Experimental first release.

MANIFEST.SKIP

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Avoid version control files.
2+
\B\.svn\b
3+
\B\.git\b
4+
\B\.gitignore\b
5+
6+
# Avoid CI files
7+
^.travis*
8+
^.appveyor*
9+
10+
# Avoid Makemaker generated and utility files.
11+
\bblib/
12+
\bMakeMaker-\d
13+
\bpm_to_blib\.ts$
14+
\bpm_to_blib$
15+
\bblibdirs\.ts$ # 6.18 through 6.25 generated this
16+
\bMakefile$
17+
\bMANIFEST\.bak$
18+
\bMANIFEST\.SKIP$
19+
\bMETA_new\.json$
20+
\bMETA_new\.yml$
21+
\bMYMETA\.yml$
22+
\bMYMETA\.json$
23+
24+
# Avoid temp and backup files.
25+
\.old$
26+
\.tmp$
27+
\.bak$
28+
29+
# Avoid our own built files.
30+
\APortable-

Makefile.PL

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
1-
use inc::Module::Install::DSL 1.04;
2-
3-
all_from lib/Portable.pm
4-
requires_from lib/Portable.pm
5-
requires_from lib/Portable/HomeDir.pm
6-
requires_from lib/CPAN/Mini/Portable.pm
7-
test_requires Test::More 0.42
8-
test_requires Test::NoWarnings 0.084
9-
test_requires Test::Exception 0.27
10-
test_requires Class::Inspector 1.22
11-
test_requires LWP::Online 1.07
1+
use 5.008;
2+
use strict;
3+
use warnings;
4+
use ExtUtils::MakeMaker;
5+
6+
WriteMakefile(
7+
NAME => 'Portable',
8+
VERSION_FROM => 'lib/Portable.pm',
9+
AUTHOR => 'KMX',
10+
ABSTRACT => 'Perl on a Stick',
11+
MIN_PERL_VERSION => '5.008',
12+
LICENSE => 'perl',
13+
PREREQ_PM => {
14+
'CPAN::Mini' => '0.575',
15+
},
16+
BUILD_REQUIRES => {
17+
'ExtUtils::MakeMaker' => '6.59',
18+
'Class::Inspector' => '1.22',
19+
'LWP::Online' => '1.07',
20+
'Test::Exception' => '0.27',
21+
'Test::More' => '0.42',
22+
'Test::NoWarnings' => '0.084',
23+
},
24+
META_MERGE => {
25+
resources => {
26+
repository => 'https://github.com/StrawberryPerl/Portable',
27+
bugtracker => 'https://github.com/StrawberryPerl/Portable/issues',
28+
},
29+
},
30+
dist => {
31+
PREOP => 'perldoc -u lib/Portable.pm | pod2markdown > README.md',
32+
TAR => 'ptar',
33+
TARFLAGS => '-c -C -f'
34+
},
35+
);

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# NAME
2+
3+
Portable - Perl on a Stick
4+
5+
# SYNOPSIS
6+
7+
Launch a script portably
8+
9+
F:\anywhere\perl.exe -MPortable script.pl
10+
11+
Have a script specifically request to run portably
12+
13+
#!/usr/bin/perl
14+
use Portable;
15+
16+
# DESCRIPTION
17+
18+
"Portable" is a term used for applications that are installed onto a
19+
portable storage device (most commonly a USB memory stick) rather than
20+
onto a single host.
21+
22+
This technique has become very popular for Windows applications, as it
23+
allows a user to make use of their own software on typical publically
24+
accessible computers at libraries, hotels and internet cafes.
25+
26+
Converting a Windows application into portable form has a specific set
27+
of challenges, as the application has no access to the Windows registry,
28+
no access to "My Documents" type directories, and does not exist at a
29+
reliable filesystem path (because the portable storage medium can be
30+
mounted at an arbitrary volume or filesystem location).
31+
32+
**Portable** provides a methodology and implementation to support
33+
the creating of "Portable Perl" applications and distributions.
34+
35+
While this will initially be focused on a Windows implementation,
36+
wherever possible the module will be built to be platform-agnostic
37+
in the hope that future versions can support other operating systems,
38+
or work across multiple operating systems.
39+
40+
This module is not ready for public use. For now, see the code for
41+
more details on how it works...
42+
43+
# METHODS
44+
45+
# AUTHOR
46+
47+
Adam Kennedy <adamk@cpan.org>
48+
49+
# COPYRIGHT
50+
51+
Copyright 2008 - 2011 Adam Kennedy.
52+
53+
This program is free software; you can redistribute
54+
it and/or modify it under the same terms as Perl itself.
55+
56+
The full text of the license can be found in the
57+
LICENSE file included with this module.

lib/CPAN/Mini/Portable.pm

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
package CPAN::Mini::Portable;
2-
3-
use 5.008;
4-
use strict;
5-
use warnings;
6-
use Portable ();
7-
use CPAN::Mini 0.575 ();
8-
9-
our $VERSION = '1.22';
10-
our @ISA = 'CPAN::Mini';
11-
12-
sub new {
13-
# Use the portable values as defaults,
14-
# completely ignoring any passed params
15-
my $minicpan = Portable->default->minicpan;
16-
17-
# Hand off to the parent class
18-
return $_[0]->SUPER::new( %$minicpan );
19-
}
20-
21-
1;
1+
package CPAN::Mini::Portable;
2+
3+
use 5.008;
4+
use strict;
5+
use warnings;
6+
use Portable ();
7+
use CPAN::Mini 0.575 ();
8+
9+
our $VERSION = '1.22';
10+
our @ISA = 'CPAN::Mini';
11+
12+
sub new {
13+
# Use the portable values as defaults,
14+
# completely ignoring any passed params
15+
my $minicpan = Portable->default->minicpan;
16+
17+
# Hand off to the parent class
18+
return $_[0]->SUPER::new( %$minicpan );
19+
}
20+
21+
1;

0 commit comments

Comments
 (0)