unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Andy Tai <atai@atai.org>
To: 64012@debbugs.gnu.org
Cc: Andy Tai <atai@atai.org>
Subject: [bug#64012] [PATCH v4 2/3] Ignu: python-libxml2: Add version 2.11.4
Date: Tue, 13 Jun 2023 23:04:10 -0700	[thread overview]
Message-ID: <b3589769e9915cac46e0aaee5a885745cfd11f14.1686722470.git.atai@atai.org> (raw)
In-Reply-To: <3afe9802dd9c7006c4164c28169feb983c43be42.1686722470.git.atai@atai.org>

* gnu/packages/xml.scm (python-libxml2-next): Version 2.11.4 as new variable
---
 gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index eaaa93fe14..74976f7402 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -300,6 +300,48 @@ (define-public python-libxml2
     (inputs (list libxml2))
     (synopsis "Python bindings for the libxml2 library")))
 
+(define-public python-libxml2-next
+  (package/inherit python-libxml2
+    (version "2.11.4")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://download.gnome.org/sources/libxml2/"
+                    (version-major+minor version) "/libxml2-" version
+                    ".tar.xz"))
+              (sha256 (base32
+                       "1xspgyswllk26g7jg95pnkfk1gqpzna28fm1kir3kwdki9ziszkk"))))
+
+    (native-inputs (list pkg-config
+                         autoconf-wrapper
+                         automake
+                         libtool
+                         perl
+                         python-minimal-wrapper))
+    ;; needed to generate setup.py
+    
+    (arguments (list
+                ;; XXX: Tests are specified in 'Makefile.am', but not in 'setup.py'.
+                #:tests? #f
+                #:phases #~(modify-phases %standard-phases
+                             (add-after 'unpack 'set-env
+                               (lambda _
+                                 (setenv "CONFIG_SHELL"
+                                         (which "sh")) #t))
+                             (add-before 'build 'configure
+                               (lambda* (#:key inputs #:allow-other-keys)
+                                 (invoke "sh" "autogen.sh")
+                                 (chdir "python")
+                                 (let ((libxml2-headers (search-input-directory
+                                                         inputs
+                                                         "include/libxml2")))
+                                   (substitute* "setup.py"
+                                     ;; The build system ignores C_INCLUDE_PATH & co, so
+                                     ;; provide the absolute directory name.
+                                     (("/opt/include")
+                                      (dirname libxml2-headers)))))))))
+    (inputs (list libxml2-next))))
+
 (define-public libxlsxwriter
   (package
     (name "libxlsxwriter")
-- 
2.40.1





  reply	other threads:[~2023-06-14  6:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-12  8:03 [bug#64012] [PATCH] gnu: libxml2: Update to 2.11.4 Andy Tai
2023-06-12  8:47 ` [bug#64012] [PATCH v2] " Andy Tai
2023-06-12 18:40   ` Liliana Marie Prikler
2023-06-12 18:52     ` Andy Tai
2023-06-12 19:38       ` Liliana Marie Prikler
2023-06-13  5:01 ` [bug#64012] [PATCH v3] gnu: libxml2: Add version 2.11.4 Andy Tai
2023-06-13 18:26   ` Liliana Marie Prikler
2023-06-15 18:31     ` Andy Tai
2023-06-14  6:04 ` [bug#64012] [PATCH v4 1/3] " Andy Tai
2023-06-14  6:04   ` Andy Tai [this message]
2023-06-14  6:04   ` [bug#64012] [PATCH v4 3/3] gnu: itstool: Add version depending on needed fix Andy Tai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b3589769e9915cac46e0aaee5a885745cfd11f14.1686722470.git.atai@atai.org \
    --to=atai@atai.org \
    --cc=64012@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).