[135878] trunk/dports/python
petr at macports.org
petr at macports.org
Wed May 6 03:18:52 PDT 2015
Revision: 135878
https://trac.macports.org/changeset/135878
Author: petr at macports.org
Date: 2015-05-06 03:18:52 -0700 (Wed, 06 May 2015)
Log Message:
-----------
py-configargparse: new port
Added Paths:
-----------
trunk/dports/python/py-configargparse/
trunk/dports/python/py-configargparse/Portfile
Added: trunk/dports/python/py-configargparse/Portfile
===================================================================
--- trunk/dports/python/py-configargparse/Portfile (rev 0)
+++ trunk/dports/python/py-configargparse/Portfile 2015-05-06 10:18:52 UTC (rev 135878)
@@ -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 ConfigArgParse
+set _n [string index ${_name} 0]
+
+name py-configargparse
+version 0.9.3
+platforms darwin
+supported_archs noarch
+license MIT
+
+maintainers petr openmaintainer
+
+description ${_name} extends argparse with config files and environment variables support
+long_description \
+ ${_name} is a drop-in replacement for argparse that adds support for \
+ config files and environment variables. It allows options to also be set \
+ via config files and/or environment variables.
+
+homepage https://github.com/zorro3/ConfigArgParse
+
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
+
+checksums md5 69273e8099661cd12985b85d795ab73e \
+ rmd160 d8ecc734b0a4e63a7a5061533eb404e6ca54ab74 \
+ sha256 141c57112e1f8eb7e594a9820e95af897a7fa2d186cef5cff7e08cb3f7252829
+
+python.versions 27 34
+
+if {${name} ne ${subport}} {
+ depends_build-append port:py${python.version}-setuptools
+
+ # Adding documentation
+ post-destroot {
+ set dest_doc ${destroot}${prefix}/share/doc/${subport}
+ xinstall -d ${dest_doc}
+
+ xinstall -m 755 -W ${worksrcpath} \
+ LICENSE \
+ README.rst \
+ ${dest_doc}
+ }
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url https://pypi.python.org/pypi/${_name}/json
+ livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
+}
Property changes on: trunk/dports/python/py-configargparse/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/20150506/b3d617dd/attachment.html>
More information about the macports-changes
mailing list