[83515] trunk/dports/science

Ryan Schmidt ryandesign at macports.org
Sun Sep 4 02:46:43 PDT 2011


On Sep 4, 2011, at 04:03, takeshi at macports.org wrote:

> Revision: 83515
>          http://trac.macports.org/changeset/83515
> Author:   takeshi at macports.org
> Date:     2011-09-04 02:03:32 -0700 (Sun, 04 Sep 2011)
> Log Message:
> -----------
> gmt: replaced by gmt4
> gmt4: added. succeeds gmt.
> gmt5: added. development version.
> 
> Modified Paths:
> --------------
>    trunk/dports/science/gmt/Portfile
> 
> Added Paths:
> -----------
>    trunk/dports/science/gmt4/
>    trunk/dports/science/gmt4/Portfile
>    trunk/dports/science/gmt5/
>    trunk/dports/science/gmt5/Portfile
> 
> Modified: trunk/dports/science/gmt/Portfile
> ===================================================================
> --- trunk/dports/science/gmt/Portfile	2011-09-04 08:34:10 UTC (rev 83514)
> +++ trunk/dports/science/gmt/Portfile	2011-09-04 09:03:32 UTC (rev 83515)
> @@ -5,7 +5,8 @@
> 
> name                        gmt
> version                     4.5.6
> -revision                    1
> +revision                    2
> +replaced_by                 gmt4
> categories                  science
> maintainers                 takeshi
> license                     GPL-2
> @@ -15,120 +16,16 @@
>     producing Encapsulated PostScript File (EPS) illustrations  \
>     ranging from simple x-y plots via contour maps to           \
>     artificially illuminated surfaces and 3-D perspective views.
> +conflicts                   gmt4 \
> +                            gmt5

A port that is replaced_by another should not contain a "conflicts" line; the port cannot be installed anymore so it cannot conflict with any port. I see the guide currently erroneously shows adding the "conflicts" line. I will fix the guide.


> Added: trunk/dports/science/gmt4/Portfile
> ===================================================================
> --- trunk/dports/science/gmt4/Portfile	                        (rev 0)
> +++ trunk/dports/science/gmt4/Portfile	2011-09-04 09:03:32 UTC (rev 83515)
> @@ -0,0 +1,94 @@
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
> +# $Id$
> +
> +PortSystem                  1.0
> +
> +name                        gmt4
> +version                     4.5.7
> +revision                    1
> +categories                  science
> +platforms                   darwin
> +maintainers                 takeshi
> +license                     LGPL-3
> +description                 the generic mapping tools
> +long_description GMT is an open source collection of ~65 tools  \
> +    for manipulating geographic and Cartesian data sets and     \
> +    producing Encapsulated PostScript File (EPS) illustrations  \
> +    ranging from simple x-y plots via contour maps to           \
> +    artificially illuminated surfaces and 3-D perspective views.
> +conflicts                   gmt

A port should not declare a conflict with the port it replaces. It causes this problem:


$ port outdated gmt
The following installed ports are outdated:
gmt                            4.5.6_1 < 4.5.6_2         
$ sudo port upgrade gmt
--->  gmt is replaced by gmt4
--->  Computing dependencies for gmt4
Error: Unable to upgrade port: Can't install gmt4 because conflicting ports are installed: gmt
To report a bug, see <http://guide.macports.org/#project.tickets>





More information about the macports-dev mailing list