mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
tbb: fix Python module installation
This commit is contained in:
parent
a47c1721be
commit
1f5063335f
1 changed files with 30 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tbb'
|
# Template file for 'tbb'
|
||||||
pkgname=tbb
|
pkgname=tbb
|
||||||
version=2021.11.0
|
version=2021.11.0
|
||||||
revision=3
|
revision=4
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DTBB_STRICT=OFF -DTBB_TEST=OFF"
|
configure_args="-DTBB_STRICT=OFF -DTBB_TEST=OFF"
|
||||||
makedepends="libgomp-devel libhwloc-devel"
|
makedepends="libgomp-devel libhwloc-devel"
|
||||||
|
@ -28,13 +28,41 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
vsed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \
|
vsed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \
|
||||||
-i src/tbbmalloc_proxy/proxy.h
|
-i src/tbbmalloc_proxy/proxy.h
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
# The Python package is installed as an egg, which is deprecated
|
||||||
|
# and isn't added to the Python path, so just unpack it.
|
||||||
|
local f sitelib
|
||||||
|
sitelib="${DESTDIR}/${py3_sitelib}"
|
||||||
|
|
||||||
|
for f in "${sitelib}"/TBB*-"py${py3_ver}"*.egg/EGG-INFO; do
|
||||||
|
[ -d "${f}" ] || continue
|
||||||
|
mv "${f}" "${f%-"py${py3_ver}"*.egg/EGG-INFO}-py${py3_ver}.egg-info"
|
||||||
|
done
|
||||||
|
|
||||||
|
for f in "${sitelib}"/TBB*.egg/*; do
|
||||||
|
[ -e "${f}" ] || continue
|
||||||
|
mv "${f}" "${DESTDIR}/${py3_sitelib}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Clean up the egg directory to confirm it was successfully unpacked
|
||||||
|
for f in "${sitelib}"/*.egg; do
|
||||||
|
[ -e "${f}" ] || continue
|
||||||
|
rmdir "${f}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Make sure the post-install hook finds this shlib for renaming
|
||||||
|
for f in "${sitelib}"/tbb/_api*.so; do
|
||||||
|
[ -e "${f}" ] || continue
|
||||||
|
chmod 0755 "${f}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
tbb-devel_package() {
|
tbb-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue