about summary refs log tree commit diff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
authorpjotrp2026-03-22 12:07:54 +0100
committerpjotrp2026-03-22 12:07:54 +0100
commit21a6be8995bed3e5460665380a31c9ae2f3d2730 (patch)
treee7fc1de097e516b62d45f8c801c3c4b13a217b84 /gn/packages/javascript.scm
parentcc0e9d2657010350066af7a995307d3e725179e9 (diff)
downloadguix-bioinformatics-21a6be8995bed3e5460665380a31c9ae2f3d2730.tar.gz
Continue cleanup
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index d289bd2..2bb511e 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -2484,3 +2484,50 @@ for developing fast and powerful web interfaces.")
                      (copy-file source
                                 (string-append targetdir "/default.min.css"))))))
     (native-inputs `(("source" ,source)))))
+
+(define-public javascript-ckeditor	; version 4
+  (package
+    (name "javascript-ckeditor")
+    (version "4.13.0")			; Sept. 26, 2019
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://download.cksource.com/CKEditor/CKEditor/CKEditor%20" version
+			   "/ckeditor_4.13.0_standard.zip"))
+       (sha256
+	(base32
+	 "1n2xynmbr2v4wm2g2vqcqd16n93phsbq4sqrnljzb7wzjq9svl36"))))
+    (build-system trivial-build-system)
+    (arguments
+     `(#:modules ((guix build utils))
+       #:builder
+       (begin
+	 (use-modules (guix build utils))
+	 (let* ((out (assoc-ref %outputs "out"))
+		(name "ckeditor")
+		(unzip (string-append (assoc-ref %build-inputs "unzip")
+				      "/bin/unzip"))
+		(targetdir
+		 (string-append (string-append out "/share/genenetwork2/javascript/" name)))
+		(source (assoc-ref %build-inputs "source")))
+	   (mkdir-p targetdir)
+	   (invoke unzip source)
+	   (copy-recursively "ckeditor" targetdir)))))
+    (native-inputs
+     `(("source" ,source)
+       ("unzip" ,unzip)))
+    (home-page "https://ckeditor.com/")
+    (synopsis "Smart WYSIWYG HTML editor")
+    (description
+     "CKEditor is a proven, enterprise-grade WYSIWYG HTML editor with wide
+browser compatibility, including legacy browsers.
+@enumerate
+@item Paste from Word and Excel, spell check, accessibility checker, tables.
+@item Autocomplete, mentions, widgets, code snippets, emoji plugins.
+@item Full control over content: HTML filtering, view source mode.
+@item Great accessibility: WCAG 2.0 AA and Section 508 compliant.
+@item Long-term support (LTS) until 2023.
+@end enumerate")
+    (license (list license:gpl2+
+		   license:lgpl2.1+
+		   license:mpl1.1))))