[macports-ports] 01/04: py-graphviz: new port

Ryan Schmidt ryandesign at macports.org
Sun Aug 20 20:23:29 UTC 2017


> On Aug 19, 2017, at 09:37, Marcus Calhoun-Lopez <mcalhoun at macports.org> wrote:
> 
> Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
> in repository macports-ports.
> 
> 
> https://github.com/macports/macports-ports/commit/2eca66ffe13a756a645f2222f42f99c2ad3a1848
> 
> commit 2eca66ffe13a756a645f2222f42f99c2ad3a1848
> 
> Author: Marcus Calhoun-Lopez <marcuscalhounlopez at gmail.com>
> AuthorDate: Sat Aug 19 07:32:06 2017 -0700
> 
> 
>     py-graphviz: new port
> 
> ---
>  python/py-graphviz/Portfile | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
> 
> 
> diff --git a/python/py-graphviz/Portfile b/python/py-graphviz/Portfile
> new file mode 100644
> index 0000000..89ed9a9
> --- /dev/null
> +++ b/python/py-graphviz/Portfile
> @@ -0,0 +1,38 @@
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
> +
> +PortSystem 1.0
> +PortGroup  python 1.0
> +PortGroup  github 1.0
> +
> +github.setup        xflr6 graphviz 0.8

...

> +master_sites        ${github.homepage}/archive/
> +distname            ${version}
> +worksrcdir          ${github.project}-${version}

You should not need to change master_sites, distname, worksrcdir when fetching from a GitHub tag. The values the portgroup sets should be sufficient, though since it will fetch from a tarball URL and not an archive URL, the checksums will be different. Please remove these lines when you update the port to the next version. Further documentation of this portgroup is available in the comments at the top of the portgroup file.

If you want to implement fetching from archive URLs, please do that in the portgroup file, not in each port individually. See:

https://trac.macports.org/ticket/40518




More information about the macports-dev mailing list