Update KDE Frameworks to 5.24.0 and add KArchive
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 12 Jul 2016 13:45:12 +0000 (15:45 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 12 Jul 2016 13:50:58 +0000 (15:50 +0200)
* configure.ac: Register KArchive
* src/inst-karchive.nsi, src/uninst-karchive.nsi: New.
* packages/packages.current: Update Frameworks. Add KArchive.
* patches/gpgmepp/drop-version-dep.patch: Removed. No longer needed.
* patches/kconfigwidgets/0001-Make-QDbus-optional.patch,
patches/kiconthemes/0001-Make-DBus-optional.patch,
patches/kxmlgui/0002-Make-QDBus-dependency-optional.patch: Refreshed.
* patches/ki18n/0001-Use-QLocale-system-uiLanguages-as-fallback.patch:
Removed. Applied upstream.
* Makefile.am (EXTRA_DIST): Update accordingly.
* src/config.nsi.in: Add KArchive
* src/inst-sections.nsi: Handle KArchive

--
KArchive is a new dependency for KIconThemes to handle themed
SVG(Z) files. As it is tier one and we ship all required dependencies
for KArchive already this should not hurt much.

13 files changed:
Makefile.am
configure.ac
packages/packages.current
patches/gpgmepp/drop-version-dep.patch [deleted file]
patches/kconfigwidgets/0001-Make-QDbus-optional.patch
patches/ki18n/0001-Use-QLocale-system-uiLanguages-as-fallback.patch [deleted file]
patches/kiconthemes/0001-Make-DBus-optional.patch
patches/kxmlgui/0002-Make-QDBus-dependency-optional.patch
src/Makefile.am
src/config.nsi.in
src/inst-karchive.nsi [new file with mode: 0644]
src/inst-sections.nsi
src/uninst-karchive.nsi [new file with mode: 0644]

index fd3cd39..d80070f 100644 (file)
@@ -37,7 +37,6 @@ EXTRA_DIST = autogen.sh README.GIT ONEWS \
         patches/w32pth-2.0.5/workaround-broken-libtool.patch \
         patches/qttools/disable-most-tools.patch \
         patches/ki18n/no-tests.patch \
-        patches/ki18n/0001-Use-QLocale-system-uiLanguages-as-fallback.patch \
         patches/gpgme-1.6.0/0001-w32-Fallback-to-2.1-reg-key-for-gpgconf-search.patch \
         patches/gpgme-1.6.0/0001-Add-gpgme_pubkey_algo_string.patch \
         patches/gpgmepp/0002-disable-variants.patch \
index 0210f43..9430ad2 100644 (file)
@@ -362,7 +362,8 @@ GPG4WIN_KDEPKG([kmime], [kcodecs])
 GPG4WIN_KDEPKG([kconfigwidgets], [kwidgetsaddons kguiaddons ki18n kcodecs kconfig])
 GPG4WIN_KDEPKG([kitemviews], [qtbase qttools])
 GPG4WIN_KDEPKG([kitemmodels], [qtbase qttools])
-GPG4WIN_KDEPKG([kiconthemes], [qtsvg kconfigwidgets])
+GPG4WIN_KDEPKG([karchive], [qtbase qttools extra-cmake-modules])
+GPG4WIN_KDEPKG([kiconthemes], [qtsvg kconfigwidgets karchive])
 GPG4WIN_KDEPKG([kxmlgui], [kiconthemes kconfigwidgets kitemviews])
 GPG4WIN_KDEPKG([libkleo], [gpgmepp kmime kwidgetsaddons kwindowsystem kcompletion kconfig gpgme])
 
index 2b602f1..4473d71 100644 (file)
@@ -376,114 +376,123 @@ file 5.5/5.5.1/submodules/qtsvg-opensource-src-5.5.1.tar.xz
 chk f7f588be48befd9ccab5a6086832551b8899e8bed9e603ddea979581e05a91c7
 
 
-# KDE Frameworks
+# KDE Frameworks generated by gen-frameworks.sh
 
 server http://download.kde.org/stable/frameworks/
 
-# ECM
-# last changed: 2016-03-10
+##### Paste Here #####
+# extra-cmake-modules
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/extra-cmake-modules-5.20.0.tar.xz
-chk 2c8ff0c7289edfaa95007e622c87a5fa95e9e2a2ed291eb25a61f06ea92ac34c
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/extra-cmake-modules-5.24.0.tar.xz
+chk 8a4fd5eac37d4c6a4998c48716efe2392c6f7ec9a124aab4c8fc26516815a106
 
-# KConfig
-# last changed: 2016-04-19
+# kconfig
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kconfig-5.20.0.tar.xz
-chk ebd7dd5c6960eac1aee299bd804ab864cad235ef30d312256b01b57ed9ff635b
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kconfig-5.24.0.tar.xz
+chk bb57371d419457529450ba570cd2804ea127a451bfbd8e8d0cfc45cfa28982b5
 
-# KI18n
-# last changed: 2016-04-19
+# ki18n
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/ki18n-5.20.0.tar.xz
-chk 226715a464a9b1d03c257d470ea0d6060fdfe35efc635108491cadb48512389c
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/ki18n-5.24.0.tar.xz
+chk bb01b060e29634678ef262aed500a54e8f26bda96c003eef1d0a6b5eaf268233
 
-# KWidgetsAddons
-# last changed: 2016-04-19
+# kwidgetsaddons
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kwidgetsaddons-5.20.0.tar.xz
-chk a930990de3b090d10c20cb30d764825a551253a7d4b104b4eac9ae73dc81e628
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kwidgetsaddons-5.24.0.tar.xz
+chk 9d551fb9a0813f2df5563856d4e7e40665e59d6b42cba80d36cb42772fe8f7ce
 
-# KCompletion
-# last changed: 2016-04-19
+# kcompletion
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kcompletion-5.20.0.tar.xz
-chk a503a1516012ecc5b6eaa328c31dfd0d6c527a8a78489d9d372dba90d0ec1b4f
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kcompletion-5.24.0.tar.xz
+chk bbbb6eba8786939b275bcbc72ac5b04904d77cc8324e0bf99f06d917c60696e2
 
-# KWindowSystem
-# last changed: 2016-04-19
+# kwindowsystem
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kwindowsystem-5.20.0.tar.xz
-chk b1d7e273b5fc75fbde45fe33179ea884a0b9761af0663279405cfd18d9e4390f
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kwindowsystem-5.24.0.tar.xz
+chk bf191b760eb5de97e7a2cdda8c8a59d50597e46d7714510c1e1b20aa2baabe70
 
-# KCoreAddons
-# last changed: 2016-04-19
+# kcoreaddons
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kcoreaddons-5.20.0.tar.xz
-chk ac3819517744f1868c664045eaf9231cdf1c090dec3d329257ee7b56dc94fe69
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kcoreaddons-5.24.0.tar.xz
+chk 7080985a9d51358fb8638a4a048e3d045ab2fb02b7c8ad6c8b596d3bfc3a5d1b
 
-# KCodecs
-# last changed: 2016-04-19
+# kcodecs
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kcodecs-5.20.0.tar.xz
-chk b08b419aaa1137083be32885afac8cfa7b3f1c3c874b5046e57c1f70cf0d3122
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kcodecs-5.24.0.tar.xz
+chk 8c849f6c3411fe6036e2b8ae3449d0f5eab86eb491d6252440ff0b860794ffe2
 
-# KConfigWidgets
-# last changed: 2016-04-19
+# kconfigwidgets
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kconfigwidgets-5.20.0.tar.xz
-chk c707529939e66d14bff03c320c0bf3237c760034344b2d8b28a4a4e53be079ba
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kconfigwidgets-5.24.0.tar.xz
+chk 82a6ea0c5a07c121ecb4d5e9071c768c3ef89aca196cfa29412916f840c9456c
 
-# KXmlGui
-# last changed: 2016-04-19
+# kxmlgui
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kxmlgui-5.20.0.tar.xz
-chk 84d186d92969570a47f314c20f7f444d3d82182e47b6f065ab3537bdbc221c14
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kxmlgui-5.24.0.tar.xz
+chk 174643efc8ba49aaa2e1f014088ec73fe7000121c7407973a57331081bed11e2
 
-# KGuiAddons
-# last changed: 2016-04-19
+# kguiaddons
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kguiaddons-5.20.0.tar.xz
-chk be0e6a2f1a1c0d670a8333325b0a65334a2aff62dda9c8e32347a480f9e62407
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kguiaddons-5.24.0.tar.xz
+chk 2c8e27aa763c5af2877fb5f3aa0816706e3a85da49727d792e6f7920a032e945
 
-# KItemViews
-# last changed: 2016-04-19
+# kitemviews
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kitemviews-5.20.0.tar.xz
-chk 3d71897950535b3180966917997320bd7227c503cb9e47356fe01df687d7e596
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kitemviews-5.24.0.tar.xz
+chk dc298914af2436003fcf1dd6dbd03d9a11a2063af83b5e735647f43061ea6e78
 
-# KItemModels
-# last changed: 2016-04-29
+# kitemmodels
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kitemmodels-5.20.0.tar.xz
-chk 2fce8fe2294ec26a1943c44a547cfd1a2b3e7044e5b571bebd0aef5c7812da79
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kitemmodels-5.24.0.tar.xz
+chk c9403de0a6a155931cb96790dc1407c06d95ee096a5ab9795bbfe11bb82537e8
 
-# KIconThemes
-# last changed: 2016-04-19
+# kiconthemes
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/kiconthemes-5.20.0.tar.xz
-chk 772d1a9f5a3168b8d5f255af66e04c8019df516225ac5ad268365dca1bbf4ee7
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/kiconthemes-5.24.0.tar.xz
+chk d5c0a0422cdc655fc3a800a8dfbb97bd0a838456b72176cdf6ee7363c58bbfcc
 
 # breeze-icons
-# last changed: 2016-04-19
+# last changed: 2016-07-12
+# by: ah
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/breeze-icons-5.24.0.tar.xz
+chk a2b344907aab4e0549d72740f4ebde0e60566ae5240d63f7584da7d4655c07b6
+
+# karchive
+# last changed: 2016-07-12
 # by: ah
-# verified: https://www.kde.org/info/kde-frameworks-5.20.0.php
-file 5.20/breeze-icons-5.20.0.tar.xz
-chk 445b5cb8774cb224f804abea7864a8bf6307b6a4d1958b4caf1d251f02f98204
+# verified: https://www.kde.org/info/kde-frameworks-5.24.0.php (created by gen-frameworks.sh)
+file 5.24/karchive-5.24.0.tar.xz
+chk f86f35bf4a216348ab09aaef36ee2aca3b3223ceea78299f6cd9e2ed3274b6d8
+##### End Paste #####
 
 # KDE Applications
 #
diff --git a/patches/gpgmepp/drop-version-dep.patch b/patches/gpgmepp/drop-version-dep.patch
deleted file mode 100755 (executable)
index 6d373f2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#! /bin/sh
-patch -p1 -l -f $* < $0
-exit $?
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 613c6fe..f9a045f 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12)
- project(Gpgmepp)
-
- # ECM setup
--set(KF5_VERSION "5.22.0")
-+set(KF5_VERSION "5.20.0")
- find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
- set(CMAKE_MODULE_PATH ${Gpgmepp_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
index 9206ff3..1c20675 100755 (executable)
@@ -21,10 +21,10 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
 index bed53d1..87f976c 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -10,7 +10,16 @@ feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKA
+@@ -10,7 +10,16 @@
  set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
 
- set(REQUIRED_QT_VERSION "5.3.0")
+ set(REQUIRED_QT_VERSION 5.4.0)
 -find_package(Qt5 "${REQUIRED_QT_VERSION}" CONFIG REQUIRED Widgets DBus)
 +if (UNIX)
 +    find_package(Qt5 "${REQUIRED_QT_VERSION}" CONFIG REQUIRED Widgets DBus)
@@ -37,7 +37,7 @@ index bed53d1..87f976c 100644
 +endif()
 +set (HAVE_QDBUS ${Qt5DBus_FOUND})
  include(KDEInstallDirs)
- include(KDEFrameworkCompilerSettings)
+ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
  include(KDECMakeSettings)
 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
 index 97837b3..104b118 100644
diff --git a/patches/ki18n/0001-Use-QLocale-system-uiLanguages-as-fallback.patch b/patches/ki18n/0001-Use-QLocale-system-uiLanguages-as-fallback.patch
deleted file mode 100755 (executable)
index 7984193..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#! /bin/sh
-patch -p1 -l -f $* < $0
-exit $?
-
-From 7a2c71e618d97f5d4a3bdf1ba10fc36c638f17ba Mon Sep 17 00:00:00 2001
-From: Andre Heinecke <aheinecke@intevation.de>
-Date: Fri, 4 Mar 2016 11:26:06 +0100
-Subject: [PATCH] Use QLocale::system uiLanguages as fallback
-
-This fixes locale initialisation on platforms that don't use
-environment variables for language settings. (Windows)
----
- src/klocalizedstring.cpp | 54 ++++++++++++++++++++++++++++++------------------
- 1 file changed, 34 insertions(+), 20 deletions(-)
-
-diff --git a/src/klocalizedstring.cpp b/src/klocalizedstring.cpp
-index b24fe9b..e1f71dd 100644
---- a/src/klocalizedstring.cpp
-+++ b/src/klocalizedstring.cpp
-@@ -95,6 +95,30 @@ static void splitLocale(const QString &aLocale,
-     language = locale;
- }
-
-+static void appendLocaleString(QStringList &languages, const QString &value)
-+{
-+    // Process the value to create possible combinations.
-+    QString language, country, modifier, charset;
-+    splitLocale(value, language, country, modifier, charset);
-+
-+    if (!country.isEmpty() && !modifier.isEmpty()) {
-+        languages +=   language + QLatin1Char('_')
-+                       + country + QLatin1Char('@')
-+                       + modifier;
-+    }
-+    // NOTE: Priority is unclear in case both the country and
-+    // the modifier are present. Should really language@modifier be of
-+    // higher priority than language_country?
-+    // In at least one case (Serbian language), it is better this way.
-+    if (!modifier.isEmpty()) {
-+        languages += language + QLatin1Char('@') + modifier;
-+    }
-+    if (!country.isEmpty()) {
-+        languages += language + QLatin1Char('_') + country;
-+    }
-+    languages += language;
-+}
-+
- static void appendLanguagesFromVariable(QStringList &languages,
-                                         const char *envar, bool isList = false)
- {
-@@ -104,30 +128,19 @@ static void appendLanguagesFromVariable(QStringList &languages,
-         if (isList) {
-             languages += value.split(QLatin1Char(':'));
-         } else {
--            // Process the value to create possible combinations.
--            QString language, country, modifier, charset;
--            splitLocale(value, language, country, modifier, charset);
--
--            if (!country.isEmpty() && !modifier.isEmpty()) {
--                languages +=   language + QLatin1Char('_')
--                               + country + QLatin1Char('@')
--                               + modifier;
--            }
--            // NOTE: Priority is unclear in case both the country and
--            // the modifier are present. Should really language@modifier be of
--            // higher priority than language_country?
--            // In at least one case (Serbian language), it is better this way.
--            if (!modifier.isEmpty()) {
--                languages += language + QLatin1Char('@') + modifier;
--            }
--            if (!country.isEmpty()) {
--                languages += language + QLatin1Char('_') + country;
--            }
--            languages += language;
-+            appendLocaleString(languages, value);
-         }
-     }
- }
-
-+static void appendLanguagesFromQLocale(QStringList &languages, const QLocale &locale)
-+{
-+    const QStringList uiLangs = locale.uiLanguages();
-+    Q_FOREACH (QString value, uiLangs) {
-+        appendLocaleString(languages, value.replace(QLatin1Char('-'), QLatin1Char('_')));
-+    }
-+}
-+
- // Extract the first country code from a list of language_COUNTRY strings.
- // Country code is converted to all lower case letters.
- static QString extractCountry(const QStringList &languages)
-@@ -333,6 +346,7 @@ void KLocalizedStringPrivateStatics::initializeLocaleLanguages()
-     appendLanguagesFromVariable(localeLanguages, "LC_ALL");
-     appendLanguagesFromVariable(localeLanguages, "LC_MESSAGES");
-     appendLanguagesFromVariable(localeLanguages, "LANG");
-+    appendLanguagesFromQLocale(localeLanguages, QLocale::system());
- }
-
- KLocalizedString::KLocalizedString()
---
-2.1.4
index 2f46c68..0a41707 100755 (executable)
@@ -84,20 +84,19 @@ index 75ab482..3a0ff0a 100644
  #include "kiconloader.h"
 
  #include <qplatformdefs.h> //for readlink
-@@ -46,8 +48,11 @@
+@@ -46,8 +48,10 @@
  #include <kconfiggroup.h>
  #include <kshareddatacache.h>
  #include <ksharedconfig.h>
 -#include <QtDBus/QDBusConnection>
 -#include <QDBusMessage>
-+
 +#if HAVE_QDBUS
 +# include <QtDBus/QDBusConnection>
 +# include <QDBusMessage>
 +#endif
-
- // kdeui
- #include "kicontheme.h"
+ #include <QSvgRenderer>
+ #include <QXmlStreamReader>
+ #include <QXmlStreamWriter>
 @@ -323,15 +328,21 @@ public:
              parseGenericIconsFiles(file);
          }
