summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr>2010-10-15 12:12:01 +0000
committerLABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr>2010-10-15 12:12:01 +0000
commit2411cacd7522a5388f27d6c7b97dca0d6edf280a (patch)
tree642169b1ddcc9346edd2225237992698c6f6ccea
parentdev-vcs/tortoisehg: Version bump (diff)
downloadsunrise-reviewed-2411cacd7522a5388f27d6c7b97dca0d6edf280a.tar.gz
sunrise-reviewed-2411cacd7522a5388f27d6c7b97dca0d6edf280a.tar.bz2
sunrise-reviewed-2411cacd7522a5388f27d6c7b97dca0d6edf280a.zip
dev-python/python-cluster: New Ebuild for bug 340975 thanks to Tommy
svn path=/sunrise/; revision=11428
-rw-r--r--dev-python/python-cluster/ChangeLog9
-rw-r--r--dev-python/python-cluster/Manifest5
-rw-r--r--dev-python/python-cluster/files/python-cluster-python3.patch37
-rw-r--r--dev-python/python-cluster/metadata.xml6
-rw-r--r--dev-python/python-cluster/python-cluster-1.1.1_beta3.ebuild35
5 files changed, 92 insertions, 0 deletions
diff --git a/dev-python/python-cluster/ChangeLog b/dev-python/python-cluster/ChangeLog
new file mode 100644
index 000000000..18cd6c228
--- /dev/null
+++ b/dev-python/python-cluster/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-python/python-cluster
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 15 Oct 2010; LABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr
+ +files/python-cluster-python3.patch, +python-cluster-1.1.1_beta3.ebuild,
+ +metadata.xml:
+ New Ebuild for bug 340975 thanks to Tommy
+
diff --git a/dev-python/python-cluster/Manifest b/dev-python/python-cluster/Manifest
new file mode 100644
index 000000000..e846b5bb2
--- /dev/null
+++ b/dev-python/python-cluster/Manifest
@@ -0,0 +1,5 @@
+AUX python-cluster-python3.patch 1261 RMD160 b16bc79bf1bdec758c35b423ba442d69dfaad339 SHA1 78759d7a82fc08f368f5b3643561b3ca00d22dea SHA256 3c35ce0982ec40ace8686413e993cc096245ceaf6b93da4a0a319f3893a3eff3
+DIST cluster-1.1.1b3.tar.gz 38391 RMD160 7774b0785a4de0500761fb89e9e169f1a388a459 SHA1 6e9db6d3d04fe208a9216fffad662a1fd14f3f39 SHA256 f04d5ed367f9abcc169aac814480aca286548b694b9b5dd1414a055ba775ff22
+EBUILD python-cluster-1.1.1_beta3.ebuild 677 RMD160 b352dae139ab496c2d3380c9f3eacee87bb4e220 SHA1 4b17594d035035e566043af16f78837ae88a4831 SHA256 ffae42c913cfac2f441d0a21b062bba8635cf8824ca6fd90c08aef2937cf60b8
+MISC ChangeLog 332 RMD160 50e35a482888105fbb15dafe888862b6aac8761e SHA1 cfa5083f9139a3f093734887fdfd6cd06910759b SHA256 43ce6fa9c3e29a9c44ca1d5de36f48a71b9e247c0aff341e457a2da28bbfd600
+MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/dev-python/python-cluster/files/python-cluster-python3.patch b/dev-python/python-cluster/files/python-cluster-python3.patch
new file mode 100644
index 000000000..3294d70aa
--- /dev/null
+++ b/dev-python/python-cluster/files/python-cluster-python3.patch
@@ -0,0 +1,37 @@
+--- cluster.py.old 2010-10-01 14:41:55.000000000 +0200
++++ cluster.py 2010-10-01 14:42:32.000000000 +0200
+@@ -130,7 +130,7 @@
+ format = " %%%is |" % maxlen
+ format = "|" + format*colcount
+ for row in list:
+- print format % tuple(row)
++ print (format % tuple(row))
+
+ def magnitude(a):
+ "calculates the magnitude of a vecor"
+@@ -239,12 +239,12 @@
+ """
+ Pretty-prints this cluster. Useful for debuging
+ """
+- print depth*" " + "[level %s]" % self.__level
++ print (depth*" " + "[level %s]" % self.__level)
+ for item in self.__items:
+ if isinstance(item, Cluster):
+ item.display(depth+1)
+ else:
+- print depth*" "+"%s" % item
++ print (depth*" "+"%s" % item)
+
+ def topology(self):
+ """
+--- cluster.py.old 2010-10-01 14:48:54.000000000 +0200
++++ cluster.py 2010-10-01 14:49:21.000000000 +0200
+@@ -429,7 +429,7 @@
+ elif method == 'uclus':
+ self.linkage = self.uclusDistance
+ else:
+- raise ValueError, 'distance method must be one of single, complete, average of uclus'
++ raise ValueError('distance method must be one of single, complete, average of uclus')
+
+ def uclusDistance(self, x, y):
+ """
diff --git a/dev-python/python-cluster/metadata.xml b/dev-python/python-cluster/metadata.xml
new file mode 100644
index 000000000..e6233b5dc
--- /dev/null
+++ b/dev-python/python-cluster/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/dev-python/python-cluster/python-cluster-1.1.1_beta3.ebuild b/dev-python/python-cluster/python-cluster-1.1.1_beta3.ebuild
new file mode 100644
index 000000000..4f2fca66c
--- /dev/null
+++ b/dev-python/python-cluster/python-cluster-1.1.1_beta3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+PYTHON_DEPEND="*"
+SUPPORT_PYTHON_ABIS=1
+
+inherit distutils eutils python
+
+MY_P=cluster-${PV/_beta/b}
+DESCRIPTION="Allows grouping a list of arbitrary objects into related groups (clusters)"
+HOMEPAGE="http://python-cluster.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/python-cluster-python3.patch
+}
+
+pkg_postinst() {
+ python_mod_optimize cluster.py
+}
+
+pkg_postrm() {
+ python_mod_cleanup cluster.py
+}
+