summaryrefslogtreecommitdiffstats
path: root/source/kde/kde/patch
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-11-24 20:49:02 +0000
committer Eric Hameleers <alien@slackware.com>2021-11-25 08:59:57 +0100
commit7a10b39e8f036460e7ea52ed953ac0fa75a76cd4 (patch)
treec248a7393473d1cff5147dbc801396503345a80a /source/kde/kde/patch
parent8ed399a7a71742513c5052b560a0e74cf0f0af47 (diff)
downloadcurrent-7a10b39e8f036460e7ea52ed953ac0fa75a76cd4.tar.gz
current-7a10b39e8f036460e7ea52ed953ac0fa75a76cd4.tar.xz
Wed Nov 24 20:49:02 UTC 202120211124204902
kde/kopeninghours-21.08.3-x86_64-2.txz: Rebuilt. Repect $LIBDIRSUFFIX when installing the Python module. Thanks to qunying.
Diffstat (limited to 'source/kde/kde/patch')
-rw-r--r--source/kde/kde/patch/kopeninghours.patch4
-rw-r--r--source/kde/kde/patch/kopeninghours/kopeninghours.x86_64.python.libdir.diff11
2 files changed, 15 insertions, 0 deletions
diff --git a/source/kde/kde/patch/kopeninghours.patch b/source/kde/kde/patch/kopeninghours.patch
new file mode 100644
index 000000000..8579bf764
--- /dev/null
+++ b/source/kde/kde/patch/kopeninghours.patch
@@ -0,0 +1,4 @@
+# Fix install dir for Python module if $LIBDIRSUFFIX = 64:
+if [ "$LIBDIRSUFFIX" = "64" ]; then
+ cat $CWD/patch/kopeninghours/kopeninghours.x86_64.python.libdir.diff | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
+fi
diff --git a/source/kde/kde/patch/kopeninghours/kopeninghours.x86_64.python.libdir.diff b/source/kde/kde/patch/kopeninghours/kopeninghours.x86_64.python.libdir.diff
new file mode 100644
index 000000000..883e4296f
--- /dev/null
+++ b/source/kde/kde/patch/kopeninghours/kopeninghours.x86_64.python.libdir.diff
@@ -0,0 +1,11 @@
+--- ./PyKOpeningHours/CMakeLists.txt.orig 2021-11-02 10:24:56.000000000 -0500
++++ ./PyKOpeningHours/CMakeLists.txt 2021-11-24 14:36:44.808100571 -0600
+@@ -24,7 +24,7 @@
+ target_link_libraries(PyKOpeningHours PUBLIC ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} KOpeningHours)
+ target_include_directories(PyKOpeningHours PRIVATE ${PYTHON_INCLUDE_DIRS})
+
+-set(_install_dir lib/python${PYTHONLIBS_VERSION_MAJOR}.${PYTHONLIBS_VERSION_MINOR}/site-packages)
++set(_install_dir lib64/python${PYTHONLIBS_VERSION_MAJOR}.${PYTHONLIBS_VERSION_MINOR}/site-packages)
+
+ install(TARGETS PyKOpeningHours DESTINATION ${_install_dir}/PyKOpeningHours)
+ install(FILES PyKOpeningHours.pyi __init__.py DESTINATION ${_install_dir}/PyKOpeningHours)