Changes between Version 10 and Version 11 of howto/cpan2port
- Timestamp:
- Jun 8, 2018, 7:06:42 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/cpan2port
v10 v11 4 4 5 5 * Audience: Perl users 6 * Requires the following MacPorts perl ports: p5-list-moreutils p5-cpan-meta p5-module-depends p5-cpan-meta-yaml. Note that perl 5.22 is the Macports default version, you can install them as follows: 7 {{{ 8 port install p5.22-list-moreutils p5.22-cpan-meta p5.22-module-depends p5.22-cpan-meta-yaml 9 }}} 6 * Requires additional Perl modules (available as MacPorts perl ports: see step [#Step4:Getcpan2port Get cpan2port]) 7 10 8 11 9 == Introduction == … … 55 53 This particular port actually is available, but we'll pretend it isn't. 56 54 57 === Step 4: '''Create MacPorts directory === 55 === Step 4: '''Get cpan2port === 56 Install using macports (will automatically install prerequisite Perl modules: p5-list-moreutils, p5-cpan-meta, p5-module-depends, p5-cpan-meta-yaml): 57 {{{ 58 $ port install cpan2port 59 }}} 58 60 61 Or, from a system without macports: 59 62 {{{ 60 63 $ mkdir ~/macports … … 63 66 $ chmod u+x cpan2port 64 67 }}} 68 Then install the Perl modules (from e.g. CPAN or package manager of choice): [https://metacpan.org/release/List-MoreUtils List::MoreUtils], [https://metacpan.org/release/CPAN-Meta CPAN::Meta], [https://metacpan.org/release/Module-Depends Module::Depends], [https://metacpan.org/release/CPAN-Meta-YAML CPAN::Meta::YAML] 65 69 66 70 === Step 5: '''Create the port file''' === 67 71 {{{ 68 $ ./cpan2port -t Date::Parse72 $ cpan2port -t Date::Parse 69 73 [...] 70 74 TimeDate-1.20/