svn commit: r405049 - in head/devel: . py-natsort

Martin Wilke miwi at FreeBSD.org
Sat Jan 2 07:01:54 UTC 2016


Author: miwi
Date: Sat Jan  2 07:01:52 2016
New Revision: 405049
URL: https://svnweb.freebsd.org/changeset/ports/405049

Log:
  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.
  
  WWW: https://github.com/SethMMorton/natsort
  
  PR:		205563
  Submitted by:	Yuri Victorovich <yuri at rawbw.com>

Added:
  head/devel/py-natsort/
  head/devel/py-natsort/Makefile   (contents, props changed)
  head/devel/py-natsort/distinfo   (contents, props changed)
  head/devel/py-natsort/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat Jan  2 06:15:45 2016	(r405048)
+++ head/devel/Makefile	Sat Jan  2 07:01:52 2016	(r405049)
@@ -4148,6 +4148,7 @@
     SUBDIR += py-mx-experimental
     SUBDIR += py-mygpoclient
     SUBDIR += py-nagioscheck
+    SUBDIR += py-natsort
     SUBDIR += py-natural
     SUBDIR += py-ncurses
     SUBDIR += py-nose

Added: head/devel/py-natsort/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-natsort/Makefile	Sat Jan  2 07:01:52 2016	(r405049)
@@ -0,0 +1,20 @@
+# Created by: Yuri Victorovich <yuri at rawbw.com>
+# $FreeBSD$
+
+PORTNAME=	natsort
+PORTVERSION=	4.0.4
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri at rawbw.com
+COMMENT=	Natural sorting for python
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/devel/py-natsort/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-natsort/distinfo	Sat Jan  2 07:01:52 2016	(r405049)
@@ -0,0 +1,2 @@
+SHA256 (natsort-4.0.4.tar.gz) = c76ba3e85fba78f276ac06e4d47f2230d1070f9c19413b2a0bfe7de6af311839
+SIZE (natsort-4.0.4.tar.gz) = 63116

Added: head/devel/py-natsort/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-natsort/pkg-descr	Sat Jan  2 07:01:52 2016	(r405049)
@@ -0,0 +1,6 @@
+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.
+
+WWW: https://github.com/SethMMorton/natsort


More information about the svn-ports-head mailing list