name    = Net-Whois-IANA
author  = Roman M. Parparov <roman@parparov.com>, Nicolas R <atoomic@cpan.org>
license = Perl_5
copyright_holder = Bolet Consulting <bolet@parparov.com>
copyright_year   = 2003-2013, 2018

;[PPPort]

[PkgVersion]
[Test::Compile]
xt_mode = 1

[MetaTests]
;[Test::NoTabs]
[PodSyntaxTests]
[Test::ReportPrereqs]
[PodWeaver]
[RunExtraTests]
[MetaJSON]

[MinimumPerlFast]
min = 5.006 ; undocumented config!
max = 5.006 ; undocumented config!

[MetaConfig]

[MetaProvides::Package]

[NextRelease]
filename = Changes

[Git::Push]
push_to = gh
push_to = gh HEAD:refs/heads/released ; also push to released branch

[TestRelease]

[Test::MinimumVersion]
max_target_perl = 5.006

[@Git]
allow_dirty = Changes
allow_dirty = dist.ini
allow_dirty = README.md
add_files_in = Changes
add_files_in = dist.ini
add_files_in = README.md

push_to = gh
push_to = gh HEAD:refs/heads/released ; also push to released branch

[Git::NextVersion]
first_version = 0.43       ; taking over from upstream


[@Filter]
-bundle = @Basic
-remove = AutoPrereqs
-remove = ExtraTests
-remove = GatherDir
;-remove = Manifest

[GatherDir]
exclude_filename = Makefile.PL
exclude_filename = ppport.h

[Run::BeforeBuild]
; force to refresh Makefile.PL for every build [not really necessary as we have one exclude_filename]
; run = ( test -f Makefile.PL && rm Makefile.PL ) ||:

[Run::AfterBuild]
; provide a friendly Makefile.PL in our repo
;	very useful so Travis CI can use it without installing Dist::Zilla::*
run = cp %d/Makefile.PL ./
run = git status --porcelain | grep 'M Makefile.PL' && git commit -m 'Makefile.PL auto-updated by dist.ini' Makefile.PL && echo "# Makefile.PL auto-update" || echo "# Makefile.PL up to date"


; -- static meta-information
[MetaResources]
bugtracker.web  = https://github.com/atoomic/Net-Whois-IANA/issues
repository.url  = git://github.com/atoomic/Net-Whois-IANA.git
repository.web  = https://github.com/atoomic/Net-Whois-IANA
repository.type = git

[PruneFiles]
match = ~$ ; emacs backup files

;[PodCoverageTests]
;[Test::EOL]

[Prereqs::FromCPANfile]

[ReadmeAnyFromPod]
type = gfm
filename = README.md
location = root