Trying to update a Portfile

Harry van der Wolf hvdwolf at gmail.com
Wed Jul 21 06:35:21 PDT 2010


Thanks for your reply. I was already typing a mail to mention that I had
found it. I "grepped" for other Portfiles having "sourceforge:".

I came to:
master_sites            sourceforge:hugin
distname                $name-$version.$revision

and that works.
The build just started and will take some time (if succesful).

Harry

2010/7/21 Joshua Root <jmr at macports.org>

> On 2010-7-21 20:05 , Harry van der Wolf wrote:
> > Hi,
> >
> > currently hugin is at svn version 2903 which is way too old. I'm trying
> > to update the port to the current stable version 2010.0 which can be
> > found at <http://sourceforge.net/projects/hugin/files/hugin> and than at
> > <hugin-2010.0/hugin-2010.0.0.tar.gz>
> > Note that the folder name is "hugin-2010.0" and the distfile name is
> > "hugin-2010.0.0.tar.gz" (the mac dmg in the folder is my universal
> > bundle, being the bundle maintainer for hugin. It's not the sourcecode
> > tar.gz and it's a very complicated XCode build).
> >
> > Whatever I set in the Portfile, I only and always get a 113kb html file
> > inside "/opt/local/var/macports/distfiles/hugin/" instead of the tar.gz.
> > That, off course, gives an error in the md5/sha1 checksums (which I set
> > corectly for the 2010.0 var.gz).
> > What am I doing wrong?
> >
> > Currently I have in the (modified) Portfile:
> > <snip>
> > name                    hugin
> > version                 2010.0
> > revision                0
> > <snip>
> > master_sites
> > http://sourceforge.net/projects/hugin/files/hugin/$name-$version
>
> Just use "master_sites sourceforge", see
> <
> http://guide.macports.org/chunked/reference.phases.html#reference.phases.fetch
> >.
>
> > distname                $name-$version.$revision
>
> The distname should not include the revision since it is meant to be
> incremented independent of the upstream version.
>
> > distfiles               $name-$version.$revision.tar.gz
>
> No need to set distfiles since it defaults to
> "${distname}${extract.suffix}".
>
> > extract.suffix          .tar.gz
>
> This is also the default extract.suffix and can be omitted.
> <
> http://guide.macports.org/chunked/reference.phases.html#reference.phases.extract
> >
>
> > worksrcdir              $name-$version.$revision
>
> Worksrcdir also defaults to "$distname".
>
> > <snip>
> >
> > I also tried:
> > <snip>
> > master_sites            sourceforge:hugin
> > master_sites.mirror_subdir      $name-$version
>
> Setting mirror_subdir here was likely the problem.
>
> - Josh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100721/0dd5ed38/attachment.html>


More information about the macports-users mailing list