diff --git a/srcpkgs/imath-python3-devel b/srcpkgs/imath-python3-devel new file mode 120000 index 00000000000..aa5ac0a078d --- /dev/null +++ b/srcpkgs/imath-python3-devel @@ -0,0 +1 @@ +imath \ No newline at end of file diff --git a/srcpkgs/imath/template b/srcpkgs/imath/template index 2729357d746..02417c31b54 100644 --- a/srcpkgs/imath/template +++ b/srcpkgs/imath/template @@ -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" } }