[arch-commits] Commit in python-breathe/repos/community-any (PKGBUILD)

Santiago Torres-Arias sangy at archlinux.org
Sat Nov 17 23:38:49 UTC 2018


    Date: Saturday, November 17, 2018 @ 23:38:46
  Author: sangy
Revision: 408628

archrelease: copy trunk to community-any

Added:
  python-breathe/repos/community-any/PKGBUILD
    (from rev 408627, python-breathe/trunk/PKGBUILD)

----------+
 PKGBUILD |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

Copied: python-breathe/repos/community-any/PKGBUILD (from rev 408627, python-breathe/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-11-17 23:38:46 UTC (rev 408628)
@@ -0,0 +1,65 @@
+# Maintainer : Daniel Bermond < archlinux-org: dbermond >
+# Maintainer : Santiago Torres-Arias <santiago at archlinux.org>
+# Contributor: Simon Boulay <simon.boulay at alkeona.net>
+
+pkgbase=python-breathe
+pkgname=('python-breathe' 'python2-breathe')
+pkgver=4.11.0
+pkgrel=2
+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')
+makedepends=('python' 'git' 'python-setuptools' 'python2' 'python2-setuptools')
+source=("git+https://github.com/michaeljones/breathe#tag=v${pkgver}?signed")
+checkdepends=('python-nose' 'python2-nose' 'python-sphinx' 'python2-sphinx')
+sha256sums=('SKIP')
+validpgpkeys=('79DC0FAF18C31807E82E1A6B9EF1DC92B5F301BD') # Melvin Vermeeren <mail at mel.vin>
+
+prepare() {
+  cp -a "breathe" "breathe2"
+}
+
+# FIXME: tests are disabled for now, as sphinx 1.8.1+ break them.
+# See upstream bug: https://github.com/michaeljones/breathe/issues/394
+# check() {
+#   cd breathe
+# 
+#   PYTHONPATH=$PWD make test
+# 
+#   cd "${srcdir}/breathe2"
+# 
+#   PYTHONPATH=$PWD make test
+# 
+# }
+
+build() {
+  cd breathe
+  python setup.py build
+
+  cd "${srcdir}/breathe2"
+  python setup.py build
+}
+
+package_python-breathe() {
+  depends=('python' 'python-setuptools' 'python-sphinx' 'python-docutils' 'python-six')
+
+  cd "breathe"
+  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
+
+  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+
+package_python2-breathe() {
+  pkgdesc="An extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output (python2)"
+  depends=('python2' 'python2-setuptools' 'python2-sphinx' 'python2-docutils' 'python2-six')
+
+  cd "breathe2"
+  python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
+
+  # To avoid file conflict with the python3 version
+  mv "$pkgdir"/usr/bin/breathe-apidoc{,2}
+
+  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}


More information about the arch-commits mailing list