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:
Đoàn Trần Công Danh 2023-03-10 14:16:31 +07:00
parent 3b6c10c7b2
commit ead0ed7c72
2 changed files with 19 additions and 5 deletions

1
srcpkgs/imath-python3-devel Symbolic link
View file

@ -0,0 +1 @@
imath

View file

@ -1,7 +1,7 @@
# Template file for 'imath'
pkgname=imath
version=3.1.6
revision=1
revision=2
build_style=cmake
configure_args="-DPYTHON=ON"
hostmakedepends="python3-numpy"
@ -27,19 +27,32 @@ post_install() {
imath-python3_package() {
short_desc+=" - Python module"
pkg_install() {
vmove "usr/lib/libPyImath_Python*"
vmove "usr/lib/libPyImath*.so.*"
vmove "${py3_sitelib}/imath.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() {
depends="${sourcepkg}>=${version}_${revision}, imath-python3>=${version}_${revision}"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/include/Imath/half*"
vmove "usr/include/Imath/Imath*"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove usr/lib/pkgconfig/Imath.pc
vmove "usr/lib/libImath*.so"
}
}