[81306] trunk/dports/python
Joshua Root
jmr at macports.org
Fri Jul 29 00:53:27 PDT 2011
> Revision: 81306
> http://trac.macports.org/changeset/81306
> Author: stromnov at macports.org
> Date: 2011-07-29 00:20:37 -0700 (Fri, 29 Jul 2011)
> Log Message:
> -----------
> unify py*-blist
>
> Added Paths:
> -----------
> trunk/dports/python/py-blist/
> trunk/dports/python/py-blist/Portfile
> trunk/dports/python/py-blist/work
>
> Removed Paths:
> -------------
> trunk/dports/python/py26-blist/
> trunk/dports/python/py27-blist/
>
> Added: trunk/dports/python/py-blist/Portfile
> ===================================================================
> --- trunk/dports/python/py-blist/Portfile (rev 0)
> +++ trunk/dports/python/py-blist/Portfile 2011-07-29 07:20:37 UTC (rev 81306)
> @@ -0,0 +1,47 @@
> +# -*- 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: Portfile 77158 2011-03-21 14:24:14Z stromnov at macports.org $
> +
> +PortSystem 1.0
> +PortGroup python 1.0
> +
> +name py-blist
> +version 1.3.4
> +revision 0
> +categories-append devel
> +license BSD
> +platforms darwin
> +
> +maintainers stromnov openmaintainer
> +
> +description A list-like type with better asymptotic performance.
> +long_description A list-like type with better asymptotic performance \
> + and similar performance on small lists.
> +
> +homepage http://stutzbachenterprises.com/
> +master_sites http://pypi.python.org/packages/source/b/blist/
> +distname blist-${version}
> +
> +checksums md5 02e8bf33cffec9cc802f4567f39ffa6f \
> + sha1 a8a7401c6c3f12f27a79757b4d5f7ebc996aeb76 \
> + rmd160 1409f817660b9c9b9bf814c8b629118b47542b0d
> +
> +python.versions 24 25 26 27
> +
> +if {$subport == "py24-blist"} {
> + depends_lib port:py-setuptools
> +} elseif {$subport != $name} {
> + depends_lib port:py${python.version}-distribute
> +}
> +
> +post-patch {
> + file delete -force ${worksrcpath}/blist.egg-info
> +}
> +
> +post-destroot {
> + xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
> + xinstall -m 644 -W ${worksrcpath} README.rst LICENSE ${destroot}${prefix}/share/doc/${name}
> +}
The post-patch and the post-destroot need to be inside an "if {$subport
!= $name}", because the portgroup defines py-blist itself as a stub port
with no distfiles.
- Josh
More information about the macports-dev
mailing list