summaryrefslogtreecommitdiff
path: root/libpiny/Build.PL
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2010-10-29 19:46:24 -0500
committerBryan Bishop <kanzure@gmail.com>2010-10-29 19:46:24 -0500
commit7786ce2a332b0eba4b3ca7c57f906a32e8715da3 (patch)
tree5a9fe32b69a93f41ae2ac82a50788fe50c0d86fb /libpiny/Build.PL
parent413373be9ab30eb21b564cdc180cb2dcda77bfeb (diff)
downloadpiny-code-7786ce2a332b0eba4b3ca7c57f906a32e8715da3.tar.gz
piny-code-7786ce2a332b0eba4b3ca7c57f906a32e8715da3.zip
Starting repo cleanup to make this not so awful
Diffstat (limited to 'libpiny/Build.PL')
-rw-r--r--libpiny/Build.PL30
1 files changed, 30 insertions, 0 deletions
diff --git a/libpiny/Build.PL b/libpiny/Build.PL
new file mode 100644
index 0000000..bfb5fd7
--- /dev/null
+++ b/libpiny/Build.PL
@@ -0,0 +1,30 @@
+use Module::Build;
+
+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
+ }
+ );
+
+$build->add_build_element( "setup" );
+$build->create_build_script( );