mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-pybind11: add "system" headers, cmake and pkg-config configs
This commit is contained in:
parent
f2ac1733dc
commit
886210afee
1 changed files with 14 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python3-pybind11'
|
# Template file for 'python3-pybind11'
|
||||||
pkgname=python3-pybind11
|
pkgname=python3-pybind11
|
||||||
version=2.11.1
|
version=2.11.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="cmake python3-setuptools
|
hostmakedepends="cmake python3-setuptools
|
||||||
python3-pytest python3-sphinx_rtd_theme python3-breathe"
|
python3-pytest python3-sphinx_rtd_theme python3-breathe"
|
||||||
|
@ -45,7 +45,19 @@ post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
||||||
# Copy the man page, but make it section 7
|
# Copy the man page, but make it section 7
|
||||||
_manpage=docs/.build/man/pybind11.1
|
local _manpage=docs/.build/man/pybind11.1
|
||||||
vsed -i ${_manpage} -e '/^\.TH/ s/"1"/"7"/'
|
vsed -i ${_manpage} -e '/^\.TH/ s/"1"/"7"/'
|
||||||
vman ${_manpage} pybind11.7
|
vman ${_manpage} pybind11.7
|
||||||
|
|
||||||
|
# Include links for a "system" installation
|
||||||
|
local _pybind11="${DESTDIR}/${py3_sitelib}/pybind11"
|
||||||
|
local _tgt
|
||||||
|
|
||||||
|
for _tgt in include share/{cmake,pkgconfig}; do
|
||||||
|
vmkdir "usr/${_tgt}"
|
||||||
|
done
|
||||||
|
|
||||||
|
for _tgt in {include,share/cmake}/pybind11 share/pkgconfig/pybind11.pc; do
|
||||||
|
ln -Trs "${_pybind11}/${_tgt}" "${DESTDIR}/usr/${_tgt}"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue