diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-04-20 19:37:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-04-20 19:37:03 +0000 |
commit | 5cc47d71280b26585a7a703d540ad585abea0d35 (patch) | |
tree | 81f60b06a40d9373f3d073a3e5a45ddbf08ac37e | |
parent | Fix glib-2.32 compilation, bug #412671 by Mark. Drop old. (diff) | |
download | historical-5cc47d71280b26585a7a703d540ad585abea0d35.tar.gz historical-5cc47d71280b26585a7a703d540ad585abea0d35.tar.bz2 historical-5cc47d71280b26585a7a703d540ad585abea0d35.zip |
Add fix from Jon Salz for partial data transfers.
Package-Manager: portage-2.2.0_alpha100/cvs/Linux x86_64
-rw-r--r-- | dev-python/ws4py/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/ws4py/Manifest | 30 | ||||
-rw-r--r-- | dev-python/ws4py/files/ws4py-0.2.1-process-data.patch | 27 | ||||
-rw-r--r-- | dev-python/ws4py/ws4py-0.2.1-r1.ebuild | 41 |
4 files changed, 91 insertions, 15 deletions
diff --git a/dev-python/ws4py/ChangeLog b/dev-python/ws4py/ChangeLog index 73758c5cc955..8bfd1af6a69e 100644 --- a/dev-python/ws4py/ChangeLog +++ b/dev-python/ws4py/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/ws4py # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ws4py/ChangeLog,v 1.1 2012/04/17 23:09:11 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/ws4py/ChangeLog,v 1.2 2012/04/20 19:37:03 vapier Exp $ + +*ws4py-0.2.1-r1 (20 Apr 2012) + + 20 Apr 2012; Mike Frysinger <vapier@gentoo.org> +ws4py-0.2.1-r1.ebuild, + +files/ws4py-0.2.1-process-data.patch: + Add fix from Jon Salz for partial data transfers. *ws4py-9999 (17 Apr 2012) *ws4py-0.2.1 (17 Apr 2012) diff --git a/dev-python/ws4py/Manifest b/dev-python/ws4py/Manifest index cf36572bd61c..ba86cbbf4209 100644 --- a/dev-python/ws4py/Manifest +++ b/dev-python/ws4py/Manifest @@ -1,25 +1,27 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX ws4py-0.2.1-process-data.patch 761 RMD160 6897d09fb6dab348522254c64afb29a337cae8eb SHA1 c5d6ceb578c4908c8e10016438cebdd73213f6fa SHA256 29528dd1d55a2c26d28e50ea39bb4a03f6cf33c6da810ac60669c37bedb9706a DIST ws4py-0.2.1-src.tar.gz 1858090 RMD160 994cd2b0cb73cd3f04efdfcbd25df01ad380f131 SHA1 5967f99fac74bf890e1ecca996ba839c57c99673 SHA256 8f902a5be5bed493392ccbabd71406c113c89f973a0d635d7ed35a4d8ec932c5 +EBUILD ws4py-0.2.1-r1.ebuild 1165 RMD160 6251a0a618d2f9f71340ae983f51ed702c487c66 SHA1 95fe7df656626acfcbb86b31ec6dfc9d6cfdc51e SHA256 e8f2f5e312608cdcd150da934551dcb54e66e15f11ad86da9f0ce36193e9922a EBUILD ws4py-0.2.1.ebuild 1067 RMD160 21e2d2bbcaab1f01e21558c9f015f8b20726571e SHA1 c60e46355713132d027167c840d34f4479c6625c SHA256 b728d3869d2ba804d92359ebd7b7e0e7b618f56c2478bc6e08d420d3617be49f EBUILD ws4py-9999.ebuild 1066 RMD160 360a640717da7a1b7343cbf6f831d5d55bc87c1c SHA1 4c981079efea511e360626da42712dd25fad2429 SHA256 8fd99e2dfcda4836bdf97516eb5578061f1df94b0defb1cc910f84f152f3c318 -MISC ChangeLog 407 RMD160 4bd3f040eff8aea736e04e6a2a73a91b34da0b11 SHA1 3560c613b959e01dba9c8ce706908d1e2d795500 SHA256 051750ba4b34f1ad18afd1d9f53a8d7e494bf53b541000492b2a6c7e5f755c9e +MISC ChangeLog 606 RMD160 600b409c1a5e7181bea1183297b7aeddc8b5d369 SHA1 59776b5c6a41f13a65ca8d41b7fdc062355dd18c SHA256 5c7797512c4e45b6c73ec4dae5ce9c610a85861fd9c3d442bb3b8cc3b7bce2b0 MISC metadata.xml 279 RMD160 4849fb2bff5533d654332c33b485c621bec9ece4 SHA1 5bd671a36ff05a7a918e6a32995a12f280a16e11 SHA256 9d45a0168715338fa5a6e4e23a6f0032b0f2ce9e35bf8fd183453fd8cd18988b -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBAgAGBQJPjfhJAAoJELEHsLL7fEFW2o8P/3LmdewL6S+Dn2Kx2plKFTvm -yTkXgGUP+J0iZQ+YV5hTVm2kUrpqxYIJZNgri516kkoJT2XsSIeB3Ird+MVOerMx -5UCyFNhvFNTURnxNzStwf/5oZ2w6oaMGtKan2nUOQNY8A0M5/DvMIriJesvbX4Ch -zYtbhRbJpNBU+13ayR8Rxmgs/O9QtszbZ1NTnAAq6jSCzOpFdCS2Ouf1EIPomXzW -WF9qd7Jxn6gdBjpyisbyula/j5YQB8oQgaWCcLvGFWds4sYHq8ew/6GjCrLdvbX1 -T8pd6unc687OYVEaqa+8zIeRRlSt0xoNRSJal6y3oaOmmlF0ecjiGeCFvHxEE3lN -vtNNeMZFDzT73Sz0A8wni+JkQZyK9t2xuRnijJqG8zwEofLOlPtvKWdnfSEUI0Eh -g2U2ZXxxQhDgtgqcyus995/3e/0PDWYtHrGVMy1bysvQWNzXpv1nV6V9Q/ZlDgTh -ehJXMvF8kfWwtEJDfQwoqRf10dkf0uU6UmjSm2IUfyGBCQB0EwLDf47MQfBx8d8i -K4S24nsNm2Ip/UOvQhdqntcT4z0dxlM0Ch785WCO7RywUyv13cDCLQzWKF889RfA -HC+Ay+RsYpFxnJt9vn0JqQbLfb9CySm3XVMgsGWK2QMCrzHiT6KDCVdQVfHKacXT -tX/Fab/8mpRyQlsBdTHZ -=xFRk +iQIcBAEBAgAGBQJPkbsmAAoJELEHsLL7fEFWIQIP/28/qIPyY5Mk0wwOZyyThQtU +I3VmHQ9tHMXO4rHuCFupC8qDOXGr3KTAViuAOT0ufirK5PrPPgeoU+C3vmLjjHq8 +5igOvPnOSzqwBelIx3muMQLON7nq3ccrmAjbcb6xcHULhSqXlyTfh8J373Ij6UXZ +HSgWK9mn4mXPVSbRjpWVD69PLT89BLlvgGI1bEKAreSf0zNKGSPcVzMSD6AS7gZW +a7IEGDJILXeD73jWBT3LNkKiH2bI8Ht29TO7w1kdKLlF1ZwqSVvRYj5XZYx4dSdF +8kd4wBA7kLU9rTwJT0Od0PTyaPENywhtBjVV+H4fxjIGOcLumKItnHhFbZefZ2eU +HgqrTTVISamWHsHwcGKizBlPJfRugpMfUm9AmvfCmKx9OmLWa+OcxklC9jWFAvQW +uPiHhT8EcXN2pxe8123aWRdXcx7NeCVbezvHQ2wDdyAJ/VzNdZ41e/PryT4vNfZ5 +/BNmZxYa3IJEQmH783yJGKFXMuRY9WcB3HmGRH50PJXkHcYPItR/0zzVK57v1ptv +VnMRyYzIBiiUYdpw6T6JJB1geIrrOxmPFMVfgTsNq9HP14BFwXLdUY2eCMbetKzY +g7fy7SXpnLzhBjgh2REo3LEucxxOG+c6Q/eClOxBIH6+uKZ82GZc1bQxXhGZNXPe +9+45mw38ujCIWN+OgVvK +=vmrj -----END PGP SIGNATURE----- diff --git a/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch b/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch new file mode 100644 index 000000000000..5476f2d28625 --- /dev/null +++ b/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch @@ -0,0 +1,27 @@ +From 38cf669e27fab9de187eb11dabd7d85d73d5f470 Mon Sep 17 00:00:00 2001 +From: Jon Salz <jsalz@chromium.org> +Date: Fri, 20 Apr 2012 02:22:46 +0800 +Subject: [PATCH] Process remaining bytes in the body, if any. + +https://github.com/Lawouach/WebSocket-for-Python/issues/46 +--- + ws4py/client/__init__.py | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/ws4py/client/__init__.py b/ws4py/client/__init__.py +index aa4c8f2..29b1357 100644 +--- a/ws4py/client/__init__.py ++++ b/ws4py/client/__init__.py +@@ -71,6 +71,9 @@ class WebSocketBaseClient(WebSocket): + + self.handshake_ok() + ++ if body != '': ++ self.process(body) ++ + @property + def handshake_headers(self): + parts = urlsplit(self.url) +-- +1.7.3.4 + diff --git a/dev-python/ws4py/ws4py-0.2.1-r1.ebuild b/dev-python/ws4py/ws4py-0.2.1-r1.ebuild new file mode 100644 index 000000000000..618542189520 --- /dev/null +++ b/dev-python/ws4py/ws4py-0.2.1-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/ws4py/ws4py-0.2.1-r1.ebuild,v 1.1 2012/04/20 19:37:03 vapier Exp $ + +EAPI="4" +PYTHON_DEPEND="2" + +inherit distutils eutils +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/Lawouach/WebSocket-for-Python.git" + inherit git-2 +else + inherit vcs-snapshot + SRC_URI="https://github.com/Lawouach/WebSocket-for-Python/tarball/v${PV} -> ${P}-src.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +DESCRIPTION="WebSocket support for Python" +HOMEPAGE="https://github.com/Lawouach/WebSocket-for-Python" + +LICENSE="BSD" +SLOT="0" +IUSE="" +#IUSE="client server" + +# The gevent package isn't in the tree yet. +#RDEPEND="client? ( >=dev-python/gevent-0.13.6 ) +# server? ( >=dev-python/gevent-0.13.6 )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-process-data.patch + distutils_src_prepare +} + +src_install() { + distutils_src_install + #use client || rm -rf "${ED}$(python_get_sitedir)"/ws4py/client + #use server || rm -rf "${ED}$(python_get_sitedir)"/ws4py/server + rm -rf "${ED}$(python_get_sitedir)"/ws4py/{client,server} +} |