From 4b62e11fd4f59685de941e4d24565f55c2318d97 Mon Sep 17 00:00:00 2001 From: Jon Salz Date: Thu, 19 Apr 2012 06:36:54 +0800 Subject: [PATCH] Upgraded the ws4py Portage package Upgraded dev-python/ws4py to version 0.2.1 on amd64, arm, x86 BUG=None TEST=emerged, built dependent package Change-Id: I34ba55177e6880aa6471e04bded72d3cbf9575a0 Reviewed-on: https://gerrit.chromium.org/gerrit/20585 Tested-by: Jon Salz Reviewed-by: Mike Frysinger Commit-Ready: Jon Salz --- .../portage-stable/dev-python/ws4py/Manifest | 1 + .../dev-python/ws4py/ws4py-0.2.1.ebuild | 36 +++++++++++++++ .../portage-stable/eclass/vcs-snapshot.eclass | 45 +++++++++++++++++++ .../metadata/md5-cache/dev-python/ws4py-0.2.1 | 12 +++++ 4 files changed, 94 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/ws4py/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/ws4py/ws4py-0.2.1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/eclass/vcs-snapshot.eclass create mode 100644 sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-python/ws4py-0.2.1 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/ws4py/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/ws4py/Manifest new file mode 100644 index 0000000000..fb7e6d3435 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/ws4py/Manifest @@ -0,0 +1 @@ +DIST ws4py-0.2.1-src.tar.gz 1858090 RMD160 994cd2b0cb73cd3f04efdfcbd25df01ad380f131 SHA1 5967f99fac74bf890e1ecca996ba839c57c99673 SHA256 8f902a5be5bed493392ccbabd71406c113c89f973a0d635d7ed35a4d8ec932c5 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/ws4py/ws4py-0.2.1.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/ws4py/ws4py-0.2.1.ebuild new file mode 100644 index 0000000000..b641127da4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/ws4py/ws4py-0.2.1.ebuild @@ -0,0 +1,36 @@ +# 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.ebuild,v 1.1 2012/04/17 23:09:11 vapier Exp $ + +EAPI="4" +PYTHON_DEPEND="2" + +inherit distutils +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_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} +} diff --git a/sdk_container/src/third_party/portage-stable/eclass/vcs-snapshot.eclass b/sdk_container/src/third_party/portage-stable/eclass/vcs-snapshot.eclass new file mode 100644 index 0000000000..674836033b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/eclass/vcs-snapshot.eclass @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.2 2012/03/19 08:52:49 mgorny Exp $ + +# @ECLASS: vcs-snapshot.eclass +# @MAINTAINER: +# mgorny@gentoo.org +# @BLURB: support eclass for VCS (github, bitbucket, gitweb) snapshots +# @DESCRIPTION: +# This eclass provides a convenience src_unpack() which does support +# working with snapshots generated by various VCS-es. It unpacks those +# to ${S} rather than the original directory containing commit id. +# +# Note that this eclass handles only unpacking. You need to specify +# SRC_URI yourself, and call any autoreconfiguration as necessary. +# The example does that using autotools-utils eclass. +# +# Right now, the eclass was tested with github, bitbucket and gitweb +# snapshots. Feel free to report snapshotting services which aren't +# working. +# @EXAMPLE: +# +# @CODE +# EAPI=4 +# AUTOTOOLS_AUTORECONF=1 +# inherit autotools-utils vcs-snapshot +# +# SRC_URI="http://github.com/example/${PN}/tarball/v${PV} -> ${P}.tar.gz" +# @CODE + +case ${EAPI:-0} in + 0|1) die "EAPI ${EAPI} unsupported.";; # default(), SRC_URI arrows + 2|3|4) ;; + *) die "vcs-snapshot.eclass API in EAPI ${EAPI} not yet established." +esac + +EXPORT_FUNCTIONS src_unpack + +vcs-snapshot_src_unpack() { + default + + # github, bitbucket: username-projectname-hash + # gitweb: projectname-tagname-hash + mv *-*-[0-9a-f]*[0-9a-f]/ "${S}" || die +} diff --git a/sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-python/ws4py-0.2.1 b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-python/ws4py-0.2.1 new file mode 100644 index 0000000000..c6ceb020a8 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-python/ws4py-0.2.1 @@ -0,0 +1,12 @@ +DEFINED_PHASES=compile install postinst postrm prepare setup unpack +DEPEND=>=app-admin/eselect-python-20091230 =dev-lang/python-2* +DESCRIPTION=WebSocket support for Python +EAPI=4 +HOMEPAGE=https://github.com/Lawouach/WebSocket-for-Python +KEYWORDS=amd64 arm x86 +LICENSE=BSD +RDEPEND=>=app-admin/eselect-python-20091230 =dev-lang/python-2* +SLOT=0 +SRC_URI=https://github.com/Lawouach/WebSocket-for-Python/tarball/v0.2.1 -> ws4py-0.2.1-src.tar.gz +_eclasses_=distutils b4c334e216d998c4ce4b750cb091e42e multilib 5f4ad6cf85e365e8f0c6050ddd21659e python 6bbd984910e27780e5d0ea543d83ef84 toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 vcs-snapshot da01f8084931ab770fd9ddf7e537a262 +_md5_=91b0ec59e300530c701a6c5cce6fa3f0