blob: 704db72e71790ddc14b374313a5faa7b27ea322e (
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
50
51
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-sphinx
_pkgname=${pkgname#py-}
pkgver=1.4.8
pkgrel=0
pkgdesc="Python Documentation Generator"
url="http://sphinx.pocoo.org/"
arch="noarch"
license="BSD"
_pydepends="make py-docutils py-jinja2 py-pygments py-six py-sphinx_rtd_theme
py-alabaster<0.8 py-babel py-snowballstemmer py-imagesize"
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinx/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
depends="make ${_pydepends//py-/py2-}"
_py python2
}
_py3() {
depends="make ${_pydepends//py-/py3-}"
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
md5sums="0d3471b1cf421b68d0e41aedbfa48428 sphinx-1.4.8.tar.gz"
sha256sums="69fa699f643eab554d14f35c569ca0a2377b5228a08bc4965fe12c67c69cb6b0 sphinx-1.4.8.tar.gz"
sha512sums="db2bad6964228d0653778a3afb09e6e78127dd50362a924f6206b4c377be77a255ab334e43d9729023e1694e5c8c715756334c1d792419e1137b99d87a4f3ab3 sphinx-1.4.8.tar.gz"
|