net-im/transwhat: New package
authorConrad Kostecki <conrad@kostecki.com>
Wed, 11 Jul 2018 08:42:55 +0000 (10:42 +0200)
committerTony Vroon <chainsaw@gentoo.org>
Wed, 11 Jul 2018 10:50:32 +0000 (11:50 +0100)
Closes: https://bugs.gentoo.org/652264
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/9101
Closes: https://bugs.gentoo.org/652264

net-im/transwhat/Manifest [new file with mode: 0644]
net-im/transwhat/metadata.xml [new file with mode: 0644]
net-im/transwhat/transwhat-0.2.2.ebuild [new file with mode: 0644]

diff --git a/net-im/transwhat/Manifest b/net-im/transwhat/Manifest
new file mode 100644 (file)
index 0000000..b70861d
--- /dev/null
@@ -0,0 +1 @@
+DIST transwhat-0.2.2.tar.gz 49494 BLAKE2B 2d34a697df74d010aa030cd0162d6b1523d3e6eb1935251efb3c76a6259c8111f8644f244141c9724018f6617fef67bbd503be22d29a42bee3ffd619932cc3fb SHA512 4a292ba7dd064214e1f7e90f3a0da4f9fbd42e1227fe648ab2269b35c345eb7feda4d47d90b3ab95a31c356e6c0ad19aa6ffbea6641947810835ab06fbda4b75
diff --git a/net-im/transwhat/metadata.xml b/net-im/transwhat/metadata.xml
new file mode 100644 (file)
index 0000000..9127709
--- /dev/null
@@ -0,0 +1,15 @@
+<?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>
+       <longdescription>
+               transWhat is a WhatsApp XMPP Gateway based on Spectrum 2 and Yowsup 2.
+       </longdescription>
+</pkgmetadata>
diff --git a/net-im/transwhat/transwhat-0.2.2.ebuild b/net-im/transwhat/transwhat-0.2.2.ebuild
new file mode 100644 (file)
index 0000000..6b03897
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A WhatsApp XMPP Gateway based on Spectrum 2 and Yowsup 2"
+HOMEPAGE="https://github.com/stv0g/transwhat"
+SRC_URI="https://github.com/stv0g/transwhat/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/e4u[${PYTHON_USEDEP}]
+       dev-python/protobuf-python[${PYTHON_USEDEP}]
+       dev-python/python-dateutil[${PYTHON_USEDEP}]
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       net-im/yowsup[${PYTHON_USEDEP}]"
+
+DEPEND="${RDEPEND}"
+
+DOCS=( "INSTALL.rst" "README.rst" "USAGE.rst" )
+
+src_prepare() {
+       default
+
+       # Fixes for Spectrum2
+       mv config.py Spectrum2/config.py || die
+       sed -i -e 's/config import SpectrumConfig/Spectrum2.&/' transWhat/transwhat.py || die
+}