2013-01-14 21:49:01 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2013-01-16 17:01:24 -05:00
|
|
|
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
|
2013-04-19 13:41:05 -04:00
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
|
|
|
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
2013-01-14 21:49:01 -05:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2013-01-16 17:01:24 -05:00
|
|
|
(define-module (gnu packages glib)
|
2013-04-19 13:41:05 -04:00
|
|
|
#:use-module ((guix licenses)
|
|
|
|
#:renamer (symbol-prefix-proc 'license:))
|
2013-01-14 21:49:01 -05:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
2013-01-16 17:01:24 -05:00
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module ((gnu packages gettext)
|
2013-01-14 21:49:01 -05:00
|
|
|
#:renamer (symbol-prefix-proc 'guix:))
|
2013-01-16 17:01:24 -05:00
|
|
|
#:use-module (gnu packages libffi)
|
2013-04-19 13:41:05 -04:00
|
|
|
#:use-module (gnu packages perl)
|
2013-01-16 17:01:24 -05:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages python)
|
2013-06-08 12:41:21 -04:00
|
|
|
#:use-module (gnu packages xml)
|
2013-08-19 18:55:01 -04:00
|
|
|
#:use-module (gnu packages bash)
|
|
|
|
#:use-module (gnu packages file))
|
2013-01-16 17:01:24 -05:00
|
|
|
|
|
|
|
(define-public dbus
|
|
|
|
(package
|
|
|
|
(name "dbus")
|
|
|
|
(version "1.6.4")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "http://dbus.freedesktop.org/releases/dbus/dbus-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1wacqyfkcpayg7f8rvx9awqg275n5pksxq5q7y21lxjx85x6pfjz"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
2013-04-19 13:41:05 -04:00
|
|
|
`(("expat" ,expat)
|
2013-01-16 17:01:24 -05:00
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://dbus.freedesktop.org/")
|
|
|
|
(synopsis "Message bus for inter-process communication (IPC)")
|
|
|
|
(description
|
|
|
|
"D-Bus is a message bus system, a simple way for applications to
|
|
|
|
talk to one another. In addition to interprocess communication, D-Bus
|
|
|
|
helps coordinate process lifecycle; it makes it simple and reliable to
|
|
|
|
code a \"single instance\" application or daemon, and to launch
|
|
|
|
applications and daemons on demand when their services are needed.
|
|
|
|
|
|
|
|
D-Bus supplies both a system daemon (for events such as \"new hardware
|
|
|
|
device added\" or \"printer queue changed\") and a
|
|
|
|
per-user-login-session daemon (for general IPC needs among user
|
|
|
|
applications). Also, the message bus is built on top of a general
|
|
|
|
one-to-one message passing framework, which can be used by any two apps
|
|
|
|
to communicate directly (without going through the message bus
|
|
|
|
daemon). Currently the communicating applications are on one computer,
|
|
|
|
or through unencrypted TCP/IP suitable for use behind a firewall with
|
|
|
|
shared NFS home directories.")
|
2013-04-19 13:41:05 -04:00
|
|
|
(license license:gpl2+))) ; or Academic Free License 2.1
|
2013-01-14 21:49:01 -05:00
|
|
|
|
|
|
|
(define-public glib
|
|
|
|
(package
|
|
|
|
(name "glib")
|
2013-06-08 12:41:21 -04:00
|
|
|
(version "2.37.1")
|
2013-01-14 21:49:01 -05:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2013-03-27 10:01:30 -04:00
|
|
|
(uri (string-append "mirror://gnome/sources/"
|
2013-06-09 17:52:22 -04:00
|
|
|
name "/2.37/"
|
2013-01-16 17:01:24 -05:00
|
|
|
name "-" version ".tar.xz"))
|
2013-01-14 21:49:01 -05:00
|
|
|
(sha256
|
2013-06-08 12:41:21 -04:00
|
|
|
(base32 "1lp705q0g9jlfj24x8fpgjh7awmmara5iyj9kz5lhd49sr9s813k"))))
|
2013-01-14 21:49:01 -05:00
|
|
|
(build-system gnu-build-system)
|
2013-01-16 17:01:24 -05:00
|
|
|
(outputs '("out" ; everything
|
|
|
|
"doc")) ; 20 MiB of GTK-Doc reference
|
2013-01-14 21:49:01 -05:00
|
|
|
(inputs
|
|
|
|
`(("coreutils" ,coreutils)
|
|
|
|
("gettext" ,guix:gettext)
|
|
|
|
("libffi" ,libffi)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python)
|
2013-01-16 17:01:24 -05:00
|
|
|
("zlib" ,zlib)
|
|
|
|
("perl" ,perl) ; needed by GIO tests
|
|
|
|
("dbus" ,dbus) ; for GDBus tests
|
2013-06-08 12:41:21 -04:00
|
|
|
("bash" ,bash)
|
|
|
|
("tzdata" ,tzdata) ; for tests/gdatetime.c
|
2013-01-16 17:01:24 -05:00
|
|
|
|
|
|
|
("patch/tests-homedir"
|
|
|
|
,(search-patch "glib-tests-homedir.patch"))
|
|
|
|
("patch/tests-desktop"
|
2013-03-27 10:01:30 -04:00
|
|
|
,(search-patch "glib-tests-desktop.patch"))
|
|
|
|
("patch/tests-prlimit"
|
|
|
|
,(search-patch "glib-tests-prlimit.patch"))))
|
2013-01-16 17:01:24 -05:00
|
|
|
(arguments
|
2013-06-08 12:41:21 -04:00
|
|
|
'(#:patches (list (assoc-ref %build-inputs "patch/tests-homedir")
|
2013-03-27 10:01:30 -04:00
|
|
|
(assoc-ref %build-inputs "patch/tests-desktop")
|
|
|
|
(assoc-ref %build-inputs "patch/tests-prlimit"))
|
2013-01-16 17:01:24 -05:00
|
|
|
#:phases (alist-cons-before
|
|
|
|
'build 'pre-build
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2013-06-08 12:41:21 -04:00
|
|
|
;; For tests/gdatetime.c.
|
|
|
|
(setenv "TZDIR"
|
|
|
|
(string-append (assoc-ref inputs "tzdata")
|
|
|
|
"/share/zoneinfo"))
|
|
|
|
|
|
|
|
;; Some tests want write access there.
|
|
|
|
(setenv "XDG_CACHE_HOME" (getcwd))
|
|
|
|
|
2013-01-16 17:01:24 -05:00
|
|
|
(substitute* '("glib/gspawn.c"
|
|
|
|
"glib/tests/utils.c"
|
|
|
|
"tests/spawn-test.c")
|
2013-06-08 12:41:21 -04:00
|
|
|
(("/bin/sh")
|
|
|
|
(string-append (assoc-ref inputs "bash") "/bin/sh")))
|
|
|
|
|
|
|
|
;; Honor $(TESTS_ENVIRONMENT).
|
|
|
|
(substitute* (find-files "." "^Makefile(\\.in)?$")
|
|
|
|
(("^GTESTER[[:blank:]]*=(.*)$" _ rest)
|
|
|
|
(string-append "GTESTER = $(TESTS_ENVIRONMENT) "
|
|
|
|
rest))))
|
2013-01-16 17:01:24 -05:00
|
|
|
%standard-phases)
|
|
|
|
|
|
|
|
;; Note: `--docdir' and `--htmldir' are not honored, so work around it.
|
|
|
|
#:configure-flags (list (string-append "--with-html-dir="
|
|
|
|
(assoc-ref %outputs "doc")
|
|
|
|
"/share/gtk-doc"))))
|
gnu: Use synopses from the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/gawk.scm,
gnu/packages/gcc.scm,
packages/gcc.scm, b/gnu/packages/gcc.scm,
4b982 100644
s/gcc.scm,
s/gcc.scm,
@@
%standard-phases)))))
`((gcc-libc . ,(assoc-ref inputs "libc"))))
The GNU Compiler Collection")
GNU Compiler Collection")
n
ompiler Collection includes compiler front ends for C, C++,
tran, OpenMP for C/C++/Fortran, Java, and Ada, as well as
gnu/packages/gdb.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/glib.scm,
gnu/packages/global.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mailutils.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm: Use synopses from the Womb.
2013-04-17 12:04:25 -04:00
|
|
|
(synopsis "Thread-safe general utility library; basis of GTK+ and GNOME")
|
2013-01-14 21:49:01 -05:00
|
|
|
(description
|
|
|
|
"GLib provides data structure handling for C, portability wrappers,
|
|
|
|
and interfaces for such runtime functionality as an event loop, threads,
|
|
|
|
dynamic loading, and an object system.")
|
|
|
|
(home-page "http://developer.gnome.org/glib/")
|
2013-04-19 13:41:05 -04:00
|
|
|
(license license:lgpl2.0+))) ; some files are under lgpl2.1+
|
2013-03-05 04:16:17 -05:00
|
|
|
|
|
|
|
(define-public intltool
|
|
|
|
(package
|
|
|
|
(name "intltool")
|
2013-04-19 13:41:05 -04:00
|
|
|
(version "0.50.2")
|
2013-03-05 04:16:17 -05:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2013-04-19 13:41:05 -04:00
|
|
|
(uri (string-append "https://launchpad.net/intltool/trunk/"
|
|
|
|
version "/+download/intltool-"
|
|
|
|
version ".tar.gz"))
|
2013-03-05 04:16:17 -05:00
|
|
|
(sha256
|
|
|
|
(base32
|
2013-04-19 13:41:05 -04:00
|
|
|
"01j4yd7i84n9nk4ccs6yifg84pp68nr9by57jdbhj7dpdxf5rwk7"))))
|
2013-03-05 04:16:17 -05:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(propagated-inputs
|
2013-04-21 05:27:37 -04:00
|
|
|
`(;; Propagate gettext because users expect it to be there, and so does
|
|
|
|
;; the `intltool-update' script.
|
|
|
|
("gettext" ,guix:gettext)
|
|
|
|
|
2013-08-19 18:55:01 -04:00
|
|
|
;; `file' is used by `intltool-update' too.
|
|
|
|
("file" ,file)
|
|
|
|
|
2013-04-21 15:09:49 -04:00
|
|
|
("perl-xml-parser" ,perl-xml-parser)
|
2013-04-21 05:27:37 -04:00
|
|
|
("perl" ,perl)))
|
2013-04-19 13:41:05 -04:00
|
|
|
(home-page "https://launchpad.net/intltool/+download")
|
|
|
|
(synopsis "Tools to centralise translations of different file formats")
|
2013-03-05 04:16:17 -05:00
|
|
|
(description
|
2013-04-19 13:41:05 -04:00
|
|
|
"intltool is a set of tools to centralise translations of many different
|
2013-03-05 04:16:17 -05:00
|
|
|
file formats using GNU gettext-compatible PO files.
|
|
|
|
|
|
|
|
The intltool collection can be used to do these things:
|
|
|
|
|
|
|
|
Extract translatable strings from various source files (.xml.in,
|
|
|
|
glade, .desktop.in, .server.in, .oaf.in).
|
|
|
|
|
|
|
|
Collect the extracted strings together with messages from traditional
|
|
|
|
source files (.c, .h) in po/$(PACKAGE).pot.
|
|
|
|
|
|
|
|
Merge back the translations from .po files into .xml, .desktop and
|
|
|
|
oaf files. This merge step will happen at build resp. installation time.")
|
2013-04-19 13:41:05 -04:00
|
|
|
(license license:gpl2+)))
|