aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Hodina <phodina@protonmail.com>2022-06-21 04:56:08 +0200
committerMarius Bakke <marius@gnu.org>2022-09-01 17:23:59 +0200
commit568d1676490ec766bcf199025e56ecd945dec286 (patch)
tree61fbf15ce1d2480f843dbb0184c63cc088843356
parent2ac5bdfab896be2eb2b21ed2cbc333bb4cda685b (diff)
downloadguix-568d1676490ec766bcf199025e56ecd945dec286.tar.gz
guix-568d1676490ec766bcf199025e56ecd945dec286.zip
gnu: grantleetheme: Update to 21.12.3.
* gnu/packages/kde.scm (grantleetheme): Update to 21.12.3. * gnu/local.mk: Remove patch. * gnu/packages/patches/grantlee-merge-theme-dirs.patch: Remove file. Signed-off-by: Marius Bakke <marius@gnu.org>
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/kde.scm5
-rw-r--r--gnu/packages/patches/grantlee-merge-theme-dirs.patch163
3 files changed, 2 insertions, 167 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index b20d16b8a6..b8722c0a37 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1240,7 +1240,6 @@ dist_patch_DATA = \
%D%/packages/patches/gpm-glibc-2.26.patch \
%D%/packages/patches/gpodder-disable-updater.patch \
%D%/packages/patches/gpsbabel-fix-i686-test.patch \
- %D%/packages/patches/grantlee-merge-theme-dirs.patch \
%D%/packages/patches/grep-timing-sensitive-test.patch \
%D%/packages/patches/grfcodec-gcc-compat.patch \
%D%/packages/patches/gromacs-tinyxml2.patch \
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index f187c02ba4..d83018934d 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -124,15 +124,14 @@ This package contains GUI widgets for baloo.")
(define-public grantleetheme
(package
(name "grantleetheme")
- (version "20.04.1")
+ (version "21.12.3")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://kde/stable/release-service/" version
"/src/grantleetheme-" version ".tar.xz"))
(sha256
- (base32 "0gabc5cb0sf00s7m5v2jnq55qsrdbrq6nqd15y1i15p788zifsjx"))
- (patches (search-patches "grantlee-merge-theme-dirs.patch"))))
+ (base32 "1w83slbkj2y1wk78srq2k95ybs66sb4mbaa0zm7fl9pkwhqxbnb7"))))
(build-system qt-build-system)
(arguments `(#:tests? #f)) ; unexpected error in the test suite.
(native-inputs
diff --git a/gnu/packages/patches/grantlee-merge-theme-dirs.patch b/gnu/packages/patches/grantlee-merge-theme-dirs.patch
deleted file mode 100644
index 96a15a387b..0000000000
--- a/gnu/packages/patches/grantlee-merge-theme-dirs.patch
+++ /dev/null
@@ -1,163 +0,0 @@
-Taken from nixpkgs, see
-grantleetheme: merge themes across multiple prefixes
-<https://github.com/NixOS/nixpkgs/commits/master/pkgs/applications/kde/grantleetheme/grantlee-merge-theme-dirs.patch>
-
-
-diff --git a/src/grantleetheme.cpp b/src/grantleetheme.cpp
-index 27d5bc8..8d43140 100644
---- a/src/grantleetheme.cpp
-+++ b/src/grantleetheme.cpp
-@@ -46,7 +46,7 @@ ThemePrivate::ThemePrivate(const ThemePrivate &other)
- , description(other.description)
- , name(other.name)
- , dirName(other.dirName)
-- , absolutePath(other.absolutePath)
-+ , absolutePaths(other.absolutePaths)
- , author(other.author)
- , email(other.email)
- , loader(other.loader)
-@@ -64,12 +64,15 @@ void ThemePrivate::setupEngine()
-
- void ThemePrivate::setupLoader()
- {
-- // Get the parent dir with themes, we set the theme directory separately
-- QDir dir(absolutePath);
-- dir.cdUp();
-+ QStringList templateDirs;
-+ for (const QString& path : absolutePaths) {
-+ QDir dir(path);
-+ dir.cdUp();
-+ templateDirs << dir.absolutePath();
-+ }
-
- loader = QSharedPointer<GrantleeTheme::QtResourceTemplateLoader>::create();
-- loader->setTemplateDirs({ dir.absolutePath() });
-+ loader->setTemplateDirs(templateDirs);
- loader->setTheme(dirName);
-
- if (!sEngine) {
-@@ -121,7 +124,7 @@ Theme::Theme(const QString &themePath, const QString &dirName, const QString &de
- KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
- if (group.isValid()) {
- d->dirName = dirName;
-- d->absolutePath = themePath;
-+ d->absolutePaths = QStringList(themePath);
- d->name = group.readEntry("Name", QString());
- d->description = group.readEntry("Description", QString());
- d->themeFileName = group.readEntry("FileName", QString());
-@@ -140,7 +143,7 @@ Theme::~Theme()
-
- bool Theme::operator==(const Theme &other) const
- {
-- return isValid() && other.isValid() && d->absolutePath == other.absolutePath();
-+ return isValid() && other.isValid() && d->absolutePaths == other.absolutePaths();
- }
-
- Theme &Theme::operator=(const Theme &other)
-@@ -184,7 +187,15 @@ QString Theme::dirName() const
-
- QString Theme::absolutePath() const
- {
-- return d->absolutePath;
-+ if (! d->absolutePaths.isEmpty()) {
-+ return d->absolutePaths.first();
-+ };
-+ return QString();
-+}
-+
-+QStringList Theme::absolutePaths() const
-+{
-+ return d->absolutePaths;
- }
-
- QString Theme::author() const
-@@ -223,6 +231,13 @@ QString Theme::render(const QString &templateName, const QVariantHash &data, con
- return result;
- }
-
-+void Theme::addThemeDir(const QString& path)
-+{
-+ QDir dir(path);
-+ dir.cdUp();
-+ d->absolutePaths << dir.absolutePath();
-+}
-+
- void Theme::addPluginPath(const QString &path)
- {
- if (!ThemePrivate::sEngine) {
-diff --git a/src/grantleetheme.h b/src/grantleetheme.h
-index a25c27b..be38299 100644
---- a/src/grantleetheme.h
-+++ b/src/grantleetheme.h
-@@ -48,11 +48,14 @@ public:
- Q_REQUIRED_RESULT QStringList displayExtraVariables() const;
- Q_REQUIRED_RESULT QString dirName() const;
- Q_REQUIRED_RESULT QString absolutePath() const;
-+ Q_REQUIRED_RESULT QStringList absolutePaths() const;
- Q_REQUIRED_RESULT QString author() const;
- Q_REQUIRED_RESULT QString authorEmail() const;
-
- Q_REQUIRED_RESULT QString render(const QString &templateName, const QVariantHash &data, const QByteArray &applicationDomain = QByteArray());
-
-+ void addThemeDir(const QString&);
-+
- static void addPluginPath(const QString &path);
-
- private:
-diff --git a/src/grantleetheme_p.h b/src/grantleetheme_p.h
-index eb73dcb..00510e9 100644
---- a/src/grantleetheme_p.h
-+++ b/src/grantleetheme_p.h
-@@ -43,7 +43,7 @@ public:
- QString description;
- QString name;
- QString dirName;
-- QString absolutePath;
-+ QStringList absolutePaths;
- QString author;
- QString email;
-
-diff --git a/src/grantleethememanager.cpp b/src/grantleethememanager.cpp
-index 606d717..dc99041 100644
---- a/src/grantleethememanager.cpp
-+++ b/src/grantleethememanager.cpp
-@@ -125,25 +125,18 @@ public:
-
- for (const QString &directory : qAsConst(themesDirectories)) {
- QDirIterator dirIt(directory, QStringList(), QDir::AllDirs | QDir::NoDotAndDotDot);
-- QStringList alreadyLoadedThemeName;
- while (dirIt.hasNext()) {
- dirIt.next();
- const QString dirName = dirIt.fileName();
- GrantleeTheme::Theme theme = q->loadTheme(dirIt.filePath(), dirName, defaultDesktopFileName);
- if (theme.isValid()) {
- QString themeName = theme.name();
-- if (alreadyLoadedThemeName.contains(themeName)) {
-- int i = 2;
-- const QString originalName(theme.name());
-- while (alreadyLoadedThemeName.contains(themeName)) {
-- themeName = originalName + QStringLiteral(" (%1)").arg(i);
-- ++i;
-- }
-- theme.d->name = themeName;
-+ QMap<QString, GrantleeTheme::Theme>::iterator i = themes.find(dirName);
-+ if (i != themes.end()) {
-+ i.value().addThemeDir(dirIt.filePath());
-+ } else {
-+ themes.insert(dirName, theme);
- }
-- alreadyLoadedThemeName << themeName;
-- themes.insert(dirName, theme);
-- //qDebug()<<" theme.name()"<<theme.name();
- }
- }
- watch->addDir(directory);
-@@ -366,7 +359,7 @@ QString ThemeManager::pathFromThemes(const QString &themesRelativePath, const QS
- GrantleeTheme::Theme theme = loadTheme(dirIt.filePath(), dirName, defaultDesktopFileName);
- if (theme.isValid()) {
- if (dirName == themeName) {
-- return theme.absolutePath();
-+ return theme.absolutePaths().first();
- }
- }
- }
@@ string can be easily inferred by a human just by reading the identifier.")
(synopsis "German grundform reduction")
(description "This module is a rather incomplete implementation of work
done by Gudrun Putze-Meier.")
- (license perl-license)))
+ (license license:perl-license)))
(define* (tegaki-release-uri proj version
#:optional (ext "tar.gz"))
@@ -905,7 +899,7 @@ extensions in EXTS."
modern implementation of handwriting recognition software, specifically
designed for Chinese (simplified and traditional) and Japanese, and that is
suitable for both the desktop and mobile devices.")
- (license gpl2+))) ; all files
+ (license license:gpl2+))) ; all files
(define-public python2-tegaki-python
(package
@@ -950,9 +944,9 @@ suitable for both the desktop and mobile devices.")
("python2-zinnia" ,python2-zinnia)))
(synopsis
"Chinese and Japanese Handwriting Recognition (Base python library)")
- (license (list gpl2+ ; all files except...
- bsd-3 ; dictutils.py
- zpl2.1)))) ; minjson.py
+ (license (list license:gpl2+ ; all files except...
+ license:bsd-3 ; dictutils.py
+ license:zpl2.1)))) ; minjson.py
(define-public python2-tegaki-pygtk
(package
@@ -988,7 +982,7 @@ suitable for both the desktop and mobile devices.")
`(("python2-pygtk" ,python2-pygtk)
("python2-tegaki-python" ,python2-tegaki-python)))
(synopsis "Chinese and Japanese Handwriting Recognition (Base UI library)")
- (license gpl2+))) ; all files
+ (license license:gpl2+)))
(define-public python2-tegaki-tools
(package
@@ -1015,7 +1009,7 @@ suitable for both the desktop and mobile devices.")
(synopsis "Chinese and Japanese Handwriting Recognition (Advanced tools)")
;; Files in gifenc/ are licensed under gpl3+ while other files are licensed
;; under gpl2+. Therefore, the combined work is licensed under gpl3+.
- (license gpl3+)))
+ (license license:gpl3+)))
(define-public python2-tegaki-recognize
(let ((commit "eceec69fe651d0733c8c8752dae569d2283d0f3c")
@@ -1067,7 +1061,7 @@ suitable for both the desktop and mobile devices.")
"--root=/")
#t))))))
(synopsis "Chinese and Japanese Handwriting Recognition (Main program)")
- (license gpl2+)))) ; all files
+ (license license:gpl2+))))
(define-public tegaki-zinnia-japanese
(package
@@ -1104,7 +1098,7 @@ suitable for both the desktop and mobile devices.")
(variable "TEGAKI_MODEL_PATH")
(files '("share/tegaki/models")))))
(synopsis "Chinese and Japanese Handwriting Recognition (Model)")
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-zinnia-japanese-light
(package
@@ -1120,7 +1114,7 @@ suitable for both the desktop and mobile devices.")
"0x0fs29ylqzxd6xvg51h7rigpbisd7q8v11df425ib2j792yfyf8"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-zinnia-japanese-kyoiku
(package
@@ -1136,7 +1130,7 @@ suitable for both the desktop and mobile devices.")
"0am94bcpmbzplxdnwn9gk15sgaizvcfhmv13mk14jjvx3419cvvx"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-zinnia-japanese-joyo
(package
@@ -1152,7 +1146,7 @@ suitable for both the desktop and mobile devices.")
"1v0j40lzdyiz01ayws0b8r7fsdy2mr32658382kz4wyk883wzx2z"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-zinnia-simplified-chinese
(package
@@ -1168,7 +1162,7 @@ suitable for both the desktop and mobile devices.")
"18wq0jccv7lpnrfnzspyc110d6pj2v1i21xcx4fmgzz1lnln3fs5"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-zinnia-simplified-chinese-light
(package
@@ -1184,7 +1178,7 @@ suitable for both the desktop and mobile devices.")
"0v24yf0w0p03lb7fyx128a75mwzad166bigvlbrzqnad789qg1sr"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-zinnia-traditional-chinese
(package
@@ -1200,7 +1194,7 @@ suitable for both the desktop and mobile devices.")
"140nlp6hynrai2svs5670jjfw1za6ayflhyj2dl0bzsfgbk3447l"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-zinnia-traditional-chinese-light
(package
@@ -1216,7 +1210,7 @@ suitable for both the desktop and mobile devices.")
"1m6yk6a57vs9wg5y50qciwi1ahhmklp2mgsjysbj4mnyzv6yhcr2"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-wagomu-japanese
(package
@@ -1232,7 +1226,7 @@ suitable for both the desktop and mobile devices.")
"0flj5id8xwsn7csrrzqz9prdikswnwm2wms0as2vzdpxzph1az4k"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-wagomu-japanese-kyoiku
(package
@@ -1248,7 +1242,7 @@ suitable for both the desktop and mobile devices.")
"0v8crfh8rdf6ndp16g52s5jlrrlwh73xp38zjn5i9dlacx8kfqg1"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-wagomu-japanese-joyo
(package
@@ -1264,7 +1258,7 @@ suitable for both the desktop and mobile devices.")
"0wk8shpr963zp328g991qs6abpnacq4242003m687z2d6yp7nph2"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public tegaki-wagomu-simplified-chinese
(package
@@ -1280,7 +1274,7 @@ suitable for both the desktop and mobile devices.")
"0wqprynigqxqxv128i1smh81gxvmjj056d9qpznxa3n9f5ymlbj6"))
(modules remove-pre-compiled-files-modules)
(snippet (remove-pre-compiled-files "model"))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
;;; Upstream does not provide the source for tegaki-wagomu-traditional-chinese.
;;; Therefore, we use the source for tegaki-zinnia-traditional-chinese and
@@ -1301,7 +1295,7 @@ suitable for both the desktop and mobile devices.")
(substitute* "Makefile"
(("zinnia") "wagomu"))
#t))))))
- (license lgpl2.1))) ; all files
+ (license license:lgpl2.1)))
(define-public link-grammar
(package
@@ -1325,7 +1319,7 @@ system assigns to it a syntactic structure, which consists of a set of
labelled links connecting pairs of words. The parser also produces a
\"constituent\" (HPSG style phrase tree) representation of a sentence (showing
noun phrases, verb phrases, etc.).")
- (license bsd-3)))
+ (license license:bsd-3)))
(define-public praat
(package
@@ -1368,4 +1362,4 @@ noun phrases, verb phrases, etc.).")
(description "Praat is a tool to perform phonetics tasks. It can do speech
analysis (pitch, formant, intensity, ...), speech synthesis, labelling, segmenting
and manipulation.")
- (license gpl2+)))
+ (license license:gpl2+)))