[123781] trunk/dports/python
petr at macports.org
petr at macports.org
Thu Aug 14 07:06:43 PDT 2014
Revision: 123781
https://trac.macports.org/changeset/123781
Author: petr at macports.org
Date: 2014-08-14 07:06:43 -0700 (Thu, 14 Aug 2014)
Log Message:
-----------
py-netlib @0.10.1: new port
Added Paths:
-----------
trunk/dports/python/py-netlib/
trunk/dports/python/py-netlib/Portfile
Added: trunk/dports/python/py-netlib/Portfile
===================================================================
--- trunk/dports/python/py-netlib/Portfile (rev 0)
+++ trunk/dports/python/py-netlib/Portfile 2014-08-14 14:06:43 UTC (rev 123781)
@@ -0,0 +1,54 @@
+# -*- 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
+PortGroup python 1.0
+
+set _name netlib
+set _n [string index ${_name} 0]
+
+name py-${_name}
+version 0.10.1
+categories-append net
+platforms darwin
+supported_archs noarch
+license MIT
+
+maintainers petr openmaintainer
+
+description A collection of network utilities from mitmproxy project
+long_description \
+ Netlib is a collection of network utility classes, used by the pathod \
+ and mitmproxy projects. It differs from other projects in some \
+ fundamental respects, because both pathod and mitmproxy often need to \
+ violate standards. This means that protocols are implemented as small, \
+ well-contained and flexible functions, and are designed to allow \
+ misbehaviour when needed.
+
+homepage https://pypi.python.org/pypi/${_name}/${version}
+
+distname ${_name}-${version}
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+
+checksums md5 d6dcd804e1323c25d12b1f6ee1b600b8 \
+ rmd160 c2e451c99ef377d13006687a4255ddde30d23de7 \
+ sha256 ee22365f6aad99326fa83788e8f71ea940affea0df3142efde247c7d520fab7e
+
+python.versions 26 27
+
+if {${name} ne ${subport}} {
+ depends_lib-append port:py${python.version}-asn1 \
+ port:py${python.version}-openssl
+
+ # temporal hack to remove undesired directory from distro
+ # remove when distfile is fixed
+ post-extract {
+ delete ${worksrcpath}/netlib/__pycache__
+ }
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+}
Property changes on: trunk/dports/python/py-netlib/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140814/d2a1dc99/attachment.html>
More information about the macports-changes
mailing list