[libalien-sdl-perl] 03/04: added patch to fix build option in Build.PL

dod at debian.org dod at debian.org
Thu Jun 19 11:25:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libalien-sdl-perl.

commit 18430f948a74285f864270f678b5347d7f40a3dc
Author: Dominique Dumont <dod at debian.org>
Date:   Thu Jun 19 13:05:57 2014 +0200

    added patch to fix build option in Build.PL
---
 debian/patches/fix-build-option | 31 +++++++++++++++++++++++++++++++
 debian/patches/series           |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/fix-build-option b/debian/patches/fix-build-option
new file mode 100644
index 0000000..7d58b8b
--- /dev/null
+++ b/debian/patches/fix-build-option
@@ -0,0 +1,31 @@
+Description: fix build option handling
+ GetOptions handles all command arguments without
+ letting Module::Build handles the options. One
+ should not use GetOptions with Module::Build options setup.
+ .
+ So I noved travis option spec into Module::Build
+Author: dod
+--- a/Build.PL
++++ b/Build.PL
+@@ -7,9 +7,7 @@
+ use My::Utility qw(check_config_script check_prebuilt_binaries check_prereqs_libs check_prereqs_tools $source_packs
+                    check_perl_buildlibs);
+ 
+-use Getopt::Long;
+ my ( $ans, $travis ) = 0;
+-GetOptions( "travis" => \$travis );
+ 
+ print "Welcome to Alien::SDL module installation\n";
+ print "-----------------------------------------\n";
+@@ -98,7 +96,10 @@
+       repository => 'http://github.com/PerlGameDev/Alien-SDL'
+     }
+   },
+-  get_options => { 'with-sdl-config' => { qw(type :s  store) => \$sdl_config } },
++  get_options => { 
++      'with-sdl-config' => { qw(type :s  store) => \$sdl_config },
++      'travis'          => { store => \$travis },
++  },
+   dynamic_config => 1,
+   create_readme => 1,
+   share_dir => 'sharedir',
diff --git a/debian/patches/series b/debian/patches/series
index f0c7595..c57f38f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+fix-build-option
 fix-spelling
 disable-rpath

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libalien-sdl-perl.git



More information about the Pkg-perl-cvs-commits mailing list