[MacPorts] #44654: cpan2port improvements
MacPorts
noreply at macports.org
Fri Aug 15 03:30:25 PDT 2014
#44654: cpan2port improvements
-------------------------+--------------------------------
Reporter: mojca@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: contrib | Version:
Keywords: | Port: cpan2port
-------------------------+--------------------------------
* try to figure out if there is some desired order of keys
(perl5.branches/perl5.setup/licence/maintainer/...)
* properly implement `if {${perl5.major} != ""} {` and put dependencies
inside the block
* description is often missing, but `META.yml` usually contains
`abstract:` that could be used
* sort dependencies alphabetically
* something seems to be wrong with dependencies, see `cpan2port -t
Mouse` for example:
{{{
build_requires:
Test::Exception: 0
Test::Exception::LessClever: 0
Test::Fatal: 0
Test::LeakTrace: 0
Test::More: 0.88
Test::Output: 0
Test::Requires: 0
Try::Tiny: 0
configure_requires:
CPAN::Meta: 0
CPAN::Meta::Prereqs: 0
Devel::PPPort: 3.19
ExtUtils::ParseXS: 3.22
Module::Build: 0.4005
Module::Build::XSUtil: 0
requires:
Scalar::Util: 1.14
XSLoader: 0.02
perl: 5.008005
}}}
But it generates:
{{{
depends_build-append \
port:p5${perl5.major}-test-exception \
port:p5${perl5.major}-test-exception-lessclever \
port:p5${perl5.major}-test-fatal \
port:p5${perl5.major}-test-leaktrace \
port:p5${perl5.major}-test-output \
port:p5${perl5.major}-test-requires \
port:p5${perl5.major}-try-tiny
}}}
In particular `Module::Build::XSUtil` and everything else from
`configure_requires` is missing, as well as runtime dependencies.
--
Ticket URL: <https://trac.macports.org/ticket/44654>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list