[MacPorts] #35589: Add optional --patch parameter to `port install`

MacPorts noreply at macports.org
Wed Aug 8 03:02:49 PDT 2012


#35589: Add optional --patch parameter to `port install`
----------------------------------------+-----------------------------------
 Reporter:  chocolate.camera@…          |       Owner:  macports-tickets@…                   
     Type:  request                     |      Status:  new                                  
 Priority:  Normal                      |   Milestone:                                       
Component:  base                        |     Version:  2.1.2                                
 Keywords:                              |        Port:                                       
----------------------------------------+-----------------------------------
 Add an optional argument to the `install` command to apply a patch before
 compiling.

 Building custom versions of a port is a pain when it could perfectly be
 automated considering the procedure is always identical.[[BR]]


 1. Open the port's Portfile directory[[BR]]
 2. Create the `files` subdirectory[[BR]]
 3. Copy the patch into it[[BR]]
 4. Edit the `Portfile` file and add the `patchfiles` directive.[[BR]]
 5. Execute the command `port install portname`

 Most of 1-4 cannot be done with the Finder or most Cocoa editors since
 those actions require root (or sudo).

 It would nicer to be able to do it on 1 stroke at install time with a
 command-line argument:

         sudo port install portname --patch /path/to/myPatch

 Or is there a similar way that I am missing?

-- 
Ticket URL: <https://trac.macports.org/ticket/35589>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list