diff options
author | Erich Eckner <git@eckner.net> | 2019-11-07 08:52:33 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-07 08:52:33 +0100 |
commit | 25176ef720a0e4217bced39e2d6827bc010a7dad (patch) | |
tree | f10e15ceb3c8e9d9d7b21f61b3d4f7b68563b2d0 | |
parent | 295c4f0d9ab25aa45477387155c8625172b62f08 (diff) | |
download | archlinuxewe-25176ef720a0e4217bced39e2d6827bc010a7dad.tar.xz |
python2-breathe neu
-rw-r--r-- | python2-breathe/.gitignore | 1 | ||||
-rw-r--r-- | python2-breathe/PKGBUILD | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/python2-breathe/.gitignore b/python2-breathe/.gitignore new file mode 100644 index 000000000..cd6467ed8 --- /dev/null +++ b/python2-breathe/.gitignore @@ -0,0 +1 @@ +breathe diff --git a/python2-breathe/PKGBUILD b/python2-breathe/PKGBUILD new file mode 100644 index 000000000..2f1267537 --- /dev/null +++ b/python2-breathe/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Daniel Bermond <dbermond@archlinux.org> +# Contributor: Santiago Torres-Arias <santiago@archlinux.org> +# Contributor: Simon Boulay <simon.boulay@alkeona.net> + +pkgname=python2-breathe +pkgver=4.13.1 +pkgrel=1 +pkgdesc="An extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output." +arch=('any') +url="https://breathe.readthedocs.org/en/latest/" +license=('BSD') +depends=( + 'python2>=2.7' + 'python2<2.8' + 'python2-setuptools' + 'python2-sphinx' + 'python2-docutils' + 'python2-six') +makedepends=('git') +checkdepends=('python2-nose' 'python2-sphinx') +source=("git+https://github.com/michaeljones/breathe#tag=v${pkgver}?signed") +sha256sums=('SKIP') +validpgpkeys=('79DC0FAF18C31807E82E1A6B9EF1DC92B5F301BD') # Melvin Vermeeren <mail@mel.vin> + +prepare() { + sed -i ' + 1 s/python$/python2/ + ' breathe/breathe-apidoc.py + sed -i ' + /sys\.version_info/ { + s/3/2/ + s/5/7/ + } + ' breathe/setup.py +} + +build() { + cd breathe + python2 setup.py build +} + +package_python2-breathe() { + cd "breathe" + python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1 + mv "${pkgdir}/usr/bin/breathe-apidoc" "${pkgdir}/usr/bin/python2-breathe-apidoc" + + install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |