fix vimeo support.
[clive.git] / Makefile.PL
blob4293f3a17f2d5ad8576bdf264f923eea6fbd0a08
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,
26 'Config::Tiny' => 2.12,
28 'LICENSE' => 'gpl',
29 dist => {
30 COMPRESS => "bzip2",
31 SUFFIX => ".bz2"
35 sub get_version {
36 my $file = "lib/clive/Config.pm";
37 my $re = qr/VERSION => "(.*?)"/;
38 open my $fh, "<", $file
39 or die "$file: $!";
40 foreach (<$fh>) {
41 close $fh and return $1
42 if $_ =~ /$re/;
44 close $fh;
45 die "$file: `$re`: not matched";