[MacPorts] howto/cpan2port modified
MacPorts Wiki
noreply at macports.org
Fri Mar 1 22:02:57 UTC 2019
Page "howto/cpan2port" was changed by hyperbole
Diff URL: <https://trac.macports.org/wiki/howto/cpan2port?action=diff&version=21>
Revision 21
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/cpan2port
=========================================================================
--- howto/cpan2port (version: 20)
+++ howto/cpan2port (version: 21)
@@ -4,6 +4,9 @@
* Audience: Perl users
* Requires additional Perl modules (available as MacPorts perl ports: see step [#Step4:Getcpan2port Get cpan2port])
+ * I assume you are building your modules in a standard location, so commands that will write files in standard locations are preceded with 'sudu'.
+ * If you are building file in directories you own, leave off the 'sudo' when using these commands.
+
== Introduction ==
@@ -15,7 +18,7 @@
You must have a properly configured cpan client for cpan2port to work.
You can either step through the questions, or let it auto-configure.
{{{
-$ cpan
+$ sudo cpan
CPAN is the world-wide archive of perl resources. It consists of about
[...]
Would you like me to configure as much as possible automatically? [yes] ''yes''
@@ -33,7 +36,7 @@
DESCRIPTION ASCII Date parser using regexp's
CPAN_USERID GBARR (Graham Barr <gbarr at pobox.com>)
CPAN_VERSION 2.30
- CPAN_FILE G/GB/GBARR/TimeDate-1.20.tar.gz
+ **CPAN_FILE G/GB/GBARR/TimeDate-1.20.tar.gz**
DSLIP_STATUS Rdpf? (released,developer,perl,functions,)
MANPAGE Date::Parse - Parse date strings into time values
INST_FILE /opt/local/lib/perl5/vendor_perl/5.8.9/Date/Parse.pm
@@ -116,7 +119,7 @@
# Note: make sure you're in the Portfile directory for the port you want to build. In our case ~/macports/perl/p5-timedate.
{{{
-$ port build
+$ sudo port build
Warning: MacPorts running without privileges. You may be unable to complete certain actions (e.g. install).
---> Computing dependencies for p5-timedate
---> Fetching p5-timedate
@@ -129,6 +132,11 @@
---> Configuring p5-timedate
---> Building p5-timedate
}}}
+
+If you get an error similar to:
+{{{ Error: p5-timedate depends on p5.28-timedate }}}
+when trying to build, try the following command
+{{{ sudo port build subport=p5.28-timedate }}}
=== Step 8: '''Fix the Portfile''' ===
@@ -162,7 +170,7 @@
If you make changes to the Portfile, remember to re-build it:
{{{
$ cd ~/macports/perl/p5-timedate
-$ port build
+$ sudo port build
}}}
=== Step 9: '''Update your PortIndex Files''' ===
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/cpan2port>
MacPorts <https://www.macports.org/>
Ports system for macOS
This is an automated message. Someone added your email address to be
notified of changes on 'howto/cpan2port' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list