[arch-commits] Commit in python-breathe/trunk (PKGBUILD)

Daniel Bermond dbermond at gemini.archlinux.org
Thu Jul 22 21:11:00 UTC 2021


    Date: Thursday, July 22, 2021 @ 21:10:59
  Author: dbermond
Revision: 984056

upgpkg: python-breathe 4.30.0-2: add fix for gdal

Modified:
  python-breathe/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-22 20:26:47 UTC (rev 984055)
+++ PKGBUILD	2021-07-22 21:10:59 UTC (rev 984056)
@@ -4,33 +4,36 @@
 
 pkgname=python-breathe
 pkgver=4.30.0
-pkgrel=1
+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')
 depends=('python' 'python-sphinx' 'python-docutils' 'python-six')
-makedepends=('python-setuptools')
+makedepends=('git' 'python-setuptools')
 checkdepends=('python-pytest')
-source=("https://github.com/michaeljones/breathe/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
-        "${pkgname}-${pkgver}.tar.gz.sig"::"https://github.com/michaeljones/breathe/releases/download/v${pkgver}/breathe-${pkgver}.tar.gz.sig")
-sha512sums=('fa09ee687a8e67fa480865a0d33affd9aa0ab48b0cb5b685731ec393045d8c9e1ae0622a1315f805449d712e99e6982ed229bb79314c69f69da0c705d075f7f9'
-            'SKIP')
+source=("git+https://github.com/michaeljones/breathe.git#tag=v${pkgver}?signed")
+sha512sums=('SKIP')
 validpgpkeys=('8AED58021FEACDD5F27BA0E6A72F627716EA9D96') # Melvin Vermeeren <vermeeren at vermwa.re>
 
-check() {
-  cd "breathe-${pkgver}"
-  PYTHONPATH="$PWD" make test
+prepare() {
+  # needed for building gdal documentation (and possibly others)
+  git -C breathe fetch origin pull/711/head:handle-parsing-errors
+  git -C breathe merge --no-commit handle-parsing-errors
 }
 
 build() {
-  cd "breathe-${pkgver}"
+  cd breathe
   python setup.py build
 }
 
+check() {
+  cd breathe
+  PYTHONPATH="$PWD" make test
+}
+
 package_python-breathe() {
-  cd "breathe-${pkgver}"
+  cd breathe
   PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --skip-build --optimize=1
-
   install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }




More information about the arch-commits mailing list