mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
imath: split imath-python3-devel out
Should any package requires Python bindings (status quo is none), it must add it explicitly, in order to correct the build order: - Some packages require libopenexr-devel, which requires to be rebuilt during boost rebuilt, but openexr isn't required to be rebuilt.
This commit is contained in:
parent
3b6c10c7b2
commit
ead0ed7c72
2 changed files with 19 additions and 5 deletions
1
srcpkgs/imath-python3-devel
Symbolic link
1
srcpkgs/imath-python3-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
imath
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'imath'
|
# Template file for 'imath'
|
||||||
pkgname=imath
|
pkgname=imath
|
||||||
version=3.1.6
|
version=3.1.6
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DPYTHON=ON"
|
configure_args="-DPYTHON=ON"
|
||||||
hostmakedepends="python3-numpy"
|
hostmakedepends="python3-numpy"
|
||||||
|
@ -27,19 +27,32 @@ post_install() {
|
||||||
imath-python3_package() {
|
imath-python3_package() {
|
||||||
short_desc+=" - Python module"
|
short_desc+=" - Python module"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/libPyImath_Python*"
|
vmove "usr/lib/libPyImath*.so.*"
|
||||||
vmove "${py3_sitelib}/imath.so"
|
vmove "${py3_sitelib}/imath.so"
|
||||||
vmove "${py3_sitelib}/imathnumpy.so"
|
vmove "${py3_sitelib}/imathnumpy.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
imath-python3-devel_package() {
|
||||||
|
depends="imath-python3>=${version}_${revision} python3-devel boost-devel
|
||||||
|
imath-devel>=${version}_${revision}"
|
||||||
|
short_desc+=" - Python module - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/include/Imath/Py*"
|
||||||
|
vmove usr/lib/pkgconfig/PyImath.pc
|
||||||
|
vmove "usr/lib/libPyImath*.so"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
imath-devel_package() {
|
imath-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}, imath-python3>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove "usr/include/Imath/half*"
|
||||||
|
vmove "usr/include/Imath/Imath*"
|
||||||
vmove usr/lib/cmake
|
vmove usr/lib/cmake
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig/Imath.pc
|
||||||
vmove "usr/lib/libImath*.so"
|
vmove "usr/lib/libImath*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue