[91398] trunk/dports

Ryan Schmidt ryandesign at macports.org
Sat Mar 31 17:07:49 PDT 2012


On Mar 31, 2012, at 13:00, landonf at macports.org wrote:

> Revision: 91398
>          https://trac.macports.org/changeset/91398
> Author:   landonf at macports.org
> Date:     2012-03-31 11:00:42 -0700 (Sat, 31 Mar 2012)
> Log Message:
> -----------
> Add legit, a command line interface for 'git', and its required dependencies.


> Added: trunk/dports/devel/legit/Portfile
> ===================================================================
> --- trunk/dports/devel/legit/Portfile	                        (rev 0)
> +++ trunk/dports/devel/legit/Portfile	2012-03-31 18:00:42 UTC (rev 91398)
> @@ -0,0 +1,41 @@
> +# $Id$
> +
> +PortSystem 1.0
> +PortGroup		github 1.0
> +PortGroup		python 1.0

[snip]

> +python.default_version	27
> +depends_lib		port:py-requests \
> +			port:py-gitpython \
> +			port:py-gitdb \
> +			port:py-clint \
> +			port:py27-chardet \
> +			port:py-certifi

These py-* ports are stub ports. A port mustn't declare a dependency on a stub port; instead, declare dependencies on the specific subports that provide the software that's actually required. jmr fixed this:

https://trac.macports.org/changeset/91404


> +post-destroot {
> +	file rename ${destroot}${prefix}/bin/legit-2.7 ${destroot}${prefix}/bin/legit
> +}

This can be more simply accomplished by clearing the "python.link_binaries_suffix" variable. jmr fixed this:

https://trac.macports.org/changeset/91404


> Added: trunk/dports/python/py-gitdb/Portfile
> ===================================================================
> --- trunk/dports/python/py-gitdb/Portfile	                        (rev 0)
> +++ trunk/dports/python/py-gitdb/Portfile	2012-03-31 18:00:42 UTC (rev 91398)
> @@ -0,0 +1,27 @@
> +# $Id: Portfile 86877 2011-11-06 17:56:12Z ram at macports.org $
> +
> +PortSystem        1.0
> +PortGroup         python 1.0
> +
> +name              py-gitdb

[snip]

> +python.versions   26 27
> +python.default_version 27
> +
> +depends_run       port:py-async-task \
> +                  port:py-smmap

Same as above, you mustn't declare a dependency on stub ports. jmr fixed this:

https://trac.macports.org/changeset/91401





More information about the macports-dev mailing list