Mail archive
alpine-aports

Re: [alpine-aports] [PATCH 1/5] testing/py-nbxmpp: New aport

From: Leonardo Arena <rnalrd_at_gmail.com>
Date: Fri, 20 Jul 2018 09:45:58 +0200

Hi,

committed with some modifications. Please see below:

On Sun, Jul 1, 2018 at 3:55 PM, Marian Buschsieweke <
marian.buschsieweke_at_ovgu.de> wrote:

> https://dev.gajim.org/gajim/python-nbxmpp/
> A non-blocking XMPP implementation for python
> ---
> testing/py-nbxmpp/APKBUILD | 45 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 45 insertions(+)
> create mode 100644 testing/py-nbxmpp/APKBUILD
>
> diff --git a/testing/py-nbxmpp/APKBUILD b/testing/py-nbxmpp/APKBUILD
> new file mode 100644
> index 0000000000..c002ef5f9d
> --- /dev/null
> +++ b/testing/py-nbxmpp/APKBUILD
> _at__at_ -0,0 +1,45 @@
> +# Maintainer: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
> +pkgname=py-nbxmpp
> +_pkgname="${pkgname#py-}"
> +pkgver=0.6.6
> +pkgrel=0
> +pkgdesc="A non-blocking XMPP implementation for python"
> +url="https://dev.gajim.org/gajim/python-nbxmpp/"
> +arch="noarch"
> +license="GPL3"
>


Used license ID "GPL-3.0-only"




> +makedepends="py-setuptools python2-dev python3-dev"
> +subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
> +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_
> pkgname/$_pkgname-$pkgver.tar.gz"
> +builddir="$srcdir"/$_pkgname-$pkgver
> +options="!check"
>


Added comment that a test suite is not available



> +
> +build() {
> + cd "$builddir"
> + python2 setup.py build
> + python3 setup.py build
> +}
> +
> +package() {
> + mkdir -p "$pkgdir"
> +}
> +
> +_py2() {
> + replaces="$pkgname"
>


I don't think it's needed:

(edge-x86_64) ~/aports/testing/py-nbxmpp$ sudo apk add py-nbxmpp
(1/3) Installing py-nbxmpp (0.6.6-r0)
(2/3) Installing py2-nbxmpp (0.6.6-r0)
(3/3) Installing py3-nbxmpp (0.6.6-r0)
OK: 1007 MiB in 257 packages
(edge-x86_64) ~/aports/testing/py-nbxmpp$ sudo apk del py-nbxmpp
(1/3) Purging py3-nbxmpp (0.6.6-r0)
(2/3) Purging py2-nbxmpp (0.6.6-r0)
(3/3) Purging py-nbxmpp (0.6.6-r0)
OK: 1005 MiB in 254 packages
(edge-x86_64) ~/aports/testing/py-nbxmpp$ sudo apk add py2-nbxmpp
(1/1) Installing py2-nbxmpp (0.6.6-r0)
OK: 1006 MiB in 255 packages
(edge-x86_64) ~/aports/testing/py-nbxmpp$ sudo apk add py3-nbxmpp
(1/1) Installing py3-nbxmpp (0.6.6-r0)
OK: 1007 MiB in 256 packages
(edge-x86_64) ~/aports/testing/py-nbxmpp$ sudo apk del py2-nbxmpp py3-nbxmpp
(1/2) Purging py2-nbxmpp (0.6.6-r0)
(2/2) Purging py3-nbxmpp (0.6.6-r0)
OK: 1005 MiB in 254 packages

Removed.


Thanks!


/eo



---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Jul 20 2018 - 09:45:58 UTC