summaryrefslogblamecommitdiff
path: root/user/skanlite/fix-version.patch
blob: e5afa0be28496b11a5319076fea5d878232fdfbf (plain) (tree)



















                                                                                                                      
                                                                                                     

                                                                                  
--- 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 by KDE based on libksane."), // shortDescription
                          KAboutLicense::GPL, // licenseType
                          i18n("(C) 2008-2016 Kåre Särs"), // copyrightStatement