commit:     ebc286e18dda4b62bbe823971208d95992931311
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  3 23:28:33 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Jan  6 00:08:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebc286e1

net-im/hangups: initial ebuild

Package-Manager: Portage-2.3.0, Repoman-2.3.1

 net-im/hangups/files/unpin-dependencies.patch | 41 ++++++++++++++++++++++
 net-im/hangups/hangups-9999.ebuild            | 49 +++++++++++++++++++++++++++
 net-im/hangups/metadata.xml                   |  8 +++++
 3 files changed, 98 insertions(+)

diff --git a/net-im/hangups/files/unpin-dependencies.patch 
b/net-im/hangups/files/unpin-dependencies.patch
new file mode 100644
index 00000000..37c8795
--- /dev/null
+++ b/net-im/hangups/files/unpin-dependencies.patch
@@ -0,0 +1,41 @@
+diff --git a/setup.py b/setup.py
+index 740ce61..67e3b84 100644
+--- a/setup.py
++++ b/setup.py
+@@ -65,15 +65,15 @@ with open('README.rst') as f:
+ # hangups from breaking when new versions of dependencies are released,
+ # especially for end-users (non-developers) who use pip to install hangups.
+ install_requires = [
+-    'ConfigArgParse==0.11.0',
++    'ConfigArgParse>=0.11.0',
+     'aiohttp>=1.2,<1.3',
+-    'appdirs==1.4.0',
+-    'readlike==0.1.2',
++    'appdirs>=1.4.0',
++    'readlike>=0.1.2',
+     'requests>=2.6.0,<3',  # uses semantic versioning (after 2.6)
+-    'ReParser==1.4.3',
++    'ReParser>=1.4.3',
+     'protobuf>=3.1.0,<3.2.0',
+-    'urwid==1.3.1',
+-    'MechanicalSoup==0.6.0',
++    'urwid>=1.3.1',
++    'MechanicalSoup>=0.6.0',
+ ]
+ 
+ 
+@@ -109,10 +109,10 @@ setup(
+     packages=['hangups', 'hangups.ui'],
+     install_requires=install_requires,
+     tests_require=[
+-        'pytest==3.0.5',
+-        'pylint==1.6.4',
+-        'pycodestyle==2.2.0',
+-        'httpretty==0.8.14',
++        'pytest>=3.0.5',
++        'pylint>=1.6.4',
++        'pycodestyle>=2.2.0',
++        'httpretty>=0.8.14',
+     ],
+     cmdclass={
+         'test': PytestCommand,

diff --git a/net-im/hangups/hangups-9999.ebuild 
b/net-im/hangups/hangups-9999.ebuild
new file mode 100644
index 00000000..8224e4d
--- /dev/null
+++ b/net-im/hangups/hangups-9999.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5} )
+inherit distutils-r1
+
+if [[ ${PV} = *9999* ]]; then
+       EGIT_REPO_URI="git://github.com/tdryer/${PN}"
+       inherit git-r3
+else
+       SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Third Party IM Client for Google Hangouts"
+HOMEPAGE="https://pypi.python.org/pypi/hangups";
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+
+PATCHES=(
+       "${FILESDIR}"/unpin-dependencies.patch
+)
+
+COMMON_DEPEND=">=dev-python/configargparse-0.11.0[${PYTHON_USEDEP}]
+       >=dev-python/aiohttp-1.2.0[${PYTHON_USEDEP}]
+       <dev-python/aiohttp-1.3.0
+       >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}]
+       >=dev-python/readlike-0.1.2[${PYTHON_USEDEP}]
+       >=dev-python/requests-2.6.0[${PYTHON_USEDEP}]
+       <dev-python/requests-3.0.0
+       >=dev-python/ReParser-1.4.3[${PYTHON_USEDEP}]
+       >=dev-libs/protobuf-3.1.0[python]
+       >=dev-python/urwid-1.3.1[${PYTHON_USEDEP}]
+       >=dev-python/MechanicalSoup-0.6.0[${PYTHON_USEDEP}]"
+       DEPEND="${COMMON_DEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? (
+               >=dev-python/pytest-3.0.5[${PYTHON_USEDEP}]
+               >=dev-python/pylint-1.6.4[${PYTHON_USEDEP}]
+               >=dev-python/pycodestyle-2.2.0[${PYTHON_USEDEP}]
+               >=dev-python/httpretty-0.8.14[${PYTHON_USEDEP}]
+       )
+"
+RDEPEND="${COMMON_DEPEND}"

diff --git a/net-im/hangups/metadata.xml b/net-im/hangups/metadata.xml
new file mode 100644
index 00000000..c36c371
--- /dev/null
+++ b/net-im/hangups/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>William Hubbs</name>
+       </maintainer>
+</pkgmetadata>

Reply via email to