gnu: Unify the two intltool packages.

* gnu/packages/xml.scm (intltool): Delete variable.
* gnu/packages/glib.scm (intltool): Update to version 0.50.2.
This commit is contained in:
Andreas Enge 2013-04-19 19:41:05 +02:00
parent f594028a9c
commit d6b8cb5c4a
2 changed files with 20 additions and 60 deletions

View File

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -18,7 +19,8 @@
;;; 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 glib) (define-module (gnu packages glib)
#:use-module ((guix licenses) #:select (lgpl2.0+ gpl2+ gpl2)) #:use-module ((guix licenses)
#:renamer (symbol-prefix-proc 'license:))
#: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)
@ -28,11 +30,10 @@
#:use-module ((gnu packages gettext) #:use-module ((gnu packages gettext)
#:renamer (symbol-prefix-proc 'guix:)) #:renamer (symbol-prefix-proc 'guix:))
#:use-module (gnu packages libffi) #:use-module (gnu packages libffi)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages perl) #:use-module (gnu packages xml))
#:use-module ((gnu packages xml)
#:renamer (symbol-prefix-proc 'xml:)))
(define-public dbus (define-public dbus
(package (package
@ -48,7 +49,7 @@
"1wacqyfkcpayg7f8rvx9awqg275n5pksxq5q7y21lxjx85x6pfjz")))) "1wacqyfkcpayg7f8rvx9awqg275n5pksxq5q7y21lxjx85x6pfjz"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs (inputs
`(("expat" ,xml:expat) `(("expat" ,expat)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))
(home-page "http://dbus.freedesktop.org/") (home-page "http://dbus.freedesktop.org/")
(synopsis "Message bus for inter-process communication (IPC)") (synopsis "Message bus for inter-process communication (IPC)")
@ -68,7 +69,7 @@ to communicate directly (without going through the message bus
daemon). Currently the communicating applications are on one computer, daemon). Currently the communicating applications are on one computer,
or through unencrypted TCP/IP suitable for use behind a firewall with or through unencrypted TCP/IP suitable for use behind a firewall with
shared NFS home directories.") shared NFS home directories.")
(license gpl2+))) ; or Academic Free License 2.1 (license license:gpl2+))) ; or Academic Free License 2.1
(define-public glib (define-public glib
(package (package
@ -126,31 +127,28 @@ shared NFS home directories.")
and interfaces for such runtime functionality as an event loop, threads, and interfaces for such runtime functionality as an event loop, threads,
dynamic loading, and an object system.") dynamic loading, and an object system.")
(home-page "http://developer.gnome.org/glib/") (home-page "http://developer.gnome.org/glib/")
(license lgpl2.0+))) ; some files are under lgpl2.1+ (license license:lgpl2.0+))) ; some files are under lgpl2.1+
(define-public intltool (define-public intltool
(package (package
(name "intltool") (name "intltool")
(version "0.40.6") (version "0.50.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append "https://launchpad.net/intltool/trunk/"
"mirror://gnome/sources/intltool/0.40/intltool-" version "/+download/intltool-"
version version ".tar.gz"))
".tar.bz2"))
(sha256 (sha256
(base32 (base32
"0r1vkvy5xzqk01yl6a0xlrry39bra24alkrx6279b77hc62my7jd")))) "01j4yd7i84n9nk4ccs6yifg84pp68nr9by57jdbhj7dpdxf5rwk7"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs `(("pkg-config" ,pkg-config)))
(propagated-inputs (propagated-inputs
`(("gettext" ,guix:gettext) `(("perl" ,perl)
("perl-xml-parser" ,xml:perl-xml-parser) ("perl-xml-parser" ,perl-xml-parser)))
("perl" ,perl))) (home-page "https://launchpad.net/intltool/+download")
(home-page "http://freedesktop.org/wiki/Software/intltool") (synopsis "Tools to centralise translations of different file formats")
(synopsis "Tools to centralize translation of many different file formats")
(description (description
"intltool is a set of tools to centralize translation of many different "intltool is a set of tools to centralise translations of many different
file formats using GNU gettext-compatible PO files. file formats using GNU gettext-compatible PO files.
The intltool collection can be used to do these things: The intltool collection can be used to do these things:
@ -163,4 +161,4 @@ The intltool collection can be used to do these things:
Merge back the translations from .po files into .xml, .desktop and Merge back the translations from .po files into .xml, .desktop and
oaf files. This merge step will happen at build resp. installation time.") oaf files. This merge step will happen at build resp. installation time.")
(license gpl2))) (license license:gpl2+)))

View File

@ -149,41 +149,3 @@ then passed on to the Expat object on each parse call. They can also be given
as extra arguments to the parse methods, in which case they override options as extra arguments to the parse methods, in which case they override options
given at XML::Parser creation time.") given at XML::Parser creation time.")
(home-page "http://search.cpan.org/~toddr/XML-Parser-2.41/Parser.pm"))) (home-page "http://search.cpan.org/~toddr/XML-Parser-2.41/Parser.pm")))
(define-public intltool
(package
(name "intltool")
(version "0.50.2")
(source (origin
(method url-fetch)
(uri (string-append "https://launchpad.net/intltool/trunk/"
version "/+download/intltool-"
version ".tar.gz"))
(sha256
(base32
"01j4yd7i84n9nk4ccs6yifg84pp68nr9by57jdbhj7dpdxf5rwk7"))))
(build-system gnu-build-system)
(propagated-inputs
`(("perl" ,perl)
("perl-xml-parser" ,perl-xml-parser)))
(arguments
`(#:phases
(alist-replace
'configure
(lambda* (#:key inputs #:allow-other-keys #:rest args)
(let ((configure (assoc-ref %standard-phases 'configure))
(perl-xml-parser (assoc-ref inputs "perl-xml-parser")))
;; FIXME: This should be done more centrally.
(setenv "PERL5LIB" (string-append perl-xml-parser "/lib/perl5/site_perl"))
(apply configure args)))
%standard-phases)))
(home-page "https://launchpad.net/intltool/+download")
(synopsis "Utility scripts for internationalising xml")
(description
"intltool automatically extracts translatable strings from oaf, glade,
bonobo ui, nautilus theme and other XML files into the po files.
It automatically merges translations from po files back into .oaf files
(encoding to be 7-bit clean). The merging mechanism can also be extended to
support other types of XML files.")
(license license:gpl2+)))