[MacPorts] howto/cpan2port modified
MacPorts Wiki
noreply at macports.org
Thu Feb 28 17:44:02 UTC 2019
Page "howto/cpan2port" was changed by hyperbole
Diff URL: <https://trac.macports.org/wiki/howto/cpan2port?action=diff&version=19>
Revision 19
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/cpan2port
=========================================================================
--- howto/cpan2port (version: 18)
+++ howto/cpan2port (version: 19)
@@ -56,6 +56,8 @@
[http://guide.macports.org/chunked/development.local-repositories.html]
+If you're new to creating ports reading the guide will help you enter your ~/macports directory in /opt/local/etc/macports/source.conf so port can find your personal ports directory when you do 'port search', or 'port install'.
+
=== Step 5: '''Get cpan2port ===
Install using macports (will automatically install prerequisite Perl modules: p5-list-moreutils, p5-cpan-meta, p5-module-depends, p5-cpan-meta-yaml):
{{{
@@ -73,9 +75,8 @@
=== Step 6: '''Create the port file''' ===
{{{
-$ cd ~
-$ mkdir ports
-$ cd ~/ports
+$ mkdir ~/macports
+$ cd ~/macports
$ cpan2port -t Date::Parse
[...]
TimeDate-1.20/
@@ -92,8 +93,10 @@
=== Step 7: '''Build the port''' ===
First you can review the portfile:
{{{
-$ cd perl/p5-timedate
+$ cd ~/macports/perl/p5-timedate
$ cat Portfile
+}}}
+{{{
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
@@ -109,7 +112,9 @@
checksums sha1 6394cd243e05c3c2073fa73348a4ad90d8d5963e md5 7da7452bce4c684e4238e6d09b390200 rmd160 513094a2d2fb3678c1ad893abc28c94d344ec7b8
}}}
-The build it:
+Then build it:
+ # 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
Warning: MacPorts running without privileges. You may be unable to complete certain actions (e.g. install).
@@ -156,10 +161,18 @@
If you make changes to the Portfile, remember to re-build it:
{{{
-$ cd perl/p5-timedate
+$ cd ~/macports/perl/p5-timedate
$ port build
}}}
+=== Step 9: '''Update your PortIndex Files''' ===
+
+Before you can install your new port, you will need to create/update the PortIndex files in your macports directory.
+
+{{{
+$ cd ~/macports
+$ portindex
+}}}
----
[wiki:howto <- Back to the HOWTO section]
-------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