123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- use strict;
- use warnings;
- use Module::Build;
- use lib "t";
- use lib "bin";
- my $build = Module::Build->new(
- module_name => 'Stow',
- keywords => [ qw/stow symlink software package management install/ ],
- license => 'gpl',
-
-
-
-
-
-
- meta_add => {
- resources => {
- license => 'http://www.gnu.org/licenses/gpl-2.0.html' ,
- homepage => 'https://savannah.gnu.org/projects/stow',
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- repository => 'git://git.savannah.gnu.org/stow.git',
- },
- },
- requires => {
- 'perl' => '5.006',
- 'Carp' => 0,
- 'IO::File' => 0,
- },
- script_files => [ 'bin/stow', 'bin/chkstow' ],
- all_from => 'lib/Stow.pm.in',
- configure_requires => {
- 'Module::Build' => 0,
- },
- build_requires => {
- 'Test::More' => 0,
- 'Test::Output' => 0,
- 'IO::Scalar' => 0,
- },
- );
- if (system('grep', '-q', '^use lib ', 'bin/stow') >> 8 == 0) {
- die <<'EOF';
- ERROR: bin/stow contains 'use lib' line which could interfere
- with CPAN-style installation via Module::Build. To avoid this,
- you should run ./configure with parameters which result in
- --with-pmdir's value being in Perl's built-in @INC, and then run
- 'make' (NOT 'make install') to regenerate bin/stow, e.g.
- eval `perl -V:siteprefix`
- ./configure --prefix=$siteprefix && make
- or
- ./configure --with-pmdir=`PERL5LIB= perl -le 'print $INC[0]'` && make
- Then re-run this script.
- Note that these parameters are chosen purely to regenerate
- bin/stow without a 'use lib' line, so don't run 'make install'
- while Stow is configured in this way unless you really want an
- installation using these parameters.
- EOF
- }
- $build->create_build_script();
|