diff mbox

[1/2] gnu: Add tinyxml2.

Message ID 1473556426-19703-1-git-send-email-me@tobias.gr
State New
Headers show

Commit Message

Tobias Geerinckx-Rice Sept. 11, 2016, 1:13 a.m. UTC
* gnu/packages/xml.scm (tinyxml2): New variable.
---
 gnu/packages/xml.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Comments

Ludovic Courtès Sept. 12, 2016, 1:40 p.m. UTC | #1
Tobias Geerinckx-Rice <me@tobias.gr> skribis:

> * gnu/packages/xml.scm (tinyxml2): New variable.

[...]

> +    (synopsis "Small XML parser for C++")
> +    (description "TinyXML2 is a small and simple XML parsing library for the
> +C++ programming language.")

Does it honor an environment variable like XML_CATALOG_FILES that could
be put in ‘search-paths’?

Otherwise LGTM, thanks!

Ludo’.
Tobias Geerinckx-Rice Sept. 13, 2016, 3:31 p.m. UTC | #2
Ludo',

On 12/09/16 15:40, Ludovic Courtès wrote:
> Does it honor an environment variable like XML_CATALOG_FILES that could
> be put in ‘search-paths’?

None that I can find, after a quick grep of the source ball for things
like ‘env’ and ‘PATH’.

Kind regards,

T G-R
diff mbox

Patch

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index e9074db..7befad5 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -12,6 +12,7 @@ 
 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -883,6 +884,27 @@  C++ programming language.")
     (home-page "http://www.grinninglizard.com/tinyxml/index.html")
     (license license:zlib)))
 
+(define-public tinyxml2
+  (package
+    (name "tinyxml2")
+    (version "4.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/leethomason/tinyxml2/archive/"
+                           version ".tar.gz"))
+       (sha256
+       (base32
+        "083z4r4khcndxi9k840lcr48sqxvar4gpsnf749xfdn1bkr8xcql"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f))    ; no tests
+    (synopsis "Small XML parser for C++")
+    (description "TinyXML2 is a small and simple XML parsing library for the
+C++ programming language.")
+    (home-page "http://www.grinninglizard.com/tinyxml2/")
+    (license license:zlib)))
+
 (define-public xmlstarlet
  (package
    (name "xmlstarlet")