summaryrefslogtreecommitdiff
path: root/net-im/yowsup
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:52:04 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:52:04 +0100
commit71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /net-im/yowsup
parent6612a728ea11526a849618ec515ad57131d64416 (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'net-im/yowsup')
-rw-r--r--net-im/yowsup/Manifest4
-rw-r--r--net-im/yowsup/files/fix_newer_six_version.patch30
-rw-r--r--net-im/yowsup/metadata.xml23
-rw-r--r--net-im/yowsup/yowsup-2.5.7.ebuild29
4 files changed, 86 insertions, 0 deletions
diff --git a/net-im/yowsup/Manifest b/net-im/yowsup/Manifest
new file mode 100644
index 000000000000..f6c6a3af214a
--- /dev/null
+++ b/net-im/yowsup/Manifest
@@ -0,0 +1,4 @@
+AUX fix_newer_six_version.patch 1109 BLAKE2B 0805c79a35d9f49ed3900dfe294bf371c2d1c44b88af7761a6e042665526356e84e7fb00073596c99a37b1b47d3f3bbbbbe1ee2d0332900622a5874001cdc924 SHA512 a8e4689b58b1843eb53befc1f75a868ea43e4e2d6292369948f1d69c918f06b3e2b99c60753ac028ba2b8966e36b7865572f485fd9a7519b7215f163b9765ff2
+DIST yowsup-2.5.7.tar.gz 125732 BLAKE2B 31896cfef601bfe4b65df3518ce6812ad66a98902ec7c8ca5b2ffda15c48c9390010fce58e1158f6ddc325911fd78d1be2bc708d499ab11b725835c5cd5ea246 SHA512 e64e119e8301d6cd9244a24ce960fdd00a5372a7766cf2f52dfd7610828358086e6c4f77fba6f962c1b84f6b28fa6b6d4d708bbb50c281e5a6563b99634b9495
+EBUILD yowsup-2.5.7.ebuild 872 BLAKE2B cb055c3b21432d3114451f0d444a4fc5107e73b0ac79b4d4c7af870cd8d9c459136342b2af30ff2040f8fd79748fdc9e64068bea5eb4ec008852d0ee7f965900 SHA512 15cbb45959822fe511978e1a12b00ccaf10b9d0b6130e04ca89f8ee7d9f99d866fe72f3453ea7aa9abf46d1457ae65ff8c97071a25a9a478d294fdb99531917d
+MISC metadata.xml 874 BLAKE2B 42719d6bff7e94386fcc419fe562d412e3b2876b652b00a26d4d27b81200f7a565d4cea66ed1510907688436aaac47cdf531242f67eeee9e6597634073ad3e31 SHA512 0acd83cef9fd9ab80aa49db19580c53d49d2416e6cb42027bbf86dc10d69e2ad74d2dd61d34bb586fad517d2698e4d9bc90f73cc35265b784d05e56c8380926a
diff --git a/net-im/yowsup/files/fix_newer_six_version.patch b/net-im/yowsup/files/fix_newer_six_version.patch
new file mode 100644
index 000000000000..d1bfb27ce295
--- /dev/null
+++ b/net-im/yowsup/files/fix_newer_six_version.patch
@@ -0,0 +1,30 @@
+--- a/setup.py 2017-12-30 00:12:35.000000000 +0100
++++ b/setup.py 2018-04-29 20:51:23.000000000 +0200
+@@ -5,7 +5,7 @@
+ import platform
+ import sys
+
+-deps = ['python-dateutil', 'argparse', 'python-axolotl>=0.1.39', 'six==1.10']
++deps = ['python-dateutil', 'python-axolotl>=0.1.39', 'six']
+
+ if sys.version_info < (2,7):
+ deps += ['importlib', "protobuf==3.4.0"]
+--- a/yowsup/env/env.py 2017-12-30 00:12:35.000000000 +0100
++++ b/yowsup/env/env.py 2018-04-29 20:51:44.000000000 +0200
+@@ -13,7 +13,6 @@
+ super(YowsupEnvType, cls).__init__(name, bases, dct)
+
+ class YowsupEnv(with_metaclass(YowsupEnvType, object)):
+- __metaclass__ = YowsupEnvType
+ __ENVS = {}
+ __CURR = None
+
+--- a/yowsup/layers/protocol_media/picture.py 2017-12-30 00:12:35.000000000 +0100
++++ b/yowsup/layers/protocol_media/picture.py 2018-04-29 20:52:30.000000000 +0200
+@@ -1,5 +1,5 @@
+ from yowsup.layers import YowLayer
+-from yowsup import ProtocolTreeNode
++from yowsup.structs import ProtocolTreeNode
+ from .mediadownloader import MediaDownloader
+ import shutil, os, logging
+ logger = logging.getLogger(__name__)
diff --git a/net-im/yowsup/metadata.xml b/net-im/yowsup/metadata.xml
new file mode 100644
index 000000000000..dc32909be69f
--- /dev/null
+++ b/net-im/yowsup/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/tgalal/yowsup/issues</bugs-to>
+ <remote-id type="github">tgalal/yowsup</remote-id>
+ </upstream>
+ <longdescription>
+ Yowsup is a Python library that enables you to build applications,
+ which use the WhatsApp service. Yowsup has been used to create two clients:
+ 1) An unofficial WhatsApp client Nokia N9 through the Wazapp project
+ which was in use by more than 200K users.
+ 2) Another fully featured unofficial client for Blackberry 10.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-im/yowsup/yowsup-2.5.7.ebuild b/net-im/yowsup/yowsup-2.5.7.ebuild
new file mode 100644
index 000000000000..862206fd28dd
--- /dev/null
+++ b/net-im/yowsup/yowsup-2.5.7.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="readline"
+
+inherit distutils-r1
+
+DESCRIPTION="A library that enables you to build applications which use the WhatsApp service"
+HOMEPAGE="https://github.com/tgalal/yowsup"
+SRC_URI="https://github.com/tgalal/yowsup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/configargparse[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/protobuf-python[${PYTHON_USEDEP}]
+ dev-python/pycrypto[${PYTHON_USEDEP}]
+ dev-python/python-axolotl-curve25519[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ ${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/fix_newer_six_version.patch" )