Re: Dealing with sourceforge master dir

2011-06-30 Thread Chris Rees
On 30 June 2011 10:22, David Demelier demelier.da...@gmail.com wrote:
 Hello,

 I'm trying to write a new port for the tiled application. It is hosted by
 sourceforge as you can see here :

 http://sourceforge.net/projects/tiled/

 But the download fails since the distfile is not in the usual directories :

 = Attempting to fetch
 http://kent.dl.sourceforge.net/project/tiled/tiled/0.6.2/tiled-qt-0.6.2.tar.gz
 ...

 PORTNAME=       tiled
 PORTVERSION=    0.6.2
 CATEGORIES=     devel
 DISTFILES=      ${PORTNAME}-qt-${PORTVERSION}.tar.gz
 MASTER_SITE=    SF

 This is the correct download page :

 http://sourceforge.net/projects/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz/download

 How can I correct it?

Try MASTER_SITES=SF/tiled/files/tiled-qt/0.6.2/

By the way, did you copy/paste this out of your Makefile? It should be
MASTER_SITES plural.

Chris
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Dealing with sourceforge master dir

2011-06-30 Thread David Demelier

On 30/06/2011 11:41, Chris Rees wrote:

On 30 June 2011 10:22, David Demelierdemelier.da...@gmail.com  wrote:

Hello,

I'm trying to write a new port for the tiled application. It is hosted by
sourceforge as you can see here :

http://sourceforge.net/projects/tiled/

But the download fails since the distfile is not in the usual directories :

=  Attempting to fetch
http://kent.dl.sourceforge.net/project/tiled/tiled/0.6.2/tiled-qt-0.6.2.tar.gz
...

PORTNAME=   tiled
PORTVERSION=0.6.2
CATEGORIES= devel
DISTFILES=  ${PORTNAME}-qt-${PORTVERSION}.tar.gz
MASTER_SITE=SF

This is the correct download page :

http://sourceforge.net/projects/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz/download

How can I correct it?


Try MASTER_SITES=SF/tiled/files/tiled-qt/0.6.2/

By the way, did you copy/paste this out of your Makefile? It should be
MASTER_SITES plural.

Chris


It was my fault when I recopied the content of Makefile but it was in 
plural. Your MASTER_SITES variable seems to locate correctly the file


= Attempting to fetch 
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz


But it ends on Moved temporarly...

= Attempting to fetch 
http://ufpr.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz
fetch: 
http://ufpr.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz: 
Moved Temporarily
= Attempting to fetch 
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz
fetch: 
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz: 
Moved Temporarily


Sourceforge downloads are very annoying.

--
David Demelier
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Dealing with sourceforge master dir

2011-06-30 Thread Koop Mast

On 30-6-2011 11:50, David Demelier wrote:

On 30/06/2011 11:41, Chris Rees wrote:

On 30 June 2011 10:22, David Demelierdemelier.da...@gmail.com  wrote:

Hello,

I'm trying to write a new port for the tiled application. It is 
hosted by

sourceforge as you can see here :

http://sourceforge.net/projects/tiled/

But the download fails since the distfile is not in the usual 
directories :


=  Attempting to fetch
http://kent.dl.sourceforge.net/project/tiled/tiled/0.6.2/tiled-qt-0.6.2.tar.gz 


...

PORTNAME=   tiled
PORTVERSION=0.6.2
CATEGORIES= devel
DISTFILES=  ${PORTNAME}-qt-${PORTVERSION}.tar.gz
MASTER_SITE=SF

This is the correct download page :

http://sourceforge.net/projects/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz/download 



How can I correct it?


Try MASTER_SITES=SF/tiled/files/tiled-qt/0.6.2/

By the way, did you copy/paste this out of your Makefile? It should be
MASTER_SITES plural.

Chris


It was my fault when I recopied the content of Makefile but it was in 
plural. Your MASTER_SITES variable seems to locate correctly the file


= Attempting to fetch 
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz


But it ends on Moved temporarly...

= Attempting to fetch 
http://ufpr.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz
fetch: 
http://ufpr.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz: 
Moved Temporarily
= Attempting to fetch 
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz
fetch: 
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz: 
Moved Temporarily


Sourceforge downloads are very annoying.



You should do fetch -v sf-download-url-from-website in a console and 
put the url it found the distfile on in your make file in the maner 
chris mentioned. It is a little bit more work but it works.


-Koop
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Dealing with sourceforge master dir

2011-06-30 Thread Rainer Hurling

Am 30.06.2011 11:50 (UTC+1) schrieb David Demelier:

On 30/06/2011 11:41, Chris Rees wrote:

On 30 June 2011 10:22, David Demelierdemelier.da...@gmail.com wrote:

Hello,

I'm trying to write a new port for the tiled application. It is
hosted by
sourceforge as you can see here :

http://sourceforge.net/projects/tiled/

But the download fails since the distfile is not in the usual
directories :

= Attempting to fetch
http://kent.dl.sourceforge.net/project/tiled/tiled/0.6.2/tiled-qt-0.6.2.tar.gz

...

PORTNAME= tiled
PORTVERSION= 0.6.2
CATEGORIES= devel
DISTFILES= ${PORTNAME}-qt-${PORTVERSION}.tar.gz
MASTER_SITE= SF

This is the correct download page :

http://sourceforge.net/projects/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz/download


How can I correct it?


Try MASTER_SITES= SF/tiled/files/tiled-qt/0.6.2/


MASTER_SITES=   SF/tiled/tiled-qt/${PORTVERSION}/

should do it.

Regards,
Rainer Hurling


By the way, did you copy/paste this out of your Makefile? It should be
MASTER_SITES plural.

Chris


It was my fault when I recopied the content of Makefile but it was in
plural. Your MASTER_SITES variable seems to locate correctly the file

= Attempting to fetch
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz


But it ends on Moved temporarly...

= Attempting to fetch
http://ufpr.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz

fetch:
http://ufpr.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz:
Moved Temporarily
= Attempting to fetch
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz

fetch:
http://waix.dl.sourceforge.net/project/tiled/files/tiled-qt/0.6.2/tiled-qt-0.6.2.tar.gz:
Moved Temporarily

Sourceforge downloads are very annoying.


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Dealing with sourceforge master dir

2011-06-30 Thread David Demelier

On 30/06/2011 12:06, Rainer Hurling wrote:

MASTER_SITES=   SF/tiled/tiled-qt/${PORTVERSION}/


It works, Thanks!

--
David Demelier
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Dealing with sourceforge master dir

2011-06-30 Thread Chris Rees
On 30 June 2011 11:09, David Demelier demelier.da...@gmail.com wrote:
 On 30/06/2011 12:06, Rainer Hurling wrote:

 MASTER_SITES=   SF/tiled/tiled-qt/${PORTVERSION}/

 It works, Thanks!


Er, yes, sorry. Never hardcode things into Makefiles where variables could go!

Also, see what kwm@ wrote above about following the redirects.

Chris
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org