-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hi Audrey!! A present for you... I just took some time to convert your setup to Module::Package. I had to put out a new M:P version with a Unicode tweak for the Chinese package name. I also had to alter your code slightly to account for missing code in M:I. So consider this a rough draft. I hope you release it, and then work with me to make it better, a step at a time. Cheers! Ingy
- Loading branch information
1 parent
34a5350
commit 36f80b4
Showing
3 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
#!/usr/local/bin/perl | ||
|
||
use v5.12.0; | ||
use inc::Module::Install; | ||
|
||
name 'App-Uni'; | ||
license 'CC0'; | ||
requires 'File::ShareDir'; | ||
|
||
given ('lib/App/Uni.pm') { | ||
all_from $_; | ||
readme_from $_; | ||
readme_markdown_from $_; | ||
} | ||
|
||
repository 'http://github.com/audreyt/app-uni'; | ||
install_script 'bin/uni'; | ||
install_share 'share'; | ||
|
||
sign; WriteAll; | ||
|
||
1; | ||
use utf8; | ||
# to pick up M:P:Au for now... | ||
use lib 'lib'; | ||
use inc::Module::Package 'Au:現代 0.01'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use v5.12.0; | ||
use utf8; | ||
use strict; | ||
package Module::Package::Au; | ||
|
||
our $VERSION = '0.01'; | ||
|
||
use Module::Package 0.24 (); | ||
use Module::Install::GithubMeta 0.10 (); | ||
use Module::Install::ReadmeFromPod 0.12 (); | ||
use Module::Install::ReadmeMarkdownFromPod 0.03 (); | ||
use Pod::Markdown 1.110730 (); | ||
|
||
|
||
package Module::Package::Au::現代; | ||
use Module::Package::Plugin; | ||
our @ISA = 'Module::Package::Plugin'; | ||
|
||
sub main { | ||
my ($self) = @_; | ||
|
||
$self->mi->license('CC0'); | ||
$self->mi->readme_from($self->pod_or_pm_file); | ||
$self->mi->readme_markdown_from($self->pod_or_pm_file); | ||
$self->mi->sign; # XXX Not sure it this needs to be post_all_from | ||
$self->mi->clean_files('README.mkdn'); | ||
|
||
$self->post_all_from(sub {$self->mi->githubmeta}); | ||
} | ||
|
||
1; |