index 8fb1414..bc1a808 100755 (executable)
@@ -43,7 +43,7 @@ index 74afa01..a6691fe 100644
 +option(FORCE_DISABLE_DBUS "Force building KXmlGui without a dependency to QDbus. This will break KMainWindow integration and style change notifications. [default=OFF]" OFF)
 
  # Dependencies
- set(REQUIRED_QT_VERSION 5.3.0)
+ set(REQUIRED_QT_VERSION 5.4.0)
 -find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets DBus Xml Network PrintSupport)
 -
 +find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets Xml Network PrintSupport)
index c0fe8a6..8554173 100644 (file)
@@ -74,6 +74,7 @@ EXTRA_DIST = pkg-config gpg4win.nsi gpg4win-src.nsi \
         inst-kxmlgui.nsi uninst-kxmlgui.nsi \
         inst-kiconthemes.nsi uninst-kiconthemes.nsi \
         inst-breeze-icons.nsi uninst-breeze-icons.nsi \
+        inst-karchive.nsi uninst-karchive.nsi \
         inst-kitemviews.nsi uninst-kitemviews.nsi \
         inst-kitemmodels.nsi uninst-kitemmodels.nsi \
         inst-kguiaddons.nsi uninst-kguiaddons.nsi \
@@ -117,7 +118,7 @@ gpg4win_qtpkgs = qtbase qttools qtwinextras qtsvg
 gpg4win_kdepkgs = kconfig kwidgetsaddons gpgmepp ki18n extra-cmake-modules \
                   kcompletion kwindowsystem kcoreaddons libkleo kcodecs \
                   kmime kconfigwidgets kxmlgui kguiaddons kitemviews \
