Macports Portfiles generation
Created by: tiagofrepereira2012
Since Bob is already on macports, the update of each package in this repository is a bit painful.
Basically for each package update we are supposed regenerate the Portfile (the installation instructions for the macports) and open a ticket on macports attaching the diff
between this new Portfile with the current.
Would be awesome to have a step on new_version.py
script to the that for us
The steps are the following (I will use the package py-bob-blitz as a reference)
1 - Download the current Portfile from the macports official repository (http://svn.macports.org/repository/macports/trunk/dports/python/py-bob-
blitz/Portfile)
2 - Update the line that corresponds the version (line 11 in this example)
3 - Update the line that corresponds the github tag (line 27 in this example)
4 - Download the tarball (last tag) from github (bob.blitz in this case)
5 - Generate sha256
and the rmd160
checksums
6 - Update the line that corresponds with the checksums (lines 34 and 35 in this example)
7 - Save this Portfile in a new file
8 - Generate the diff
of this new Portfile with the original one
I think it is doable