me
/
guix
Archived
1
0
Fork 0

gnu: gettext: Enable "xgettext --language=glade".

* gnu/packages/gettext.scm (gettext): Add input expat, explicitly link with it.
master
Andreas Enge 2013-11-18 21:11:49 +01:00
parent a7bf595fff
commit c42a4b76c4
1 changed files with 12 additions and 3 deletions

View File

@ -17,11 +17,12 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages gettext) (define-module (gnu packages gettext)
#:use-module (guix licenses) #:use-module ((guix licenses) #:select (gpl3))
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system gnu)) #:use-module (guix build-system gnu)
#:use-module (gnu packages xml))
(define-public gettext (define-public gettext
(package (package
@ -35,8 +36,16 @@
(base32 (base32
"0p940zmmw1lndvdhck2vrazikjhr02affwy47mmpfxqvacrrm3qd")))) "0p940zmmw1lndvdhck2vrazikjhr02affwy47mmpfxqvacrrm3qd"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs
`(("expat" ,expat)))
(arguments (arguments
`(#:phases (alist-cons-before `(#:phases (alist-cons-before
'configure 'link-expat
(lambda _
(substitute* "gettext-tools/configure"
(("LIBEXPAT=\"-ldl\"") "LIBEXPAT=\"-ldl -lexpat\"")
(("LTLIBEXPAT=\"-ldl\"") "LTLIBEXPAT=\"-ldl -lexpat\"")))
(alist-cons-before
'check 'patch-tests 'check 'patch-tests
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((bash (which "sh"))) (let ((bash (which "sh")))
@ -48,7 +57,7 @@
"posix_spawn") "posix_spawn")
(("/bin/sh") (("/bin/sh")
bash)))) bash))))
%standard-phases))) %standard-phases))))
(home-page "http://www.gnu.org/software/gettext/") (home-page "http://www.gnu.org/software/gettext/")
(synopsis "Tools and documentation for translation") (synopsis "Tools and documentation for translation")
(description (description