python3-pybind11: restore manual page
This commit is contained in:
parent
79413c8f70
commit
f3a427cfed
|
@ -1,10 +1,11 @@
|
||||||
# Template file for 'python3-pybind11'
|
# Template file for 'python3-pybind11'
|
||||||
pkgname=python3-pybind11
|
pkgname=python3-pybind11
|
||||||
version=2.7.1
|
version=2.7.1
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="pybind11-${version}"
|
wrksrc="pybind11-${version}"
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="cmake python3-setuptools python3-pytest"
|
hostmakedepends="cmake python3-setuptools
|
||||||
|
python3-pytest python3-sphinx_rtd_theme python3-breathe"
|
||||||
depends="python3-devel"
|
depends="python3-devel"
|
||||||
checkdepends="python3-numpy $depends"
|
checkdepends="python3-numpy $depends"
|
||||||
short_desc="C++ header-only library to produce Python bindings"
|
short_desc="C++ header-only library to produce Python bindings"
|
||||||
|
@ -14,6 +15,17 @@ homepage="https://github.com/pybind/pybind11"
|
||||||
distfiles="https://github.com/pybind/pybind11/archive/v${version}.tar.gz"
|
distfiles="https://github.com/pybind/pybind11/archive/v${version}.tar.gz"
|
||||||
checksum=616d1c42e4cf14fa27b2a4ff759d7d7b33006fdc5ad8fd603bb2c22622f27020
|
checksum=616d1c42e4cf14fa27b2a4ff759d7d7b33006fdc5ad8fd603bb2c22622f27020
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
# These dependencies are not packaged and don't affect the man page
|
||||||
|
vsed -e '/sphinxcontrib.rsvgconverter/d' \
|
||||||
|
-e '/sphinxcontrib.moderncmakedomain/d' -i docs/conf.py
|
||||||
|
}
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
# Build the man page
|
||||||
|
make $makejobs -C docs man
|
||||||
|
}
|
||||||
|
|
||||||
pre_check() {
|
pre_check() {
|
||||||
mkdir -p build.tests
|
mkdir -p build.tests
|
||||||
|
|
||||||
|
@ -31,4 +43,9 @@ do_check() {
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
||||||
|
# Copy the man page, but make it section 7
|
||||||
|
_manpage=docs/.build/man/pybind11.1
|
||||||
|
vsed -i ${_manpage} -e '/^\.TH/ s/"1"/"7"/'
|
||||||
|
vman ${_manpage} pybind11.7
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue