Permalink
Browse files

Building pretty much perfect for now

  • Loading branch information...
1 parent 5ddc2fe commit 2c4de4afaa3f173e82b4b840b23adf7b708ce986 @Blaizer committed Oct 3, 2011
Showing with 27 additions and 10 deletions.
  1. +13 −9 Build.PL
  2. +3 −0 README
  3. +10 −0 inc/My/Module/Build.pm
  4. +1 −1 lib/pods/Games/Neverhood.pod
  5. 0 {lib/Games/Neverhood → }/ppport.h
View
@@ -6,29 +6,33 @@ use My::Module::Build;
use Alien::SDL;
my $build = My::Module::Build->new(
- module_name => 'Games::Neverhood',
- license => 'perl',
- share_dir => 'share',
+ module_name => 'Games::Neverhood',
+ dist_abstract => 'The Neverhood remade in SDL Perl',
+ license => 'perl',
+ share_dir => 'share',
requires => {
'perl' => 5.010,
'SDL' => 2.534,
'File::ShareDir' => 0,
},
+ configure_requires => { 'Module::Build' => 0.38 },
extra_linker_flags => [ Alien::SDL->config('libs') ],
extra_compiler_flags => [ Alien::SDL->config('cflags') ],
+ include_dirs => [ '.' ],
typemap_files => { 'typemap' => 'lib/Games/Neverhood/typemap' },
- meta_merge => {
- resources => {
- license => 'http://dev.perl.org/licenses/',
- repository => 'http://github.com/Blaizer/Neverhood',
- },
- },
add_to_cleanup => [
'MANIFEST',
+ 'MANIFEST.bak',
'META.yml',
'META.json',
'lib/Games/Neverhood/typemap',
],
+ meta_merge => {
+ resources => {
+ license => 'http://dev.perl.org/licenses/',
+ repository => 'http://github.com/Blaizer/Neverhood',
+ },
+ },
);
$build->add_build_element('typemap');
View
3 README
@@ -10,6 +10,9 @@ To install the game:
Once installed, run the game with:
nhc
+And to uninstall it:
+ ./Build uninstall
+
Press Alt-F4 at any time to quit.
View
@@ -7,6 +7,16 @@ use autodie ':all';
$ENV{SDL_VIDEODRIVER} = 'dummy';
$ENV{SDL_AUDIODRIVER} = 'dummy';
+=pod
+
+=item uninstall
+
+[version 0.01]
+
+This action will find the .packlist file made when the distribution was installed and attempt to delete all files listed in it. The process of finding the .packlist file requires the module to be installed, so you will need to install the distribution again to reatempt an uninstall.
+
+=cut
+
sub ACTION_uninstall {
require File::ShareDir;
require File::Spec;
@@ -2,7 +2,7 @@
=head1 NAME
-Games::Neverhood - The Neverhood - gloriously remade in Perl
+Games::Neverhood - The Neverhood remade in SDL Perl
=head1 AUTHOR
File renamed without changes.

0 comments on commit 2c4de4a

Please sign in to comment.