Tweak: dash replacement if gstitle.
[clive.git] / Makefile.PL
blob93bea8f762efdc08768d0a0b7a0ed1f924eacbd1
1 #!/usr/bin/env perl
3 use warnings;
4 use strict;
6 use ExtUtils::MakeMaker;
8 my $version = get_version();
10 WriteMakefile(
11 'NAME' => 'clive',
12 ( $[ >= 5.8 )
13 ? ( AUTHOR => 'Toni Gundogdu <legatvs@gmail.com>',
14 'ABSTRACT' => 'command line video extraction utility'
16 : (),
17 'VERSION' => $version,
18 'EXE_FILES' => ['bin/clive'],
19 'PREREQ_PM' => {
20 'Getopt::ArgvFile' => 1.11,
21 'Class::Singleton' => 1.4,
22 'HTML::TokeParser' => 2.37,
23 'URI::Escape' => 3.29,
24 'Digest::SHA' => 5.45,
25 'WWW::Curl' => 4.05,
27 'LICENSE' => 'gpl',
28 dist => {
29 COMPRESS => "bzip2",
30 SUFFIX => ".bz2"
34 sub get_version {
35 my $file = "lib/clive/Config.pm";
36 my $re = qr/VERSION => "(.*?)"/;
37 open my $fh, "<", $file
38 or die "$file: $!";
39 foreach (<$fh>) {
40 close $fh and return $1
41 if $_ =~ /$re/;
43 close $fh;
44 die "$file: `$re`: not matched";