Skip to content

Commit

Permalink
rewrite whole code with metacpan.
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Jul 16, 2011
1 parent 831d05f commit 43b296c
Show file tree
Hide file tree
Showing 153 changed files with 597 additions and 9,319 deletions.
23 changes: 12 additions & 11 deletions .gitignore
@@ -1,12 +1,13 @@
config.pl
/Makefile
Makefile
inc/
MYMETA.yml
tmp/
config/development.pl
config/production.pl
feed/index.rss
script/deploy.sh
tmp/src/
apidocs/build/
groonga.*
.c
ppport.h
*.sw[po]
*.bak
*.old
Build
_build/
xshelper.h
tags
blib/
pm_to_blib
2 changes: 2 additions & 0 deletions .shipit
@@ -0,0 +1,2 @@
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN
git.push_to=origin
35 changes: 0 additions & 35 deletions ChangeLog

This file was deleted.

4 changes: 4 additions & 0 deletions Changes
@@ -0,0 +1,4 @@
Revision history for Perl extension FrePAN2

0.01 Sat Jul 16 23:11:01 2011
- original version
69 changes: 0 additions & 69 deletions HACKING.mkdn

This file was deleted.

23 changes: 23 additions & 0 deletions MANIFEST
@@ -0,0 +1,23 @@
.gitignore
Changes
inc/Module/Install.pm
inc/Module/Install/AuthorTests.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
inc/Module/Install/Fetch.pm
inc/Module/Install/Makefile.pm
inc/Module/Install/Metadata.pm
inc/Module/Install/Win32.pm
inc/Module/Install/WriteAll.pm
lib/FrePAN2.pm
Makefile.PL
MANIFEST This list of files
META.yml
MYMETA.json
MYMETA.yml
README
t/00_compile.t
xt/01_podspell.t
xt/02_perlcritic.t
xt/03_pod.t
xt/04_minimum_version.t
28 changes: 28 additions & 0 deletions MANIFEST.SKIP
@@ -0,0 +1,28 @@
^\.git/
\bRCS\b
\bCVS\b
^MANIFEST\.
^Makefile$
~$
^#
\.old$
^blib/
^pm_to_blib
^MakeMaker-\d
\.gz$
\.cvsignore
^t/perlcritic
^tools/
\.svn/
^[^/]+\.yaml$
^[^/]+\.pl$
^\.shipit$
\.sw[po]$
^Build$
^ppport.h$
^xshelper.h$
cover_db
nytprof
perltidy.ERR$
^README.pod$
^tags$
26 changes: 26 additions & 0 deletions META.yml
@@ -0,0 +1,26 @@
---
abstract: ~
author:
- 'Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>'
build_requires:
ExtUtils::MakeMaker: 6.42
Test::More: 0.96
configure_requires:
ExtUtils::MakeMaker: 6.42
distribution_type: module
generated_by: 'Module::Install version 1.01'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: FrePAN2
no_index:
directory:
- inc
- t
- xt
requires:
perl: 5.8.8
resources:
license: http://dev.perl.org/licenses/
version: 0.01
42 changes: 42 additions & 0 deletions MYMETA.json
@@ -0,0 +1,42 @@
{
"abstract" : "unknown",
"author" : [
"Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>"
],
"dynamic_config" : 0,
"generated_by" : "ExtUtils::MakeMaker version 6.58, CPAN::Meta::Converter version 2.110930001",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
},
"name" : "FrePAN2",
"no_index" : {
"directory" : [
"t",
"inc"
]
},
"prereqs" : {
"build" : {
"requires" : {
"ExtUtils::MakeMaker" : "6.42",
"Test::More" : "0.96"
}
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : 0
}
},
"runtime" : {
"requires" : {
"perl" : "5.008008"
}
}
},
"release_status" : "stable",
"version" : "0.01"
}
23 changes: 23 additions & 0 deletions MYMETA.yml
@@ -0,0 +1,23 @@
---
abstract: unknown
author:
- 'Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>'
build_requires:
ExtUtils::MakeMaker: 6.42
Test::More: 0.96
configure_requires:
ExtUtils::MakeMaker: 0
dynamic_config: 0
generated_by: 'ExtUtils::MakeMaker version 6.58, CPAN::Meta::Converter version 2.110930001'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: FrePAN2
no_index:
directory:
- t
- inc
requires:
perl: 5.008008
version: 0.01
90 changes: 13 additions & 77 deletions Makefile.PL
@@ -1,81 +1,17 @@
use ExtUtils::MakeMaker;
use inc::Module::Install;
use Module::Install::AuthorTests;

which('cronlog') or do {
use File::Temp;
my $tmp = File::Temp->new(UNLINK => 1);
system "curl -L --output $tmp http://github.com/kazuho/kaztools/tarball/master";
system "cpanm -nv $tmp";
};
name 'FrePAN2';
all_from 'lib/FrePAN2.pm';

WriteMakefile(
NAME => 'FrePAN',
AUTHOR => 'tokuhirom <person@example.com>',
VERSION_FROM => 'lib/FrePAN.pm',
PREREQ_PM => {
'Amon2' => '2.35',
'Text::Xslate' => '1.1005',
'Text::Xslate::Bridge::TT2Like' => '0.00008',
'Plack::Middleware::ReverseProxy' => '0.09',
'HTML::FillInForm::Lite' => '1.09',
'Time::Piece' => '1.20',
map { $_ => 0 } (
qw(
SQL::Maker
Carp::Clan
File::Find::Rule
Getopt::Long::Descriptive
Web::Query
CPAN::Mini
DBD::SQLite
),
'AnyEvent::FriendFeed::Realtime',
'Amon2',
'JSON::XS',
'URI',
'LWP::UserAgent',
'Archive::Extract',
'Guard',
'Path::Class',
'autodie',
'Pod::POM',
'Pod::Simple::XHTML',
'parent',
'XML::Feed',
'Algorithm::Diff',
'Class::Accessor::Fast',
'CPAN::DistnameInfo', # parse path name
'Archive::Zip',
'Cache::Memcached::Fast',
'RPC::XML',
'Log::Minimal',
'Smart::Args',
'Time::Duration',
'Text::Diff',
'SQL::Interp',
'Data::Page',
'String::CamelCase',
'HTML::FillInForm::Lite',
'HTML::FormatText',
'DBIx::Skinny',
'Furl',
'DBIx::Inspector',
'DBD::mysql',
'YAML::Tiny',
)
},
MIN_PERL_VERSION => '5.008001',
( -d 'xt' and $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} )
? ( test => { TESTS => 't/*.t xt/*.t', }, )
: (),
);
# requires '';
# requires 'Exporter' => 5.63; # use Exporter 'import';
# requires 'Plack' => 0.9949;

use File::Spec;
sub which {
my $basename = shift;
for $dir (split /:/, $ENV{PATH}) {
my $path = File::Spec->catfile($dir, $basename);
return $path if -x $path;
}
return;
}


tests 't/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t';
test_requires 'Test::More' => 0.96; # done_testing, subtest
# test_requires 'Test::Requires';
author_tests('xt');
WriteAll;

0 comments on commit 43b296c

Please sign in to comment.