Changes between Initial Version and Version 1 of Ticket #35589


Ignore:
Timestamp:
Aug 8, 2012, 10:21:36 AM (12 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

I think our answer to this use case is for the user to create a local copy of the Portfile with whatever modifications they want.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35589

    • Property Type changed from request to enhancement
  • Ticket #35589 – Description

    initial v1  
    33Building custom versions of a port is a pain when it could perfectly be automated considering the procedure is always identical.[[BR]]
    44
    5  
    6 1. Open the port's Portfile directory[[BR]]
    7 2. Create the `files` subdirectory[[BR]]
    8 3. Copy the patch into it[[BR]]
    9 4. Edit the `Portfile` file and add the `patchfiles` directive.[[BR]]
    10 5. Execute the command `port install portname`
     5 1. Open the port's Portfile directory
     6 2. Create the `files` subdirectory
     7 3. Copy the patch into it
     8 4. Edit the `Portfile` file and add the `patchfiles` directive.
     9 5. Execute the command `port install portname`
    1110
    1211Most of 1-4 cannot be done with the Finder or most Cocoa editors since those actions require root (or sudo).
     
    1413It would nicer to be able to do it on 1 stroke at install time with a command-line argument:
    1514
    16         sudo port install portname --patch /path/to/myPatch
     15{{{
     16sudo port install portname --patch /path/to/myPatch
     17}}}
    1718
    1819Or is there a similar way that I am missing?