net-im/transwhat: New package

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
This commit is contained in:
Conrad Kostecki
2018-07-11 10:42:55 +02:00
committed by Tony Vroon
parent 7f88318eb4
commit dbe7e24fee
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST transwhat-0.2.2.tar.gz 49494 BLAKE2B 2d34a697df74d010aa030cd0162d6b1523d3e6eb1935251efb3c76a6259c8111f8644f244141c9724018f6617fef67bbd503be22d29a42bee3ffd619932cc3fb SHA512 4a292ba7dd064214e1f7e90f3a0da4f9fbd42e1227fe648ab2269b35c345eb7feda4d47d90b3ab95a31c356e6c0ad19aa6ffbea6641947810835ab06fbda4b75

View File

@@ -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>

View File

@@ -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
}