-                  kiconthemes kleopatra breeze-icons kitemmodels
+                  kiconthemes kleopatra breeze-icons kitemmodels karchive
 
 # Supported source packages to build in an additional architecture
 gpg4win_expkgs = libgpg-error libassuan libiconv gettext w32pth gpgex gpgol \
index 7809c75..93ef87a 100644 (file)
 !define gpg4win_pkg_kde_l10n_version @gpg4win_pkg_kde_l10n_version@
 !define gpg4win_pkg_kde_l10n_src @gpg4win_pkg_kde_l10n_src@
 
+@HAVE_PKG_KARCHIVE@
+!define gpg4win_pkg_karchive @gpg4win_pkg_karchive@
+!define gpg4win_pkg_karchive_version @gpg4win_pkg_karchive_version@
+
 # Internal packages.
 @HAVE_PKG_COMPENDIUM@
 
diff --git a/src/inst-karchive.nsi b/src/inst-karchive.nsi
new file mode 100644 (file)
index 0000000..581c797
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright (C) 2016 Intevation GmbH
+#
+# This file is part of GPG4Win.
+#
+# GPG4Win is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# GPG4Win is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+!ifdef prefix
+!undef prefix
+!endif
+!define prefix ${ipdir}/karchive-${gpg4win_pkg_karchive_version}
+
+!ifdef DEBUG
+Section "karchive" SEC_karchive
+!else
+Section "-karchive" SEC_karchive
+!endif
+  SetOutPath "$INSTDIR"
+!ifdef SOURCES
+  File "${gpg4win_pkg_karchive}"
+!else
+  SetOutPath "$INSTDIR\bin"
+  File ${prefix}/bin/libKF5Archive.dll
+!endif
+SectionEnd
index d2eaf2d..f537457 100644 (file)
 !ifdef HAVE_PKG_KICONTHEMES
 !include "inst-kiconthemes.nsi"
 !endif
