Portfile skelton generator?

Kevin Van Vechten kvv at apple.com
Sat Mar 8 20:59:38 PST 2008


I'd pass a URL to a source archive as the parameter, and then derive  
the port name and version from that.  You could also generate the  
checksums, etc.

- Kevin

On Mar 8, 2008, at 5:49 PM, js wrote:

> Hi,
>
> I've just thought it would be very convenient to have Portfile skelton
> generator in base MacPorts system.
>
> The generator would works this way.
> Let's say I wanted to add a new port named foo.
>
> $ port skelton foo 1.0 > Portfile
>
> The content of Portfile would looks like
>
> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil;
> c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
> # $Id$
> PortSystem          1.0
>
> name                foo
> version             1.0
> #categories          unknown
> #maintainers        unknown
> #description         unknown
> #long_description    RRDtool is a system to store and display time- 
> series data
> #homepage             homepage
> #platforms           darwin
> #master_sites        # master_sites
>
> #checksums           md5  \
> #                    sha1 \
> #                    rmd160
>
> #depends_lib
> ...continued
>
>
> The generated Portfile contains many informative comments to help
> developers write a good Portfile.
> Generator itself would be very easy to implement once the skelton file
> itself was created.
>
> Any comments?


More information about the macports-dev mailing list