[143364] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Sat Dec 12 10:52:40 PST 2015


> On Dec 12, 2015, at 11:40 AM, aronnax at macports.org wrote:
> 
> Revision
> 143364
> Author
> aronnax at macports.org
> Date
> 2015-12-11 06:26:14 -0800 (Fri, 11 Dec 2015)
> Log Message
> 
> py-socks: new port to replace obsolete py-socksipy-branch
> Modified Paths
> 
> 	• trunk/dports/python/py-socksipy-branch/Portfile
> Added Paths
> 
> 	• trunk/dports/python/py-socks/
> 	• trunk/dports/python/py-socks/Portfile
> Diff
> 
> Added: trunk/dports/python/py-socks/Portfile (0 => 143364)
> 
> --- trunk/dports/python/py-socks/Portfile	                        (rev 0)
> +++ trunk/dports/python/py-socks/Portfile	2015-12-11 14:26:14 UTC (rev 143364)
> 
> @@ -0,0 +1,33 @@
> 
> +# $Id$
> +
> +PortSystem        1.0
> +PortGroup         python 1.0
> +
> +set realname      PySocks
> +name              py-socks
> +version           1.5.6
> +categories-append devel net
> +license           BSD
> +platforms         darwin
> +maintainers       aronnax openmaintainer
> +
> +description       python SOCKS client module
> +long_description  PySOCKS is a SOCKS client module, branched off several \
> +                  earlier abandoned projects
> +
> +homepage          
> http://pypi.python.org/pypi/${realname}/
> 
> +master_sites      pypi:[string index ${realname} 0]/${realname}
> +distname          ${realname}-${version}
> +
> +python.versions   26 27 33 34 35
> +
> +checksums         md5    c825c7c52b2c79dde73cac8d04bd25cb \
> +                  rmd160 e66e508485ed4ad89e1333ef5029c81102123ef0 \
> +                  sha256 a62b35b13968ba3642a973d115ae6a11be886b5f5ae0841a3ecad4b4f1d7deb1
> +
> +if {${name} ne ${subport}} {
> +  livecheck.type    none
> +} else {
> +  livecheck.name    ${realname}
> +  livecheck.type    pypi
> +}

You should use four spaces per indent, and should include the standard modeline at the top of the file.

See https://guide.macports.org/#development.practices.portstyle




More information about the macports-dev mailing list