Subject: | [Enhancement Request] Please package META.yml |
Date: | Thu, 7 Jan 2010 17:12:33 +1100 |
To: | <bug-DateTime-Format-Duration [...] rt.cpan.org> |
From: | "Tulloh, David" <david.tulloh [...] AirservicesAustralia.com> |
Packaging META.yml allows third party tools like Debian's dh-make-perl
to correctly install the package. Unfortunately you haven't included it
so the installation requires manual fiddling.
MakeMaker will generate this file for you with the following command:
make distdir
This should also avoid bugs like
48187 dist version does not match module version
For anyone looking for a workaround,
Once your `dh-make-perl --make --cpan DateTime::Format::Duration` has
failed you should have a DateTime-Format-Duration-1.03a directory left
over. Cd inside there.
Then run `perl Makefile.PL`
Then run `make distdir`
This will create another directory, DateTime-Format-Duration-1.03, cd
inside that. This directory includes META.yml.
From here, run `dh-make-perl --build`
The package should build correctly and you can install as normal,
`sudo dpkg -i ../libdatetime-format-duration-perl_1.03-1_all.deb`
David