summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorkleink <kleink@pkgsrc.org>2013-07-06 17:36:39 +0000
committerkleink <kleink@pkgsrc.org>2013-07-06 17:36:39 +0000
commit5a8058b3261a016abc1a6680523dfea8afe360f0 (patch)
treeccb7dd0e43fe673887a0e55828cf2574bac498a7 /games
parent21d13f307fd670c8d51d7c7996e7b71e9321f9be (diff)
downloadpkgsrc-5a8058b3261a016abc1a6680523dfea8afe360f0.tar.gz
Import ranking-0.3.1 as games/py-ranking.
In most cases, enumerate (a Python standard function) is the best tool to make a ranking. But how about tie scores? This module implements Ranking that looks like enumerate but generates ranks instead of indexes and various strategies to assign ranks to tie scores.
Diffstat (limited to 'games')
-rw-r--r--games/py-ranking/DESCR6
-rw-r--r--games/py-ranking/Makefile18
-rw-r--r--games/py-ranking/PLIST8
-rw-r--r--games/py-ranking/distinfo5
4 files changed, 37 insertions, 0 deletions
diff --git a/games/py-ranking/DESCR b/games/py-ranking/DESCR
new file mode 100644
index 00000000000..339aa33446b
--- /dev/null
+++ b/games/py-ranking/DESCR
@@ -0,0 +1,6 @@
+In most cases, enumerate (a Python standard function) is the best tool
+to make a ranking. But how about tie scores?
+
+This module implements Ranking that looks like enumerate but generates
+ranks instead of indexes and various strategies to assign ranks to
+tie scores.
diff --git a/games/py-ranking/Makefile b/games/py-ranking/Makefile
new file mode 100644
index 00000000000..c8a66354058
--- /dev/null
+++ b/games/py-ranking/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2013/07/06 17:36:39 kleink Exp $
+
+DISTNAME= ranking-0.3.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= games python
+MASTER_SITES= http://pypi.python.org/packages/source/r/ranking/
+
+MAINTAINER= kleink@NetBSD.org
+HOMEPAGE= http://pythonhosted.org/ranking/
+COMMENT= Library for ranking collection
+LICENSE= modified-bsd
+
+USE_LANGUAGES= # empty
+
+PYTHON_VERSIONS_INCLUDE_3X= yes
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/py-ranking/PLIST b/games/py-ranking/PLIST
new file mode 100644
index 00000000000..8e13573afde
--- /dev/null
+++ b/games/py-ranking/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2013/07/06 17:36:39 kleink Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/ranking.py
+${PYSITELIB}/ranking.pyc
+${PYSITELIB}/ranking.pyo
diff --git a/games/py-ranking/distinfo b/games/py-ranking/distinfo
new file mode 100644
index 00000000000..bf7179055dc
--- /dev/null
+++ b/games/py-ranking/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/07/06 17:36:39 kleink Exp $
+
+SHA1 (ranking-0.3.1.tar.gz) = 66514d2ab5ef72ffe2d1373356bc7422102c0dfa
+RMD160 (ranking-0.3.1.tar.gz) = 8af18a999c0bf907e394810aed4beb0c2d069e18
+Size (ranking-0.3.1.tar.gz) = 5110 bytes