[MacPorts] howto/PatchLocal modified

MacPorts noreply at macports.org
Fri Apr 5 13:41:32 PDT 2013


Page "howto/PatchLocal" was changed by pk at kocks.com
Diff URL: <https://trac.macports.org/wiki/howto/PatchLocal?action=diff&version=4>
Revision 4
Comment: portindex will only work if the port is in a known category directory.
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/PatchLocal
=========================================================================
--- howto/PatchLocal (version: 3)
+++ howto/PatchLocal (version: 4)
@@ -19,8 +19,13 @@
 Do this to create a new Port (as root):
 {{{
 umask 022
-mkdir -p /usr/local/ports/
-cd /usr/local/ports
+mkdir -p /usr/local/ports
+}}}
+Create the port's category directory (using port "arb" as an example):
+{{{
+PORT_CATEGORY=`port dir arb | awk -F\/ '{ print $(NF-1) }'`
+mkdir /usr/local/ports/$PORT_CATEGORY
+cd /usr/local/ports/$PORT_CATEGORY
 cp -r `port dir arb` .
 mv arb arb-devel
 }}}
@@ -32,7 +37,7 @@
 
 Then run this command:
 {{{
-portindex   # Not working for me...?
+portindex 
 }}}
 
 === Step 2: '''Get your port's sourcecode''' ===
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/PatchLocal>
MacPorts <http://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'howto/PatchLocal' page.
If it was not you, please report to .


More information about the macports-changes mailing list