[MacPorts] #53851: Add target that bumps version and checksum

MacPorts noreply at macports.org
Fri Mar 24 01:54:47 UTC 2017


#53851: Add target that bumps version and checksum
--------------------------+-----------------
  Reporter:  l2dy         |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+-----------------

Old description:

> Homebrew has `brew bump-formula-pr`. Such functionality saves a lot of
> work when updating many ports.
>
> Use cases (phoney commands):
> * `port bump <portname> <version>` bumps version and checksums
> * `port bump <portname>` bumps checksums only
> * `port bump --livecheck <portname>` bumps both with livecheck result

New description:

 Homebrew has `brew bump-formula-pr`. Such functionality saves a lot of
 work when updating many ports.

 Use cases (pseudo commands):
 * `port bump [[portname | pseudo-portname | port-expressions | port-url]]`
 bumps checksums only
 * `port bump [[portname | pseudo-portname | port-expressions | port-url]]
 @<version>` bumps version and checksums
 * `port bump --livecheck [[portname | pseudo-portname | port-expressions |
 port-url]]` bumps both with livecheck result

--

Comment (by l2dy):

 Checksum for multiple files shouldn't be a problem, simply find and
 replace every old hash with the corresponding new one should work. Some
 ports have version set by custom methods so the version has to be updated
 manually. The Portfile have to be checked afterwards anyway.

--
Ticket URL: <https://trac.macports.org/ticket/53851#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list