[MacPorts] howto/cpan2port modified

MacPorts Wiki noreply at macports.org
Fri Mar 1 22:30:09 UTC 2019


Page "howto/cpan2port" was changed by hyperbole
Diff URL: <https://trac.macports.org/wiki/howto/cpan2port?action=diff&version=26>
Revision 26
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/cpan2port
=========================================================================
--- howto/cpan2port (version: 25)
+++ howto/cpan2port (version: 26)
@@ -95,34 +95,6 @@
 
 === 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
@@ -144,10 +116,35 @@
 checksums sha1 6394cd243e05c3c2073fa73348a4ad90d8d5963e md5 7da7452bce4c684e4238e6d09b390200 rmd160 513094a2d2fb3678c1ad893abc28c94d344ec7b8
 }}}
 
-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.
+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. Edit the file to make the following changes:
 
+  * 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
+}}}
+
+  * Find 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 version in use.
+{{{
+perl5.branches      5.28
+}}}
+
+=== Step 8: '''Build the port''' ===
+{{{
+$ cd ~/macports/perl/p5-timedate
 $ sudo port build
 --->  Computing dependencies for p5-timedate
 --->  Fetching p5-timedate
-------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