+!ifdef HAVE_PKG_KARCHIVE
+!include "inst-karchive.nsi"
+!endif
 !ifdef HAVE_PKG_KITEMVIEWS
 !include "inst-kitemviews.nsi"
 !endif
 !ifdef HAVE_PKG_KICONTHEMES
 !include "uninst-kiconthemes.nsi"
 !endif
+!ifdef HAVE_PKG_KARCHIVE
+!include "uninst-karchive.nsi"
+!endif
 !ifdef HAVE_PKG_KITEMVIEWS
 !include "uninst-kitemviews.nsi"
 !endif
@@ -633,6 +639,9 @@ Function CalcDepends
 !ifdef HAVE_PKG_KICONTHEMES
   !insertmacro UnselectSection ${SEC_kiconthemes}
 !endif
+!ifdef HAVE_PKG_KARCHIVE
+  !insertmacro UnselectSection ${SEC_karchive}
+!endif
 !ifdef HAVE_PKG_KITEMVIEWS
   !insertmacro UnselectSection ${SEC_kitemviews}
 !endif
@@ -757,6 +766,7 @@ Function CalcDepends
   !insertmacro SelectSection ${SEC_kitemviews}
   !insertmacro SelectSection ${SEC_kitemmodels}
   !insertmacro SelectSection ${SEC_kiconthemes}
+  !insertmacro SelectSection ${SEC_karchive}
   !insertmacro SelectSection ${SEC_kguiaddons}
   !insertmacro SelectSection ${SEC_qtsvg}
   !insertmacro SelectSection ${SEC_kmime}
diff --git a/src/uninst-karchive.nsi b/src/uninst-karchive.nsi
new file mode 100644 (file)
index 0000000..cc56952
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright (C) 2016 Intevation GmbH
+#
+# This file is part of GPG4Win.
+#
+# GPG4Win is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# GPG4Win is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+!ifdef prefix
+!undef prefix
+!endif
+!define prefix ${ipdir}/karchive-${gpg4win_pkg_karchive_version}
+
+; Uninstaller section.
+Section "-un.karchive"
+!ifdef SOURCES
+  Push "${gpg4win_pkg_karchive}"
+  Call un.SourceDelete
+!else
+  Delete "$INSTDIR\bin\libKF5Archive.dll"
+  RmDir "$INSTDIR\bin"
+
+!endif
+SectionEnd