[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/16: gnu: Add openjade.
From: |
guix-commits |
Subject: |
03/16: gnu: Add openjade. |
Date: |
Thu, 14 Jan 2021 09:58:47 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit 1729fb52abac16433c5ee07f202a71d3b64ed94e
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jul 2 11:51:36 2018 -0400
gnu: Add openjade.
* gnu/packages/xml.scm (openjade): New variable.
---
gnu/packages/xml.scm | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 6208f78..930cd79 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -361,6 +361,86 @@ It uses libxml2 to access the XML files.")
based on libxml for XML parsing, tree manipulation and XPath support.")
(license license:x11)))
+(define-public openjade
+ (package
+ (name "openjade")
+ (version "1.3.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/openjade/openjade/"
+ version "/" name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1l92sfvx1f0wmkbvzv1385y1gb3hh010xksi1iyviyclrjb7jb8x"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:configure-flags
+ (list (string-append "--enable-spincludedir="
+ (assoc-ref %build-inputs "opensp")
+ "/include/OpenSP")
+ (string-append "--enable-splibdir="
+ (assoc-ref %build-inputs "opensp") "/lib")
+ ;; Workaround segfaults in OpenJade (see:
+ ;;
https://bugs.launchpad.net/ubuntu/+source/openjade/+bug/1869734).
+ "CXXFLAGS=-O0")
+ #:parallel-build? #f ;build fails otherwise
+ ;; The test suite fails with diff errors between the actual and
+ ;; expected results, like: (char<? #\a #\A) returning #t rather than
+ ;; #f (see: https://sourceforge.net/p/openjade/bugs/150/).
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'replace-deprecated-getopt
+ ;; See: https://sourceforge.net/p/openjade/bugs/140/.
+ (lambda _
+ (substitute* "msggen.pl"
+ (("use POSIX;") "use POSIX;\nuse Getopt::Std;")
+ (("do 'getopts.pl';") "")
+ (("&Getopts") "getopts"))
+ #t))
+ (add-after 'replace-deprecated-getopt 'fix-locale-lookup
+ ;; See: https://sourceforge.net/p/openjade/bugs/149/.
+ (lambda _
+ (substitute* "testsuite/expr-lang.dsl"
+ (("\\(language \"EN\" \"US\"\\)")
+ "(language \"EN\" \"US.UTF-8\")"))
+ #t))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; TODO: Generate the manpage from source, with
+ ;; openjade-bootstrap and jadetex. See the file docsrc/Makefile.
+ (let* ((out (assoc-ref outputs "out"))
+ (man1 (string-append out "/share/man/man1")))
+ (install-file "docsrc/openjade.1" man1)
+ #t)))
+ (add-after 'install-doc 'install-dtds
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (dtd (string-append out "/sgml/dtd")))
+ (mkdir-p dtd)
+ (copy-recursively "dsssl" dtd)
+ #t)))
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? out #:allow-other-keys)
+ (if tests?
+ (with-directory-excursion "testsuite"
+ (invoke "make"))
+ (format #t "test suite not run~%"))
+ #t)))))
+ (inputs
+ `(("opensp" ,opensp)))
+ (native-inputs
+ `(("perl" ,perl)))
+ (home-page "http://openjade.sourceforge.net/")
+ (synopsis "ISO/IEC 10179:1996 standard DSSSL language implementation")
+ (description "OpenJade is an implementation of Document Style Semantics
+and Specification Language (DSSSL), a style language to format SGML or XML
+documents. It contains backends for various formats such as RTF, HTML, TeX,
+MIF, SGML2SGML, and FOT.")
+ (license (license:non-copyleft "file://COPYING"
+ "See COPYING in the distribution."))))
+
(define-public perl-graph-readwrite
(package
(name "perl-graph-readwrite")
- branch master updated (88eb537 -> e45dcf4), guix-commits, 2021/01/14
- 01/16: gnu: opensp: Move package to (gnu packages xml)., guix-commits, 2021/01/14
- 04/16: gnu: Add iso-8879-entities., guix-commits, 2021/01/14
- 08/16: gnu: Add docbook-sgml-3.1., guix-commits, 2021/01/14
- 02/16: gnu: opensp: Add doc output, enable tests and add search path., guix-commits, 2021/01/14
- 03/16: gnu: Add openjade.,
guix-commits <=
- 05/16: gnu: Add docbook-sgml., guix-commits, 2021/01/14
- 06/16: gnu: Add docbook-dsssl., guix-commits, 2021/01/14
- 07/16: gnu: Add perl-sgmls., guix-commits, 2021/01/14
- 09/16: gnu: Add texlive-marvosym., guix-commits, 2021/01/14
- 12/16: gnu: Add texlive-jknappen., guix-commits, 2021/01/14
- 10/16: gnu: Add config., guix-commits, 2021/01/14
- 11/16: gnu: Add texlive-tipa., guix-commits, 2021/01/14
- 13/16: gnu: Add texlive-courier., guix-commits, 2021/01/14
- 14/16: gnu: Add texlive-helvetic., guix-commits, 2021/01/14
- 15/16: gnu: Add texlive-wasy., guix-commits, 2021/01/14