35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'python3-pybind11'
|
|
pkgname=python3-pybind11
|
|
version=2.6.1
|
|
revision=1
|
|
wrksrc="pybind11-${version}"
|
|
build_style=python3-module
|
|
make_install_args="--install-headers=/usr/include/pybind11"
|
|
hostmakedepends="cmake python3-setuptools
|
|
python3-pytest python3-sphinx_rtd_theme python3-breathe"
|
|
depends="python3-devel"
|
|
short_desc="C++ header-only library to produce Python bindings"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/pybind/pybind11"
|
|
distfiles="https://github.com/pybind/pybind11/archive/v${version}.tar.gz"
|
|
checksum=cdbe326d357f18b83d10322ba202d69f11b2f49e2d87ade0dc2be0c5c34f8e2a
|
|
|
|
|
|
post_build() {
|
|
# 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
|
|
# Build the man page
|
|
make $makejobs -C docs man
|
|
}
|
|
|
|
post_install() {
|
|
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
|
|
}
|