Gentoo Archives: gentoo-commits

From: "Vladimir Smirnov (civil)" <civil@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-perl/Alien-SDL/files: Alien-SDL-1.444.0-fix-build-option.patch
Date: Sun, 08 Feb 2015 14:11:09
Message-Id: 20150208141103.C07B711534@oystercatcher.gentoo.org
1 civil 15/02/08 14:11:03
2
3 Added: Alien-SDL-1.444.0-fix-build-option.patch
4 Log:
5 Add patch from debian to fix package's build system
6
7 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0xC47990C2)
8
9 Revision Changes Path
10 1.1 dev-perl/Alien-SDL/files/Alien-SDL-1.444.0-fix-build-option.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/Alien-SDL/files/Alien-SDL-1.444.0-fix-build-option.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/Alien-SDL/files/Alien-SDL-1.444.0-fix-build-option.patch?rev=1.1&content-type=text/plain
14
15 Index: Alien-SDL-1.444.0-fix-build-option.patch
16 ===================================================================
17 Description: fix build option handling
18 GetOptions handles all command arguments without
19 letting Module::Build handles the options. One
20 should not use GetOptions with Module::Build options setup.
21 .
22 So I noved travis option spec into Module::Build
23 Author: dod
24 --- a/Build.PL
25 +++ b/Build.PL
26 @@ -7,9 +7,7 @@
27 use My::Utility qw(check_config_script check_prebuilt_binaries check_prereqs_libs check_prereqs_tools $source_packs
28 check_perl_buildlibs);
29
30 -use Getopt::Long;
31 my ( $ans, $travis ) = 0;
32 -GetOptions( "travis" => \$travis );
33
34 print "Welcome to Alien::SDL module installation\n";
35 print "-----------------------------------------\n";
36 @@ -98,7 +96,10 @@
37 repository => 'http://github.com/PerlGameDev/Alien-SDL'
38 }
39 },
40 - get_options => { 'with-sdl-config' => { qw(type :s store) => \$sdl_config } },
41 + get_options => {
42 + 'with-sdl-config' => { qw(type :s store) => \$sdl_config },
43 + 'travis' => { store => \$travis },
44 + },
45 dynamic_config => 1,
46 create_readme => 1,
47 share_dir => 'sharedir',