summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/Build.PL
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-07-07 14:07:06 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-07-07 14:07:06 -0700
commit4fa79cd01321b079ad94c6041038bd3a7dcc0958 (patch)
tree5c55ffa7d5f06827a18a9c38e953226160530fa9 /usr/src/libpiny/Build.PL
parent7b243125659e9a13126198b2b790a697552d59e5 (diff)
downloadpiny-code-4fa79cd01321b079ad94c6041038bd3a7dcc0958.tar.gz
piny-code-4fa79cd01321b079ad94c6041038bd3a7dcc0958.zip
Lots more ikiwiki integration stuff in libpiny.
Diffstat (limited to 'usr/src/libpiny/Build.PL')
-rw-r--r--usr/src/libpiny/Build.PL32
1 files changed, 26 insertions, 6 deletions
diff --git a/usr/src/libpiny/Build.PL b/usr/src/libpiny/Build.PL
index 09cf3fb..bfb5fd7 100644
--- a/usr/src/libpiny/Build.PL
+++ b/usr/src/libpiny/Build.PL
@@ -1,10 +1,30 @@
use Module::Build;
-Module::Build->new
- ( module_name => 'Piny'
- , license => 'BSD-3'
- , dist_version => '0.6'
- , requires =>
+
+open( DCH, "<", "debian/changelog" ) or die "changelog: $!";
+
+my $version = "0";
+while ( defined ( my $line = <DCH> ) ) {
+ if ( $line =~ /\(([0-9.]+)\)/ ) {
+ $version = $1;
+ last;
+ };
+};
+
+close( DCH );
+
+my $build = Module::Build->new
+ ( 'module_name' => 'Piny'
+ , 'dist_version' => $version
+ , 'license' => 'BSD-3'
+ , 'setup_files' => { 'share/ikiwiki.setup' => 'share/ikiwiki.setup' }
+ , 'install_path' =>
+ { 'share' => '/usr/share/libpiny'
+ }
+ , 'requires' =>
{ 'Moose' => 0
, 'Email::Valid::Loose' => 0
}
- )->create_build_script( );
+ );
+
+$build->add_build_element( "setup" );
+$build->create_build_script( );