[MacPorts] howto/cpan2port modified

MacPorts Wiki noreply at macports.org
Fri Mar 1 22:23:26 UTC 2019


Page "howto/cpan2port" was changed by hyperbole
Diff URL: <https://trac.macports.org/wiki/howto/cpan2port?action=diff&version=25>
Revision 25
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/cpan2port
=========================================================================
--- howto/cpan2port (version: 24)
+++ howto/cpan2port (version: 25)
@@ -93,7 +93,36 @@
 creating perl/p5-timedate/Portfile
 }}}
 
-=== Step 7: '''Build the port''' ===
+=== Step 7: '''Fix the Portfile''' ===
+
+The Portfile as generated is in rough form and not ready for submission as a new or updated port. Please at least check and update the following in the Portfile:
+
+  * Check if the port compiles any files or is simply straight perl code. If the latter, then uncomment the following line and delete the comment above it. Otherwise delete the lines entirely. 
+{{{
+# Uncomment this line if you know there will be no arch-specific code:
+#supported_archs     noarch
+}}}
+
+  * Determine and add the correct license. There is a commented license line that is common to many perl ports. 
+{{{
+#license             {Artistic-1 GPL}
+}}}
+
+  * Dependencies need to be put into an if block so that they only appear in the sub-ports, not the stub p5 port. See below as an example.
+{{{
+if {${perl5.major} != ""} {
+    depends_lib-append  port:p${perl5.major}-digest-md5 \
+                        port:p${perl5.major}-io-compress
+}
+}}}
+
+  * Check the appropriate perl versions supported by the port. At the time of writing, 5.28 is the current and only version in use.
+{{{
+perl5.branches      5.28
+}}}
+
+
+=== Step 8: '''Build the port''' ===
 First you can review the portfile:
 {{{
 $ cd ~/macports/perl/p5-timedate
@@ -141,41 +170,6 @@
  sudo port build subport=p5.28-timedate 
 }}}
 
-=== Step 8: '''Fix the Portfile''' ===
-
-The Portfile as generated is in rough form and not ready for submission as a new or updated port. Please at least check and update the following in the Portfile:
-
-  * Check if the port compiles any files or is simply straight perl code. If the latter, then uncomment the following line and delete the comment above it. Otherwise delete the lines entirely. 
-{{{
-# Uncomment this line if you know there will be no arch-specific code:
-#supported_archs     noarch
-}}}
-
-  * Determine and add the correct license. There is a commented license line that is common to many perl ports. 
-{{{
-#license             {Artistic-1 GPL}
-}}}
-
-  * Dependencies need to be put into an if block so that they only appear in the sub-ports, not the stub p5 port. See below as an example.
-{{{
-if {${perl5.major} != ""} {
-    depends_lib-append  port:p${perl5.major}-digest-md5 \
-                        port:p${perl5.major}-io-compress
-}
-}}}
-
-  * Check the appropriate perl versions supported by the port. At the time of writing, 5.28 is the current and only version in use.
-{{{
-perl5.branches      5.28
-}}}
-
-
-If you make changes to the Portfile, remember to re-build it:
-{{{
-$ cd ~/macports/perl/p5-timedate
-$ sudo 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.
@@ -184,6 +178,13 @@
 $ cd ~/macports
 $ portindex
 }}}
+
+If you make changes to the Portfile, remember to re-build it:
+{{{
+$ cd ~/macports/perl/p5-timedate
+$ sudo port build
+}}}
+
 ----
 
 [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