guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

14/15: gnu: Add openjade.


From: guix-commits
Subject: 14/15: gnu: Add openjade.
Date: Sat, 25 Jul 2020 10:28:39 -0400 (EDT)

dannym pushed a commit to branch wip-desktop
in repository guix.

commit 34b32c840552ad80697d1aa67b733ee7e27d46f8
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Tue Jul 21 08:12:34 2020 -0400

    gnu: Add openjade.
    
    * gnu/packages/xml.scm (openjade): New variable.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 gnu/packages/xml.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index b57d421..0c2d630 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -45,6 +45,7 @@
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages curl)
+  #:use-module (gnu packages finance)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
@@ -69,6 +70,50 @@
   #:use-module (gnu packages linux)
   #:use-module (gnu packages pkg-config))
 
+(define-public openjade
+  (package
+    (name "openjade")
+    (version "1.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://downloads.sourceforge.net/";
+                       name "/" name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1l92sfvx1f0wmkbvzv1385y1gb3hh010xksi1iyviyclrjb7jb8x"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:test-target "testsuite"
+       #:configure-flags
+       (list
+        (string-append "--enable-spincludedir="
+                       (assoc-ref %build-inputs "opensp")
+                       "/include/OpenSP")
+        (string-append "--enable-splibdir="
+                       (assoc-ref %build-inputs "opensp")
+                       "/lib")
+        "--disable-static")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-build-errors
+           (lambda _
+             (substitute* "msggen.pl"
+               (("do 'getopts.pl';")
+                "use Getopt::Std;")
+               (("&Getopts")
+                "getopts"))
+             #t)))))
+    (native-inputs
+     `(("perl" ,perl)))
+    (inputs
+     `(("opensp" ,opensp)))
+    (synopsis "Document Style Semantics and Specification implementation")
+    (description "OpenJade is an implementation of DSSSL engine.  It is an ISO
+standard for formatting SGML and XML documents.")
+    (home-page "http://openjade.sourceforge.net/";)
+    (license license:lgpl2.1)))
+
 (define-public libxmlb
   (package
     (name "libxmlb")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]