cvs commit: p5ee/App-Options Build.PL META.yml

[email protected] (Stephen Adkins)
Newsgroups perl.cvs.p5ee
Message-ID <[email protected]>
cvsuser     05/01/14 05:55:35

  Added:       App-Options Build.PL META.yml
  Log:
  new
  
  Revision  Changes    Path
  1.1                  p5ee/App-Options/Build.PL
  
  Index: Build.PL
  ===================================================================
  
  use Module::Build;
  
  # Enable the continued use of the PREFIX=$PREFIX option
  # (from Makefile.PL and ExtUtils::MakeMaker) by making it
  # an alias for the "install_base" option of Module::Build.
  
  # Also, install scripts into $PREFIX/bin, not $PREFIX/scripts.
  
  my (@extra_args);
  foreach my $arg (@ARGV) {
      if ($arg =~ s!^PREFIX=(.*)!install_base=$1!i) {
          @extra_args = (
              install_path => {bin => "$1/bin"},
          );
      }
      elsif ($arg =~ m!^install_base=(.*)!) {
          # Install scripts into $PREFIX/bin, not $PREFIX/scripts
          @extra_args = (
              install_path => {bin => "$1/bin"},
          );
      }
  }
  
  my $build = Module::Build->new (
      dist_name         => "App-Options",
      dist_version_from => "lib/App/Options.pm",
      dist_author       => "[email protected]",
      license           => "perl",
      requires => {
          "Carp"           => 0,  # use croak() instead of die()
          "Sys::Hostname"  => 0,  # use hostname() to get hostname/host options
          "Cwd"            => 0,  # use abs_path() to turn relative to absolute directory
          "File::Spec"     => 0,  # make directory handling work cross-platform (i.e. MSWin)
          "Config"         => 0,  # find prefix directory for the installation of perl
      },
      @extra_args,
  );
  
  $build->create_build_script;
  
  
  
  
  1.1                  p5ee/App-Options/META.yml
  
  Index: META.yml
  ===================================================================
  --- #YAML:1.0
  name: App-Options
  version: 0.94
  author:
    - stephen.adkins.com
  abstract: |-
    combine command line options, environment vars, and option file values
  license: perl
  requires:
    Carp: 0
    Config: 0
    Cwd: 0
    File::Spec: 0
    Sys::Hostname: 0
  provides:
    App::Options:
      file: lib/App/Options.pm
      version: 0.94
  generated_by: Module::Build version 0.2607
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.