summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-01-03 14:00:22 -0800
committerJonathan "Duke" Leto <jonathan@leto.net>2011-01-03 14:00:22 -0800
commit792eeecfec9b9b30101fa5c791554b6affb5f0d0 (patch)
treed3e835deef556269479be29e596a01e110ebc825
parentupdate .gitignore (diff)
downloadjitterbug-792eeecfec9b9b30101fa5c791554b6affb5f0d0.tar.gz
Convert jitterbug to use Module::Build
Jitterbug now uses Module::Build, mostly so that "./Build installdeps" can be used to install all Jitterbug dependencies. The README has been updated to document the new installation process. A Makefile.PL is still generated for backcompat.
Diffstat (limited to '')
-rw-r--r--.gitignore7
-rw-r--r--Build.PL39
-rw-r--r--MANIFEST46
-rw-r--r--MANIFEST.SKIP16
-rw-r--r--Makefile.PL31
-rw-r--r--README9
6 files changed, 115 insertions, 33 deletions
diff --git a/.gitignore b/.gitignore
index c6092e6..ee0f6fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,10 @@ blib/*
pm_to_blib
Makefile
Makefile.old
+_build
+META.yml
+MYMETA.yml
+*.bak
+*.swp
+Makefile.PL
+Build
diff --git a/Build.PL b/Build.PL
new file mode 100644
index 0000000..d00ce57
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,39 @@
+use strict;
+use warnings;
+use Module::Build;
+
+my $builder = Module::Build->new(
+ module_name => 'jitterbug',
+ license => 'perl',
+ dist_author => 'franck cuny <franck@lumberjaph.net>',
+ dist_abstract => 'Perl smoker that uses Dancer and git',
+ dist_version_from => 'lib/jitterbug.pm',
+ include_dirs => '',
+ build_requires => {
+ 'Test::More' => 0,
+ },
+ requires => {
+ 'YAML' => 0,
+ 'Dancer' => 1.1810,
+ 'XML::Feed' => 0,
+ 'DateTime' => 0,
+ 'JSON' => 0,
+ 'Git::Repository' => 0,
+ 'YAML' => 0,
+ 'Dancer::Template::Xslate' => 0,
+ 'Dancer::Plugin::DBIC' => 0,
+ 'DBIx::Class' => 0,
+ 'SQL::Translator' => 0,
+ 'Digest::MD5' => 0,
+ },
+ add_to_cleanup => [ 'jitterbug-' ],
+ create_makefile_pl => 'traditional',
+ meta_merge => {
+ resources => {
+ repository => 'http://github.com/franckcuny/jitterbug/tree/master'
+ },
+ },
+);
+
+$builder->create_build_script();
+print "Have a great day!\n";
diff --git a/MANIFEST b/MANIFEST
new file mode 100644
index 0000000..d132394
--- /dev/null
+++ b/MANIFEST
@@ -0,0 +1,46 @@
+Build.PL
+config.yml
+eg/post_hook.t
+environments/development.yml
+environments/production.yml
+jitterbug.db
+jitterbug.pl
+lib/jitterbug.pm
+lib/jitterbug/Hook.pm
+lib/jitterbug/Plugin/Template.pm
+lib/jitterbug/Project.pm
+lib/jitterbug/Schema.pm
+lib/jitterbug/Schema/Result/Commit.pm
+lib/jitterbug/Schema/Result/Project.pm
+lib/jitterbug/Schema/Result/Task.pm
+lib/jitterbug/Task.pm
+lib/jitterbug/WebService.pm
+logs/development.log
+Makefile
+Makefile.PL
+MANIFEST This list of files
+MANIFEST.SKIP
+META.yml
+public/404.html
+public/500.html
+public/dispatch.cgi
+public/dispatch.fcgi
+public/favicon.ico
+public/images/feed.png
+public/images/perldancer-bg.jpg
+public/images/perldancer.jpg
+README
+scripts/builder.pl
+scripts/deploy_schema
+scripts/migrate_from_redis.pl
+t/001_base.t
+t/002_index_route.t
+t/003_hook_route.t
+t/004_project.t
+t/data/export_jitterbug.yml
+t/data/test.yaml
+TODO
+views/index.tt
+views/layouts/main.tt
+views/project/index.tt
+views/task/index.tt
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
new file mode 100644
index 0000000..8a7a4be
--- /dev/null
+++ b/MANIFEST.SKIP
@@ -0,0 +1,16 @@
+\.git*
+tmp.*
+.*\.o
+\..*sw?
+\.bak
+_build
+^Build$
+blib/*
+.*\.data
+.*core
+foo*
+.*\.gz
+^tags
+jitterbug-\d+\..*
+.prove
+^MYMETA.yml$
diff --git a/Makefile.PL b/Makefile.PL
deleted file mode 100644
index 880131b..0000000
--- a/Makefile.PL
+++ /dev/null
@@ -1,31 +0,0 @@
-use strict;
-use warnings;
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
- NAME => 'jitterbug',
- AUTHOR => q{franck cuny <franck@lumberjaph.net>},
- VERSION_FROM => 'lib/jitterbug.pm',
- ABSTRACT => 'perl/github smoker',
- ( $ExtUtils::MakeMaker::VERSION >= 6.3002
- ? ( 'LICENSE' => 'perl' )
- : () ),
- PL_FILES => {},
- PREREQ_PM => {
- 'Test::More' => 0,
- 'YAML' => 0,
- 'Dancer' => 1.1810,
- 'XML::Feed' => 0,
- 'DateTime' => 0,
- 'JSON' => 0,
- 'Git::Repository' => 0,
- 'YAML' => 0,
- 'Dancer::Template::Xslate' => 0,
- 'Dancer::Plugin::DBIC' => 0,
- 'DBIx::Class' => 0,
- 'SQL::Translator' => 0,
- 'Digest::MD5' => 0,
- },
- dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
- clean => { FILES => 'jitterbug-*' },
-);
diff --git a/README b/README
index 267aeb4..fb56615 100644
--- a/README
+++ b/README
@@ -6,9 +6,14 @@ as Dancer, DBIx::Class and Git::Repository.
Installing Jitterbug
===================
-perl Makefile.PL
+perl Build.PL
-# ... install missing dependencies with cpan or cpanm ...
+# You can also use Makefile.PL, but you will then have to manually
+# install dependencies
+# perl Makefile.PL
+
+# install missing dependencies
+./Build installdeps
# start the jitterbug Dancer app, which by default binds to port 3000
perl jitterbug.pl