Source

pyside_aur / python-shibokengenerator / pacman_vars.patch

diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index c40d552..9129670 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -8,6 +8,11 @@ add_custom_target(data)
 add_dependencies(data shiboken)
 get_target_property(SHIBOKEN_GENERATOR shiboken OUTPUT_NAME)
 
+if (USE_PYTHON3)
+    configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pacman_vars.in"
+                   "${CMAKE_CURRENT_BINARY_DIR}/pacman_vars" @ONLY)
+endif()
+
 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ShibokenConfig.cmake.in"
                "${CMAKE_CURRENT_BINARY_DIR}/ShibokenConfig.cmake" @ONLY)
 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ShibokenConfig-spec.cmake.in"
diff --git a/data/pacman_vars.in b/data/pacman_vars.in
new file mode 100644
index 0000000..d2019fa
--- /dev/null
+++ b/data/pacman_vars.in
@@ -0,0 +1,3 @@
+@shiboken_VERSION@
+@shiboken_SUFFIX@
+@PYTHON_SUFFIX@