unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26676: [PATCH] gnu: Add xerces-c.
@ 2017-04-27  6:52 Ricardo Wurmus
  2017-04-27 13:29 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2017-04-27  6:52 UTC (permalink / raw)
  To: 26676; +Cc: Ricardo Wurmus

* gnu/packages/xml.scm (xerces-c): New variable.
---
 gnu/packages/xml.scm | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 247107917..38dd07259 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -3,7 +3,7 @@
 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
-;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2015 Raimon Grau <raimonster@gmail.com>
@@ -1145,3 +1145,28 @@ spreadsheet.")
     (license (list license:gpl2+
                    license:lgpl2.1+
                    license:mpl1.1))))
+
+(define-public xerces-c
+  (package
+    (name "xerces-c")
+    (version "3.1.4")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://apache/xerces/c/3/sources/"
+                                  "xerces-c-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0hb29c0smqlpxj0zdm09s983z5jx37szlliccnvgh0qq91wwqwwr"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags (list "--disable-sse2")))
+    (native-inputs
+     `(("perl" ,perl)))
+    (home-page "http://xerces.apache.org/xerces-c/")
+    (synopsis "Validating XML parser library for C++")
+    (description "Xerces-C++ is a validating XML parser written in a portable
+subset of C++.  Xerces-C++ makes it easy to give your application the ability
+to read and write XML data.  A shared library is provided for parsing,
+generating, manipulating, and validating XML documents using the DOM, SAX, and
+SAX2 APIs.")
+    (license license:asl2.0)))
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#26676: [PATCH] gnu: Add xerces-c.
  2017-04-27  6:52 bug#26676: [PATCH] gnu: Add xerces-c Ricardo Wurmus
@ 2017-04-27 13:29 ` Marius Bakke
  2017-04-28 15:48   ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2017-04-27 13:29 UTC (permalink / raw)
  To: Ricardo Wurmus, 26676

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

Ricardo Wurmus <rekado@elephly.net> writes:

> * gnu/packages/xml.scm (xerces-c): New variable.

[...]

> +(define-public xerces-c
> +  (package
> +    (name "xerces-c")
> +    (version "3.1.4")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "mirror://apache/xerces/c/3/sources/"
> +                                  "xerces-c-" version ".tar.xz"))
> +              (sha256
> +               (base32
> +                "0hb29c0smqlpxj0zdm09s983z5jx37szlliccnvgh0qq91wwqwwr"))))
> +    (build-system gnu-build-system)
> +    (arguments
> +     `(#:configure-flags (list "--disable-sse2")))

SSE2 is part of the AMD64 specification[0], so enabling it for x86_64
would be slightly nicer. Other than that looks good!

[0] https://en.wikipedia.org/wiki/SSE2#CPU_support

> +    (native-inputs
> +     `(("perl" ,perl)))
> +    (home-page "http://xerces.apache.org/xerces-c/")
> +    (synopsis "Validating XML parser library for C++")
> +    (description "Xerces-C++ is a validating XML parser written in a portable
> +subset of C++.  Xerces-C++ makes it easy to give your application the ability
> +to read and write XML data.  A shared library is provided for parsing,
> +generating, manipulating, and validating XML documents using the DOM, SAX, and
> +SAX2 APIs.")
> +    (license license:asl2.0)))
> -- 
> 2.12.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#26676: [PATCH] gnu: Add xerces-c.
  2017-04-27 13:29 ` Marius Bakke
@ 2017-04-28 15:48   ` Ricardo Wurmus
  0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2017-04-28 15:48 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 26676-done


Marius Bakke <mbakke@fastmail.com> writes:

> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> * gnu/packages/xml.scm (xerces-c): New variable.
>
> [...]
>
>> +(define-public xerces-c
>> +  (package
>> +    (name "xerces-c")
>> +    (version "3.1.4")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (string-append "mirror://apache/xerces/c/3/sources/"
>> +                                  "xerces-c-" version ".tar.xz"))
>> +              (sha256
>> +               (base32
>> +                "0hb29c0smqlpxj0zdm09s983z5jx37szlliccnvgh0qq91wwqwwr"))))
>> +    (build-system gnu-build-system)
>> +    (arguments
>> +     `(#:configure-flags (list "--disable-sse2")))
>
> SSE2 is part of the AMD64 specification[0], so enabling it for x86_64
> would be slightly nicer. Other than that looks good!
>
> [0] https://en.wikipedia.org/wiki/SSE2#CPU_support

Ah, you’re right.  I pushed it with a fix with commit 162a4a032^.
Thanks for the review!

--
Ricardo

  GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
  https://elephly.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-28 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-27  6:52 bug#26676: [PATCH] gnu: Add xerces-c Ricardo Wurmus
2017-04-27 13:29 ` Marius Bakke
2017-04-28 15:48   ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).