Patchwork [3/7] gnu: Add khtml.

login
register
mail settings
Submitter Hartmut Goebel
Date Nov. 21, 2016, 4:11 p.m.
Message ID <1479744699-27226-4-git-send-email-h.goebel@crazy-compilers.com>
Download mbox | patch
Permalink /patch/17666/
State New
Headers show

Comments

Hartmut Goebel - Nov. 21, 2016, 4:11 p.m.
* gnu/packages/kde-frameworks.scm (khtml): New variable.
---
 gnu/packages/kde-frameworks.scm | 57 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
Marius Bakke - Nov. 21, 2016, 5:42 p.m.
Hartmut Goebel <h.goebel@crazy-compilers.com> writes:

> * gnu/packages/kde-frameworks.scm (khtml): New variable.
> ---
>  gnu/packages/kde-frameworks.scm | 57 +++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 57 insertions(+)

LGTM!

>
> diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
> index a537aa4..07c6716 100644
> --- a/gnu/packages/kde-frameworks.scm
> +++ b/gnu/packages/kde-frameworks.scm
> @@ -41,6 +41,7 @@
>    #:use-module (gnu packages glib)
>    #:use-module (gnu packages gnome)
>    #:use-module (gnu packages gnupg)
> +  #:use-module (gnu packages image)
>    #:use-module (gnu packages linux)
>    #:use-module (gnu packages perl)
>    #:use-module (gnu packages pkg-config)
> @@ -2937,3 +2938,59 @@ http://community.kde.org/Frameworks/Porting_Notes should help with this.")
>      (license (list license:gpl2 license:gpl2+ license:lgpl2.0 license:lgpl2.0+
>                     license:lgpl2.1+ license:expat license:bsd-2 license:bsd-3
>                     license:public-domain))))
> +
> +(define-public khtml
> +  (package
> +    (name "khtml")
> +    (version "5.27.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "mirror://kde/stable/frameworks/"
> +             (version-major+minor version) "/portingAids/"
> +             name "-" version ".tar.xz"))
> +       (sha256
> +        (base32 "05ssmgk2gr5v1x1lsvyyspvnlknmkxivgx1g210i9ayl08v8v3c0"))))
> +    (build-system cmake-build-system)
> +    (native-inputs
> +     `(("extra-cmake-modules" ,extra-cmake-modules)
> +       ("perl", perl)))
> +    (inputs
> +     `(("giflib" ,giflib)
> +       ("karchive" ,karchive)
> +       ("kcodecs" ,kcodecs)
> +       ("kglobalaccel" ,kglobalaccel)
> +       ("ki18n" ,ki18n)
> +       ("kiconthemes" ,kiconthemes)
> +       ("kio" ,kio)
> +       ("kja" ,kjs)
> +       ("knotifications" ,knotifications)
> +       ("kparts" ,kparts)
> +       ("ktextwidgets" ,ktextwidgets)
> +       ("kwallet", kwallet)
> +       ("kwidgetsaddons" ,kwidgetsaddons)
> +       ("kwindowsystem" ,kwindowsystem)
> +       ("kxmlgui" ,kxmlgui)
> +       ("libjpeg", libjpeg)
> +       ("libpng", libpng)
> +       ("openssl", openssl)
> +       ("phonon", phonon)
> +       ("qtbase" ,qtbase)
> +       ("qtx11extras" ,qtx11extras)
> +       ("sonnet" ,sonnet)))
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-before 'check 'check-setup
> +           (lambda _
> +             (setenv "CTEST_OUTPUT_ON_FAILURE" "1") ; Enable debug output
> +             (setenv "QT_QPA_PLATFORM" "offscreen")
> +             #t)))))
> +    (home-page "https://community.kde.org/Frameworks")
> +    (synopsis "KDE Frameworks 5 HTML widget and component")
> +    (description "KHTML is a web rendering engine, based on the KParts
> +technology and using KJS for JavaScript support.")
> +    ;; a variety of licenses
> +    (license (list license:gpl2 license:lgpl2.0 license:lgpl2.1+ license:gpl3+
> +                   license:expat license:bsd-2 license:bsd-3))))
> -- 
> 2.7.4

Patch

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index a537aa4..07c6716 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -41,6 +41,7 @@ 
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages image)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -2937,3 +2938,59 @@  http://community.kde.org/Frameworks/Porting_Notes should help with this.")
     (license (list license:gpl2 license:gpl2+ license:lgpl2.0 license:lgpl2.0+
                    license:lgpl2.1+ license:expat license:bsd-2 license:bsd-3
                    license:public-domain))))
+
+(define-public khtml
+  (package
+    (name "khtml")
+    (version "5.27.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://kde/stable/frameworks/"
+             (version-major+minor version) "/portingAids/"
+             name "-" version ".tar.xz"))
+       (sha256
+        (base32 "05ssmgk2gr5v1x1lsvyyspvnlknmkxivgx1g210i9ayl08v8v3c0"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)
+       ("perl", perl)))
+    (inputs
+     `(("giflib" ,giflib)
+       ("karchive" ,karchive)
+       ("kcodecs" ,kcodecs)
+       ("kglobalaccel" ,kglobalaccel)
+       ("ki18n" ,ki18n)
+       ("kiconthemes" ,kiconthemes)
+       ("kio" ,kio)
+       ("kja" ,kjs)
+       ("knotifications" ,knotifications)
+       ("kparts" ,kparts)
+       ("ktextwidgets" ,ktextwidgets)
+       ("kwallet", kwallet)
+       ("kwidgetsaddons" ,kwidgetsaddons)
+       ("kwindowsystem" ,kwindowsystem)
+       ("kxmlgui" ,kxmlgui)
+       ("libjpeg", libjpeg)
+       ("libpng", libpng)
+       ("openssl", openssl)
+       ("phonon", phonon)
+       ("qtbase" ,qtbase)
+       ("qtx11extras" ,qtx11extras)
+       ("sonnet" ,sonnet)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'check-setup
+           (lambda _
+             (setenv "CTEST_OUTPUT_ON_FAILURE" "1") ; Enable debug output
+             (setenv "QT_QPA_PLATFORM" "offscreen")
+             #t)))))
+    (home-page "https://community.kde.org/Frameworks")
+    (synopsis "KDE Frameworks 5 HTML widget and component")
+    (description "KHTML is a web rendering engine, based on the KParts
+technology and using KJS for JavaScript support.")
+    ;; a variety of licenses
+    (license (list license:gpl2 license:lgpl2.0 license:lgpl2.1+ license:gpl3+
+                   license:expat license:bsd-2 license:bsd-3))))