diff mbox

[WIP,v0.1,6/8] gnu: Add kde karchive

Message ID 1465938910-15739-7-git-send-email-h.goebel@crazy-compilers.com
State New
Headers show

Commit Message

Hartmut Goebel June 14, 2016, 9:15 p.m. UTC
* gnu/packages/kde-frameworks.scm (karchive): New variable.
---
 gnu/packages/kde-frameworks.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Comments

Efraim Flashner June 15, 2016, 12:19 p.m. UTC | #1
On Tue, Jun 14, 2016 at 11:15:08PM +0200, Hartmut Goebel wrote:
> * gnu/packages/kde-frameworks.scm (karchive): New variable.
> ---
>  gnu/packages/kde-frameworks.scm | 35 +++++++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
> 
> diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
> index b1e7038..ab90112 100644
> --- a/gnu/packages/kde-frameworks.scm
> +++ b/gnu/packages/kde-frameworks.scm
> @@ -24,6 +24,7 @@
>    #:use-module ((guix licenses) #:prefix license:)
>    #:use-module (guix packages)
>    #:use-module (guix utils)
> +  #:use-module (gnu packages compression)
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages python)
>    #:use-module (gnu packages qt)
> @@ -199,6 +200,40 @@ documentation.")
>      ;; This list is taken from http://packaging.neon.kde.org/cgit/
>      (license (list license:bsd-2 license:expat))))
>  
> +(define-public karchive
> +  (package
> +    (name "karchive")
> +    (version kde-frameworks-version)
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (string-append "http://download.kde.org/stable/frameworks/"
> +                            (version-major+minor version) "/"
> +                            name "-" version ".tar.xz"))
> +        (sha256
> +         (base32
> +          "042ww21wmm3sf87zqgr2qiyg2j5mjf1mmqpqhpcax4gnjpck5nvc"))))
> +    (build-system cmake-build-system)
> +    (native-inputs
> +     `(("extra-cmake-modules" ,extra-cmake-modules)))
> +    (inputs
> +     `(("zlib" ,zlib)
> +       ("bzip2" ,bzip2)
> +       ("xz" ,xz)
> +       ("qt" ,qt)))
> +    (home-page "https://community.kde.org/Frameworks")
> +    (synopsis "Qt 5 addon providing access to numerous types of archives")
> +    (description "KArchive provides classes for easy reading, creation and
> +manipulation of 'archive' formats like ZIP and TAR.
> +
> +It also provides transparent compression and decompression of data, like the
> +GZip format, via a subclass of QIODevice.")
> +    ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
> +    ;; under a variety of licenses.
> +    ;; This list is taken from http://packaging.neon.kde.org/cgit/
> +    (license (list license:lgpl2.1 license:lgpl2.1+
> +                   license:lgpl3+ license:bsd-2))))
> +
>  (define-public kwindowsystem
>    (package
>      (name "kwindowsystem")
> -- 
> 2.7.4
> 
> 

Can you check the references `guix gc --references $(guix build karchive)'
to see if the inputs are supposed to be native-inputs?
Hartmut Goebel June 17, 2016, 9:21 a.m. UTC | #2
Am 15.06.2016 um 14:19 schrieb Efraim Flashner:
> Can you check the references `guix gc --references $(guix build karchive)'
> to see if the inputs are supposed to be native-inputs?

Since I specify them as "inputs", how should `guix gc --references`
report different?
diff mbox

Patch

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index b1e7038..ab90112 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -24,6 +24,7 @@ 
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
+  #:use-module (gnu packages compression)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
@@ -199,6 +200,40 @@  documentation.")
     ;; This list is taken from http://packaging.neon.kde.org/cgit/
     (license (list license:bsd-2 license:expat))))
 
+(define-public karchive
+  (package
+    (name "karchive")
+    (version kde-frameworks-version)
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "http://download.kde.org/stable/frameworks/"
+                            (version-major+minor version) "/"
+                            name "-" version ".tar.xz"))
+        (sha256
+         (base32
+          "042ww21wmm3sf87zqgr2qiyg2j5mjf1mmqpqhpcax4gnjpck5nvc"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)))
+    (inputs
+     `(("zlib" ,zlib)
+       ("bzip2" ,bzip2)
+       ("xz" ,xz)
+       ("qt" ,qt)))
+    (home-page "https://community.kde.org/Frameworks")
+    (synopsis "Qt 5 addon providing access to numerous types of archives")
+    (description "KArchive provides classes for easy reading, creation and
+manipulation of 'archive' formats like ZIP and TAR.
+
+It also provides transparent compression and decompression of data, like the
+GZip format, via a subclass of QIODevice.")
+    ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
+    ;; under a variety of licenses.
+    ;; This list is taken from http://packaging.neon.kde.org/cgit/
+    (license (list license:lgpl2.1 license:lgpl2.1+
+                   license:lgpl3+ license:bsd-2))))
+
 (define-public kwindowsystem
   (package
     (name "kwindowsystem")