[SCM] Packaging of frozen-bubble game in Debian branch, master, updated. debian/2.212-2-7-g85cba85
Dominique Dumont
dod at debian.org
Sun Jun 17 16:31:42 UTC 2012
The following commit has been merged in the master branch:
commit 927348178341f91b8bd6ebb8ceba9b0b060dc49c
Author: Dominique Dumont <dod at debian.org>
Date: Sun Jun 17 18:30:32 2012 +0200
new kick-out-accelerometers patch: ignore accelerometers disguised as joystick (Closes: #664546)
diff --git a/debian/patches/kick-out-accelerometers b/debian/patches/kick-out-accelerometers
new file mode 100644
index 0000000..3a57176
--- /dev/null
+++ b/debian/patches/kick-out-accelerometers
@@ -0,0 +1,14 @@
+--- a/bin/frozen-bubble
++++ b/bin/frozen-bubble
+@@ -2680,8 +2680,9 @@
+ my $joys = SDL::Joystick::num_joysticks();
+ $joysticksinfo and print "\nfound $joys joystick(s)\n";
+ for (my $i = 0; $i < $joys; $i++) {
+- push @joysticks, SDL::Joystick->new($i);
+- $joysticksinfo and print "\t" . ($i + 1) . ': ' . (SDL::Joystick::name(SDL::Joystick::index($joysticks[$i])) || 'unknown joystick') . "\n";
++ my $jname = SDL::Joystick::name(SDL::Joystick::index($joysticks[$i])) || 'unknown joystick' ;
++ push @joysticks, SDL::Joystick->new($i) unless $jname =~ /accelerometer/i;
++ $joysticksinfo and print "\t" . ($i + 1) . ": $jname\n";
+ }
+ $frame = 0;
+
diff --git a/debian/patches/series b/debian/patches/series
index 8ba2559..e1d4a6c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ total_bubbles
de_po
spelling-error-in-manpage.patch
shorter-nick
+kick-out-accelerometers
--
Packaging of frozen-bubble game in Debian
More information about the Pkg-perl-cvs-commits
mailing list