[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/14: gnu: Add kdiagram.
From: |
guix-commits |
Subject: |
10/14: gnu: Add kdiagram. |
Date: |
Thu, 19 Mar 2020 06:40:47 -0400 (EDT) |
htgoebel pushed a commit to branch master
in repository guix.
commit 9d95d8bd120072cb3b983da86baa645c5b2ecd89
Author: Hartmut Goebel <address@hidden>
AuthorDate: Mon Jan 20 01:45:38 2020 +0100
gnu: Add kdiagram.
* gnu/packages/kde.scm (kdiagram): New variable.
* packages/patches/kdiagram-Fix-missing-link-libraries.patch: New file.
* gnu/local.mk: Add it.
---
gnu/local.mk | 1 +
gnu/packages/kde.scm | 31 ++++++++++++++++++++++
.../kdiagram-Fix-missing-link-libraries.patch | 23 ++++++++++++++++
3 files changed, 55 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index f3bc77d..ddd89ba 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1053,6 +1053,7 @@ dist_patch_DATA =
\
%D%/packages/patches/libziparchive-add-includes.patch \
%D%/packages/patches/localed-xorg-keyboard.patch \
%D%/packages/patches/kdepim-runtime-Fix-missing-link-libraries.patch \
+ %D%/packages/patches/kdiagram-Fix-missing-link-libraries.patch \
%D%/packages/patches/kiki-level-selection-crash.patch \
%D%/packages/patches/kiki-makefile.patch \
%D%/packages/patches/kiki-missing-includes.patch \
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 8a612bf..c4576c8 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -325,6 +325,37 @@ for some KDevelop language plugins (Ruby, PHP, CSS...).")
;; kdevplatform was merged into kdevelop as of 5.2.x
(define-deprecated kdevplatform kdevelop)
+(define-public kdiagram
+ (package
+ (name "kdiagram")
+ (version "2.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://kde/stable/kdiagram/" version
+ "/kdiagram-" version ".tar.xz"))
+ (sha256
+ (base32 "1c6dbp9gssjrx59z8yxzq1ay56pnw7h28symjrv0gcvhxyjirrxx"))
+ (patches (search-patches
+ "kdiagram-Fix-missing-link-libraries.patch"))))
+ (build-system qt-build-system)
+ (native-inputs
+ `(("extra-cmake-modules" ,extra-cmake-modules)
+ ("qttools" ,qttools)))
+ (inputs
+ `(("qtbase" ,qtbase)
+ ("qtsvg" ,qtsvg)))
+ (home-page "https://cgit.kde.org/kdiagram.git/")
+ (synopsis "Libraries for creating business diagrams")
+ (description "This package provides libraries for integrating business
+diagrams in Qt-based applications.
+
+@code{KCharts} provides an implementation of the ODF Chart specification. It
+supports stock charts, box charts, and whisker charts. @code{KGantt} provides
+a module for implementing ODF Gantt charts, which are bar charts that
+illustrate project schedules.")
+ (license license:gpl2+)))
+
(define-public krita
(package
(name "krita")
diff --git a/gnu/packages/patches/kdiagram-Fix-missing-link-libraries.patch
b/gnu/packages/patches/kdiagram-Fix-missing-link-libraries.patch
new file mode 100644
index 0000000..cdfb608
--- /dev/null
+++ b/gnu/packages/patches/kdiagram-Fix-missing-link-libraries.patch
@@ -0,0 +1,23 @@
+From c59acf1f54a2cd760e55082a01593a31a690d786 Mon Sep 17 00:00:00 2001
+From: Hartmut Goebel <address@hidden>
+Date: Wed, 22 Jan 2020 00:56:27 +0100
+Subject: [PATCH] Fix missing link libraries.
+
+These are only actually missing if the libraries reside in different
+prefixes, as it is the case in Guix or Nix.
+---
+ examples/Bars/Simple/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/examples/Bars/Simple/CMakeLists.txt
b/examples/Bars/Simple/CMakeLists.txt
+index be2a6fc..b13befb 100644
+--- a/examples/Bars/Simple/CMakeLists.txt
++++ b/examples/Bars/Simple/CMakeLists.txt
+@@ -1,3 +1,3 @@
+ add_executable(BarsSimple main.cpp)
+
+-target_link_libraries(BarsSimple KChart Qt5::Widgets)
++target_link_libraries(BarsSimple KChart Qt5::Widgets Qt5::Svg)
+--
+2.21.1
+
- branch master updated (ea2a180 -> d3d8be5), guix-commits, 2020/03/19
- 02/14: gnu: Add kmessagelib., guix-commits, 2020/03/19
- 03/14: gnu: Add kmailcommon., guix-commits, 2020/03/19
- 05/14: gnu: Add kdav., guix-commits, 2020/03/19
- 07/14: gnu: Add kaddressbook., guix-commits, 2020/03/19
- 04/14: gnu: Add kblog., guix-commits, 2020/03/19
- 08/14: gnu: Add knotes., guix-commits, 2020/03/19
- 11/14: gnu: Add kcalendarsupport., guix-commits, 2020/03/19
- 10/14: gnu: Add kdiagram.,
guix-commits <=
- 09/14: gnu: Add kmail., guix-commits, 2020/03/19
- 01/14: gnu: Add libksieve., guix-commits, 2020/03/19
- 12/14: gnu: Add keventviews., guix-commits, 2020/03/19
- 13/14: gnu: Add kincidenceeditor., guix-commits, 2020/03/19
- 06/14: gnu: Add kdepim-runtime., guix-commits, 2020/03/19
- 14/14: gnu: Add korganizer., guix-commits, 2020/03/19