Re: need help making a port for django

Daniel Ericsson <[email protected]> Mon, 4 Sep 2006 14:53:15 +0200
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
On 4 sep 2006, at 08.50, Erick Tryzelaar wrote:

> Good evening everyone,
>
> O got a Portfile/fetch question. I'm working on a portfile for  
> django, the web application program (http://www.djangoproject.com).  
> I'm running into an issue trying to fetch the source. django has  
> their webserver set up so that if you navigate to http:// 
> www.djangoproject.com/download/0.95/tarball/, you download  
> Django-0.95.tar.gz. I'm not sure how to get macports to work in  
> this situation. Anyone have any ideas?

There's a HTTP redirect there to their media-server... see below in  
for my  embryonic Portfile.

As a user of Django myself I've had some thoughts about how Django  
releases in MacPorts should work. I think it would be valuable to not  
only be able to install the latest release but have multiple Django  
releases in parallel.

I have a lot of 0.90 and 0.91 codebases which if I want to migrate  
will have to do on my own time/dime. So ideally there should be  
django090, django091 and django095 ports. Presumably there will be  
more since there's already backwards-incompatible changes in trunk  
after 0.95[1]. 0.90 and 0.91 are still being maintained with bugfixes  
as well so there is still movement there as well[2].

This what I've come up with so far:

-- Portfile --
# $Id: $

PortSystem          1.0
PortGroup           python24 1.0
name                django095
version             0.95
categories          python
maintainers         [email protected] [email protected]
description         Webframework written in Python
long_description    Django 0.95

homepage            http://www.djangoproject.com/
master_sites        http://media.djangoproject.com/releases/0.95/
distname            Django-${version}
checksums           md5 9ed7d6a0daa147c012e31d0894802951 \
                     sha1 2ea50ec96bf4b3f0b4821ce33ff422150c9c4f15 \
                     rmd160 95c405fff77e4a0cf51654e9d089a47b629dd875
-- End Portfile --    


[1] http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges
[2] http://code.djangoproject.com/browser/django/branches

- Daniel