From b88935a8636c8c7258a9db172af9fe4706b06746 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice
Date: Sun, 30 Apr 2017 19:58:09 +0200 Subject: [PATCH] gnu: hexchat: Update to 2.12.4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/messaging.scm (hexchat): Update to 2.12.4. [source]: Remove incorrectly bootstrapped files. [native-inputs]: Add autoconf, autoconf-archive, automake, libtool, pkg-config. [arguments]: Add âbootstrapâ phase. --- gnu/packages/messaging.scm | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 8a8dbd711..ee24e44e3 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -166,16 +166,30 @@ identi.ca and status.net).") (define-public hexchat (package (name "hexchat") - (version "2.12.2") + (version "2.12.4") (source (origin (method url-fetch) (uri (string-append "https://dl.hexchat.net/hexchat/hexchat-" version ".tar.xz")) (sha256 (base32 - "1xnclfbrgbkqndxygi5f27q00jd7yy54jbd1061jmhxa6wzpibbd")))) + "0ficrx56knz5y297qb0x5y02339yvyv734z7kpcx1ixvb0qr2dgs")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Delete incorrectly bootstrapped bundled files. + (for-each delete-file-recursively + (list "build-aux" "po/Makefile.in.in")) + ;; Delete dangling symlinks to a non-existent â/usrâ. + (for-each delete-file + (find-files "m4" "^[^a].*\\.m4$")) + #t)))) (build-system gnu-build-system) - (native-inputs `(("pkg-config" ,pkg-config) + (native-inputs `(("autoconf" ,autoconf) + ("autoconf-archive" ,autoconf-archive) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) ("intltool" ,intltool))) (inputs `(("dbus-glib" ,dbus-glib) ("dbus" ,dbus) @@ -190,6 +204,16 @@ identi.ca and status.net).") ("luajit" ,luajit) ("perl-xml-parser" ,perl-xml-parser) ("python-2" ,python-2))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Release 2.12.4 wasn't properly bootstrapped. Later ones might be! + (add-before 'configure 'bootstrap + (lambda* (#:key inputs #:allow-other-keys) + (copy-file (string-append (assoc-ref inputs "intltool") + "/share/intltool/Makefile.in.in") + "po/Makefile.in.in") + (zero? (system* "autoreconf" "-vfi"))))))) (synopsis "Graphical IRC Client") (description "HexChat lets you connect to multiple @dfn{Internet Relay Chat} (IRC) -- 2.11.0