1 |
commit: fd508becba0b70ce9d11b04a57196e413a67d57a |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Sat Jul 7 22:09:43 2018 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 11 08:30:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd508bec |
7 |
|
8 |
net-im/yowsup: New package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/652258 |
11 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/9102 |
13 |
Closes: https://bugs.gentoo.org/652258 |
14 |
|
15 |
net-im/yowsup/Manifest | 1 + |
16 |
net-im/yowsup/files/fix_newer_six_version.patch | 30 +++++++++++++++++++++++++ |
17 |
net-im/yowsup/metadata.xml | 23 +++++++++++++++++++ |
18 |
net-im/yowsup/yowsup-2.5.7.ebuild | 29 ++++++++++++++++++++++++ |
19 |
4 files changed, 83 insertions(+) |
20 |
|
21 |
diff --git a/net-im/yowsup/Manifest b/net-im/yowsup/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..e767fd6b519 |
24 |
--- /dev/null |
25 |
+++ b/net-im/yowsup/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST yowsup-2.5.7.tar.gz 125732 BLAKE2B 31896cfef601bfe4b65df3518ce6812ad66a98902ec7c8ca5b2ffda15c48c9390010fce58e1158f6ddc325911fd78d1be2bc708d499ab11b725835c5cd5ea246 SHA512 e64e119e8301d6cd9244a24ce960fdd00a5372a7766cf2f52dfd7610828358086e6c4f77fba6f962c1b84f6b28fa6b6d4d708bbb50c281e5a6563b99634b9495 |
28 |
|
29 |
diff --git a/net-im/yowsup/files/fix_newer_six_version.patch b/net-im/yowsup/files/fix_newer_six_version.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..d1bfb27ce29 |
32 |
--- /dev/null |
33 |
+++ b/net-im/yowsup/files/fix_newer_six_version.patch |
34 |
@@ -0,0 +1,30 @@ |
35 |
+--- a/setup.py 2017-12-30 00:12:35.000000000 +0100 |
36 |
++++ b/setup.py 2018-04-29 20:51:23.000000000 +0200 |
37 |
+@@ -5,7 +5,7 @@ |
38 |
+ import platform |
39 |
+ import sys |
40 |
+ |
41 |
+-deps = ['python-dateutil', 'argparse', 'python-axolotl>=0.1.39', 'six==1.10'] |
42 |
++deps = ['python-dateutil', 'python-axolotl>=0.1.39', 'six'] |
43 |
+ |
44 |
+ if sys.version_info < (2,7): |
45 |
+ deps += ['importlib', "protobuf==3.4.0"] |
46 |
+--- a/yowsup/env/env.py 2017-12-30 00:12:35.000000000 +0100 |
47 |
++++ b/yowsup/env/env.py 2018-04-29 20:51:44.000000000 +0200 |
48 |
+@@ -13,7 +13,6 @@ |
49 |
+ super(YowsupEnvType, cls).__init__(name, bases, dct) |
50 |
+ |
51 |
+ class YowsupEnv(with_metaclass(YowsupEnvType, object)): |
52 |
+- __metaclass__ = YowsupEnvType |
53 |
+ __ENVS = {} |
54 |
+ __CURR = None |
55 |
+ |
56 |
+--- a/yowsup/layers/protocol_media/picture.py 2017-12-30 00:12:35.000000000 +0100 |
57 |
++++ b/yowsup/layers/protocol_media/picture.py 2018-04-29 20:52:30.000000000 +0200 |
58 |
+@@ -1,5 +1,5 @@ |
59 |
+ from yowsup.layers import YowLayer |
60 |
+-from yowsup import ProtocolTreeNode |
61 |
++from yowsup.structs import ProtocolTreeNode |
62 |
+ from .mediadownloader import MediaDownloader |
63 |
+ import shutil, os, logging |
64 |
+ logger = logging.getLogger(__name__) |
65 |
|
66 |
diff --git a/net-im/yowsup/metadata.xml b/net-im/yowsup/metadata.xml |
67 |
new file mode 100644 |
68 |
index 00000000000..dc32909be69 |
69 |
--- /dev/null |
70 |
+++ b/net-im/yowsup/metadata.xml |
71 |
@@ -0,0 +1,23 @@ |
72 |
+<?xml version="1.0" encoding="UTF-8"?> |
73 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
74 |
+<pkgmetadata> |
75 |
+ <maintainer type="person"> |
76 |
+ <email>ck+gentoo@××××××××.de</email> |
77 |
+ <name>Conrad Kostecki</name> |
78 |
+ </maintainer> |
79 |
+ <maintainer type="project"> |
80 |
+ <email>proxy-maint@g.o</email> |
81 |
+ <name>Proxy Maintainers</name> |
82 |
+ </maintainer> |
83 |
+ <upstream> |
84 |
+ <bugs-to>https://github.com/tgalal/yowsup/issues</bugs-to> |
85 |
+ <remote-id type="github">tgalal/yowsup</remote-id> |
86 |
+ </upstream> |
87 |
+ <longdescription> |
88 |
+ Yowsup is a Python library that enables you to build applications, |
89 |
+ which use the WhatsApp service. Yowsup has been used to create two clients: |
90 |
+ 1) An unofficial WhatsApp client Nokia N9 through the Wazapp project |
91 |
+ which was in use by more than 200K users. |
92 |
+ 2) Another fully featured unofficial client for Blackberry 10. |
93 |
+ </longdescription> |
94 |
+</pkgmetadata> |
95 |
|
96 |
diff --git a/net-im/yowsup/yowsup-2.5.7.ebuild b/net-im/yowsup/yowsup-2.5.7.ebuild |
97 |
new file mode 100644 |
98 |
index 00000000000..862206fd28d |
99 |
--- /dev/null |
100 |
+++ b/net-im/yowsup/yowsup-2.5.7.ebuild |
101 |
@@ -0,0 +1,29 @@ |
102 |
+# Copyright 1999-2018 Gentoo Foundation |
103 |
+# Distributed under the terms of the GNU General Public License v2 |
104 |
+ |
105 |
+EAPI=6 |
106 |
+ |
107 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
108 |
+PYTHON_REQ_USE="readline" |
109 |
+ |
110 |
+inherit distutils-r1 |
111 |
+ |
112 |
+DESCRIPTION="A library that enables you to build applications which use the WhatsApp service" |
113 |
+HOMEPAGE="https://github.com/tgalal/yowsup" |
114 |
+SRC_URI="https://github.com/tgalal/yowsup/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
115 |
+ |
116 |
+LICENSE="GPL-3" |
117 |
+SLOT="0" |
118 |
+KEYWORDS="~amd64 ~x86" |
119 |
+ |
120 |
+RDEPEND="dev-python/configargparse[${PYTHON_USEDEP}] |
121 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
122 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
123 |
+ dev-python/pycrypto[${PYTHON_USEDEP}] |
124 |
+ dev-python/python-axolotl-curve25519[${PYTHON_USEDEP}] |
125 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}]" |
126 |
+ |
127 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
128 |
+ ${RDEPEND}" |
129 |
+ |
130 |
+PATCHES=( "${FILESDIR}/fix_newer_six_version.patch" ) |