Skip to content

Instantly share code, notes, and snippets.

@avar
Created March 27, 2010 13:56
Show Gist options
  • Select an option

  • Save avar/346069 to your computer and use it in GitHub Desktop.

Select an option

Save avar/346069 to your computer and use it in GitHub Desktop.
use Dist::Zilla::Magic;
conf name => 'Hailo';
conf author => 'Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>';
conf author => 'Ævar Arnfjörð Bjarmason <avar@cpan.org>';
conf copyright_holder => 'Hinrik Örn Sigurðsson and Ævar Arnfjörð Bjarmason';
conf license => 'Perl_5';
conf_plugin '@AVAR' => {
dist => 'Hailo',
bugtracker => 'rt',
github_user => 'hailo',
no_AutoPrereq => 1,
no_MakeMaker => 1,
};
our @DIR = qw(libutf libfmt libregexp);
our @OBJ = map { s/\.c$/.o/; $_ }
grep { ! /test/ }
glob "lib*/*.c";
conf_plugin OverridableMakeMaker => {
# Here be XS
-extra_args => {
DIR => [ @DIR ],
INC => join(' ', map { "-I$_" } @DIR),
# This used to be '-shared lib*/*.o' but that doesn't work on Win32
LDDLFLAGS => "-shared @OBJ",
},
};
conf_plugin '=inc::Dist::Zilla::Plugin::HailoMakeMaker / HailoMakeMaker';
conf_plugin 'Prereq' => {
perl => 5.010,
Time::HiRes => 0,
File::Spec::Functions => 0,
## Depend on Mouse and Moose, we can use either one
# Mouse
Mouse => 0.50,
MouseX::Types => 0.05,
MouseX::Getopt => 0.2601,
# Moose
Moose => 0.94,
MooseX::Types => 0.21,
MooseX::StrictConstructor => 0.08,
MooseX::Getopt => 0.26,
# Hailo.pm
Any::Moose => 0.11,
autodie => 2.08,
File::CountLines => 0.0.2,
IO::Interactive => 0.0.6,
# Command.pm
Getopt::Long::Descriptive => 0.083,
Dir::Self => 0.10,
# ReadLine.pm
Term::ProgressBar => 2.00,
Term::ReadLine => 0,
# DBD.pm
List::MoreUtils => 0.22,
# SQLite.pm
DBD::SQLite => 1.29,
# everywhere
namespace::clean => 0.13,
## Pg/mysql: optional backends
#DBD::mysql => 4.013,
#DBD::Pg => 2.16.1,
## Test-requires
File::Slurp => 9999.13,
Test::Exception => 0.29,
Test::More => 0.94,
Test::Output => 0.16,
Test::Script => 1.07,
Test::Expect => 0.30,
Test::Script::Run => 0.03,
Test::Synopsis => 0.06,
Data::Section => 0.100770,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment