X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lists.alpinelinux.org (Postfix) with ESMTP id 115C85C491C for ; Thu, 27 Apr 2017 17:20:07 +0000 (GMT) Received: from piha.riseup.net (unknown [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 952471A0948 for ; Thu, 27 Apr 2017 17:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1493313606; bh=62YI6VOBNjw1gvQTwn/H772C+IEN6MmCNRK3ja7kthA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=swuNlkgtqPIm4tQ50mktsVIGCSGJ4yt3ZqXC7MfksIhQ/JO6t8TuZaTBTvZ6a2NGJ Sgg+mqQlWcOCpZBVeBrIKb9xEmYU0yVbgE+dDUvTi7OXP58+sN94r4FXZJ7y84Eb2u eH9z2vbkf78AH5EqSmhfPjKOU7HvFkfqvMn9nVdM= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pickfire@riseup.net) with ESMTPSA id 75EF61C85B6 From: Ivan Tham To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 1/2] testing/py-xlib: new aport Date: Fri, 28 Apr 2017 01:19:55 +0800 Message-Id: <20170427171956.24874-1-pickfire@riseup.net> In-Reply-To: <20170413092928.14247-1-pickfire@riseup.net> References: <20170413092928.14247-1-pickfire@riseup.net> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: https://github.com/python-xlib/python-xlib A fully functional X client library for Python programs --- testing/py-xlib/APKBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 testing/py-xlib/APKBUILD diff --git a/testing/py-xlib/APKBUILD b/testing/py-xlib/APKBUILD new file mode 100644 index 0000000000..1a2d34bc3c --- /dev/null +++ b/testing/py-xlib/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Ivan Tham +# Maintainer: Ivan Tham +pkgname=py-xlib +_pkgname=python-xlib +pkgver=0.19 +pkgrel=0 +pkgdesc="A fully functional X client library for Python programs" +url="https://github.com/python-xlib/python-xlib" +arch="noarch" +license="LGPL2" +depends="py-six" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="${pkgname/py-/py3-}:_py3 ${pkgname/py-/py2-}:_py2" +source="https://github.com/$_pkgname/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.bz2" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="070807eed50ce9a17926c36686dac5c143deff0b687a2967afade1a2f776d42ffbea0bbfad3a7480118ba7b1cf5ac0bb64978fdd3ca125c1df651af456dba5be python-xlib-0.19.tar.bz2" -- 2.12.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---