[133250] trunk/dports/python
larryv at macports.org
larryv at macports.org
Mon Feb 23 17:26:09 PST 2015
Revision: 133250
https://trac.macports.org/changeset/133250
Author: larryv at macports.org
Date: 2015-02-23 17:26:09 -0800 (Mon, 23 Feb 2015)
Log Message:
-----------
py{27,34}-natsort: New port (#46907)
Added Paths:
-----------
trunk/dports/python/py-natsort/
trunk/dports/python/py-natsort/Portfile
Added: trunk/dports/python/py-natsort/Portfile
===================================================================
--- trunk/dports/python/py-natsort/Portfile (rev 0)
+++ trunk/dports/python/py-natsort/Portfile 2015-02-24 01:26:09 UTC (rev 133250)
@@ -0,0 +1,38 @@
+# -*- 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
+
+name py-natsort
+set realName natsort
+version 3.5.2
+platforms darwin
+license MIT
+maintainers phas.ubc.ca:jfcaron openmaintainer
+
+description Natural sorting for Python
+long_description When you try to sort a list of strings that \
+ contain numbers, the normal Python sort algorithm \
+ sorts lexicographically, so you might not get the \
+ results that you expect. `natsort` provides \
+ a function `natsorted` that helps sort lists \
+ 'naturally', either as real numbers (i.e. \
+ signed/unsigned floats or ints), or as versions.
+homepage https://github.com/SethMMorton/$realName
+
+master_sites https://pypi.python.org/packages/source/n/$realName
+distname $realName-${version}
+checksums rmd160 7c6a716355f503779bcd43120d6ac7f8f9acbf49 \
+ sha256 f8129379aeb5a99ec6fbbb57acbcabeb0b0996db6a8bea3f9feb6766650ce642
+
+python.versions 27 34
+
+if {${subport} ne ${name}} {
+ depends_build port:py${python.version}-setuptools
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url https://pypi.python.org/pypi/$realName
+ livecheck.regex $realName-(\\d+(?:\\.\\d+)*)${extract.suffix}
+}
Property changes on: trunk/dports/python/py-natsort/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/20150223/f12ddcac/attachment-0001.html>
More information about the macports-changes
mailing list