Opened 12 years ago

Last modified 9 years ago

#35589 closed enhancement

Add optional --patch parameter to `port install` — at Version 1

Reported by: chocolate.camera@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.2
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

  1. Open the port's Portfile directory
  2. Create the files subdirectory
  3. Copy the patch into it
  4. Edit the Portfile file and add the patchfiles directive.
  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?

Change History (1)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Type: requestenhancement

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.

Note: See TracTickets for help on using tickets.