diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-28 22:35:53 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-29 00:43:16 +0200 |
commit | 3662ca6f176a9e180234b16ff380eab62bb0649e (patch) | |
tree | 2a7ebfd506bada36163d28ffdf09de7e9c383ef1 /main/py-cparser | |
parent | a41c7f26b5b0363fe6ae57617a7ad0abd986cea8 (diff) | |
download | aports-3662ca6f176a9e180234b16ff380eab62bb0649e.tar.bz2 aports-3662ca6f176a9e180234b16ff380eab62bb0649e.tar.xz |
main/py-cparser: move from community
It's a dependency of main/py-cffi.
Diffstat (limited to 'main/py-cparser')
-rw-r--r-- | main/py-cparser/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/main/py-cparser/APKBUILD b/main/py-cparser/APKBUILD new file mode 100644 index 0000000000..90f3624f80 --- /dev/null +++ b/main/py-cparser/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=py-cparser +pkgver=2.14 +pkgrel=2 +pkgdesc="a C parser written in Python" +url="https://github.com/eliben/pycparser" +arch="noarch" +license="BSD" +depends="" +makedepends="python2-dev python3-dev py-setuptools" +install="" +subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +source="https://files.pythonhosted.org/packages/source/p/pycparser/pycparser-$pkgver.tar.gz" +builddir="$srcdir"/pycparser-$pkgver + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python=$1 + pkgdesc="$pkgdesc - $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + _py python2 + replaces="$pkgname" +} + +_py3() { + _py python3 +} + +md5sums="a2bc8d28c923b4fe2b2c3b4b51a4f935 pycparser-2.14.tar.gz" +sha256sums="7959b4a74abdc27b312fed1c21e6caf9309ce0b29ea86b591fd2e99ecdf27f73 pycparser-2.14.tar.gz" +sha512sums="d5b9ab434a8944898ac23a4f51189db77b02b993bf3e3ca018852b117fc0eb43e460b156beaa5c1d631ad71c81e1649113e9fff7e33506b1e7d4de24d8b464c6 pycparser-2.14.tar.gz" |