[46495] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Thu Feb 5 18:54:05 PST 2009


On Feb 5, 2009, at 14:26, snc at macports.org wrote:

> Revision: 46495
>           http://trac.macports.org/changeset/46495
> Author:   snc at macports.org
> Date:     2009-02-05 12:26:28 -0800 (Thu, 05 Feb 2009)
> Log Message:
> -----------
> created dot2tex, ticket #18195
>
> Added Paths:
> -----------
>     trunk/dports/python/dot2tex/
>     trunk/dports/python/dot2tex/Portfile
>
> Added: trunk/dports/python/dot2tex/Portfile
> ===================================================================
> --- trunk/dports/python/dot2tex/Portfile	                         
> (rev 0)
> +++ trunk/dports/python/dot2tex/Portfile	2009-02-05 20:26:28 UTC  
> (rev 46495)
> @@ -0,0 +1,49 @@
> +# $Id$
> +
> +PortSystem          1.0
> +
> +name                dot2tex
> +version             2.8.4
> +categories          graphics print python
> +platforms           darwin
> +maintainers         nomaintainer
> +description         Convert graphs generated by Graphviz to LaTeX  
> friendly formats
> +long_description \
> +   The purpose of dot2tex is to give graphs generated by Graphviz  
> a more \
> +   LaTeX friendly look and feel. This is accomplished by  
> converting xdot \
> +   output from Graphviz to a series of PSTricks or PGF/TikZ commands.
> +
> +homepage            http://www.fauskes.net/code/dot2tex/
> +master_sites        googlecode:dot2tex

If the part after the colon is the same as ${name} then you don't  
need to list it.

> +distname            dot2tex-${version}

This line can be removed because it is the default.

> +checksums           md5     e63d164fad5722290646cb200dcfcb61 \
> +                    sha1     
> 0b091309857278126a09fb4f15cda5ed3b3d1020 \
> +                    rmd160  4ed95632f9d356e070fe361e1c07b98da36cfed2
> +
> +livecheck.regex     <a href="http://dot2tex.googlecode.com/files/ 
> dot2tex-(.*)\.tar\.gz"
> +
> +depends_run         bin:dot:graphviz bin:latex:texlive  
> bin:pdflatex:texlive
>
> +default_variants    +python25

Default variants should not be used in this way. It makes it  
difficult to select anything else. (You would have to specify "sudo  
port install dot2tex +python24 -python25" in order to deselect the  
default variant, and every time you want to upgrade the port you  
would have to remember to "sudo port upgrade dot2tex -python25" to  
deselect the default variant.) Instead please do what e.g. the  
minivmac port does, and use the default variant only if another  
variant has not already been selected.

> +variant python24 conflicts python25 python26 {
> +    PortGroup           python24 1.0
> +    depends_lib-append  port:py-parsing
> +}
> +
> +variant python25 conflicts python24 python26 {
> +    PortGroup           python25 1.0
> +    depends_lib-append  port:py25-parsing
> +}
> +
> +variant python26 conflicts python24 python25 {
> +    PortGroup           python26 1.0
> +    depends_lib-append  port:py26-parsing
> +}

I must admit I have never seen a PortGroup defined in a variant  
before. Does this work? Can anyone think of a problem with this?





More information about the macports-dev mailing list