[SCM] Packaging of frozen-bubble game in Debian branch, master, updated. f38c1fc1fa0484f8f78877f1634ef2a508646e04

Dominique Dumont dod at debian.org
Tue Mar 6 13:13:15 UTC 2012


The following commit has been merged in the master branch:
commit 973575a74dbd3c9db569a1ea754d70c69d708542
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Mar 2 13:42:34 2012 +0100

    added patch to correctly install shared files

diff --git a/debian/patches/fix-share-dir-install-path b/debian/patches/fix-share-dir-install-path
new file mode 100644
index 0000000..c55a5e1
--- /dev/null
+++ b/debian/patches/fix-share-dir-install-path
@@ -0,0 +1,55 @@
+--- a/Build.PL
++++ b/Build.PL
+@@ -9,10 +9,23 @@
+ use Config qw(%Config);
+ use My::Builder;
+ use ExtUtils::CBuilder qw();
++use Path::Class qw(dir);
+ 
+ use lib 'lib';
+ use Games::FrozenBubble;
+ 
++my $share_dir = dir('share') ;
++my %shared_files ;
++$share_dir->traverse(sub {
++	my ($child, $cont) = @_;
++    if (not $child->is_dir) {
++		print "found shared $child\n";
++		$shared_files{$child} = "$child" ;
++	}
++	$cont->(); # continue traversal
++} ) ;
++
++
+ my $prefix = Alien::SDL->config('prefix');
+ my $cflags = '-I'
+   . File::Spec->catfile( $prefix, 'include' )
+@@ -41,7 +54,7 @@
+ if( $CPAN_test_NA ){ warn $CPAN_test_NA; exit(0) }
+ 
+ 
+-My::Builder->new(
++my $build = My::Builder->new(
+     add_to_cleanup => [
+         'lib/Games/FrozenBubble/CStuff.c',
+         'lib/Games/FrozenBubble/CStuff.o',
+@@ -67,7 +80,9 @@
+     },
+     module_name => 'Games::FrozenBubble',
+     dist_version => $Games::FrozenBubble::VERSION,
+-    share_dir => 'share',
++	# share_dir won't let me install in /usr/share/games :-(
++	# share_dir => 'share',
++	shared_files => \%shared_files ,
+     no_index  => { directory => [ 'server' ] }, # tell PAUSE to not index 'server' subdirectory
+     configure_requires => { #need to have for running: perl Buil.PL
+         'perl'                      => '5.008',
+@@ -142,4 +157,7 @@
+         'IPC::System::Simple'       => 0,
+ 
+     },
+-)->create_build_script;
++);
++
++$build->add_build_element('shared') ;
++$build->create_build_script;
diff --git a/debian/patches/series b/debian/patches/series
index e3e1c7f..240a1ac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+fix-share-dir-install-path
 total_bubbles
 de_po

-- 
Packaging of frozen-bubble game in Debian



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