summaryrefslogtreecommitdiff
path: root/user/skanlite/fix-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/skanlite/fix-version.patch')
-rw-r--r--user/skanlite/fix-version.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/skanlite/fix-version.patch b/user/skanlite/fix-version.patch
new file mode 100644
index 000000000..94c5f345d
--- /dev/null
+++ b/user/skanlite/fix-version.patch
@@ -0,0 +1,23 @@
+--- skanlite-2.0.1/CMakeLists.txt.old 2016-10-26 12:00:57.000000000 -0500
++++ skanlite-2.0.1/CMakeLists.txt 2018-03-13 17:08:17.378028117 -0500
+@@ -43,7 +43,8 @@
+
+ set(SKANLITE_VERSION_STRING "2.0.1")
+
+-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/version.h)
++configure_file("${CMAKE_CURRENT_BINARY_DIR}/skanlite_version.h" "${CMAKE_CURRENT_BINARY_DIR}/src/version.h" COPYONLY)
++#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/version.h)
+
+ find_package(KF5 ${KF5_VERSION} REQUIRED
+ COMPONENTS # alias to find_package(KFGuiAddons ${KF5_VERSION} REQUIRED)
+--- skanlite-2.0.1/src/main.cpp.old 2016-10-26 17:00:34.000000000 +0000
++++ skanlite-2.0.1/src/main.cpp 2018-03-13 22:59:18.898057063 +0000
+@@ -44,7 +44,7 @@
+
+ KAboutData aboutData(QLatin1String("Skanlite"), // componentName, k4: appName
+ i18n("Skanlite"), // displayName, k4: programName
+- QLatin1String(skanlite_version), // version
++ QLatin1String(SKANLITE_VERSION_STRING), // version
+ i18n("Scanning application for KDE based on libksane."), // shortDescription
+ KAboutLicense::GPL, // licenseType
+ i18n("(C) 2008-2016 Kåre Särs"), // copyrightStatement