diff options
| author | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-04-24 16:45:07 +0200 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-04-24 16:46:06 +0200 |
| commit | c40682265f17fb932dbea80b1625d49aafe808f4 (patch) | |
| tree | 120b3cfe23d5806ace2bce93faf0bcb718a6d1e9 /testing/hy | |
| parent | d162490756fdb6481f74d0ca5bad943ffab6746e (diff) | |
| download | aports-c40682265f17fb932dbea80b1625d49aafe808f4.tar.bz2 aports-c40682265f17fb932dbea80b1625d49aafe808f4.tar.xz | |
testing/hy: add initial doc subpackages
Only ships a man page, other documentation formats could be added in
future versions of this package.
Diffstat (limited to 'testing/hy')
| -rw-r--r-- | testing/hy/APKBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/testing/hy/APKBUILD b/testing/hy/APKBUILD index 9db3772262..471c857321 100644 --- a/testing/hy/APKBUILD +++ b/testing/hy/APKBUILD @@ -2,14 +2,15 @@ # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> pkgname=hy pkgver=0.18.0 -pkgrel=1 +pkgrel=2 pkgdesc="Dialect of Lisp that's embedded in Python" url="http://hylang.org/" arch="noarch" license="MIT" depends="python3 py3-funcparserlib py3-astor py3-rply py3-colorama" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-sphinx py3-sphinx_rtd_theme" checkdepends="python3-tests py3-pytest py3-pytest-runner py3-tox" +subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/hylang/hy/archive/$pkgver.tar.gz" # By default setup.py tries to determine the hy version using @@ -19,6 +20,7 @@ export HY_VERSION="$pkgver" build() { python3 setup.py build + make -C docs/ man } check() { @@ -30,6 +32,12 @@ check() { package() { python3 setup.py install --prefix=/usr --root="$pkgdir" + local man + for man in docs/_build/man/*.?; do + install -Dm644 "$man" \ + "$pkgdir"/usr/share/man/man${man##*.}/${man##*/} + done + # This file is only needed for setuptools-produced source # distributions <https://github.com/hylang/hy/commit/bd7b8bf5e19e>. rm -rf "$pkgdir"/usr/get_version |
