blob: bba713f80b157ba18b670b4e1409bdd6e648a618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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.14.0
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")
sha512sums=('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"{,2}
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|