Install from HEAD instead current stable version?

Rainer M Krug Rainer at krugs.de
Thu Jul 4 02:10:33 PDT 2013


Clemens Lang <cal at macports.org> writes:

> Hi,
>
> On Thu, Jul 04, 2013 at 10:08:01AM +0200, Rainer M Krug wrote:
>> I am looking for an easy way of installing the development version
>> (HEAD) of grass. 
>> 
>> under homebrew, I can simply say
>> 
>> ,----
>> | brew install grass --HEAD
>> `----
>> 
>> to instal the development version instead of the stable one - is there
>> something similar in port?
>
> MacPorts deliberately does not support this; there are no metrics to
> find out when to consider such a port outdated and the build does not
> yield reproducible results. If you need this, create a local portfile
> repository, copy the grass Portfile to this tree, modify it to fetch
> from current git head and change the commitish whenever you need a new
> version. You'll probably have to add a artificial version number (like a
> date) to get port to recognize that grass has been updated, since git
> commits aren't monotonic.

OK - thanks for the info.

>
> BTW: MacPorts will not stop you from specifying HEAD or master as git
> commit to fetch. You can use sudo port upgrade --force grass to build a
> new version then.

So then I would have to install grass as usual via

,----
| port install grass
`----

and then upgrade it and specify to use HEAD to fetch - how can I do
this?

Rainer

-- 
Rainer M. Krug

email: RMKrug<at>gmail<dot>com



More information about the macports-users mailing list