Mirror of GNU Guix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
3.1 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages avahi)
  19. #:use-module ((guix licenses) #:select (lgpl2.1+))
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages gdbm)
  24. #:use-module (gnu packages libdaemon)
  25. #:use-module (gnu packages pkg-config)
  26. #:use-module (gnu packages glib)
  27. #:use-module (gnu packages xml))
  28. (define-public avahi
  29. (package
  30. (name "avahi")
  31. (version "0.6.31")
  32. (home-page "http://avahi.org")
  33. (source (origin
  34. (method url-fetch)
  35. (uri (string-append home-page "/download/avahi-"
  36. version ".tar.gz"))
  37. (sha256
  38. (base32
  39. "0j5b5ld6bjyh3qhd2nw0jb84znq0wqai7fsrdzg7bpg24jdp2wl3"))))
  40. (build-system gnu-build-system)
  41. (arguments
  42. '(#:configure-flags '("--with-distro=none"
  43. "--disable-python"
  44. "--disable-mono"
  45. "--disable-doxygen-doc"
  46. "--disable-xmltoman"
  47. "--enable-tests"
  48. "--disable-qt3" "--disable-qt4"
  49. "--disable-gtk" "--disable-gtk3")
  50. #:phases (alist-cons-before
  51. 'configure 'set-perl-path
  52. (lambda* (#:key inputs #:allow-other-keys)
  53. ;; FIXME: Remove this phase when proper support for search
  54. ;; paths is available.
  55. (let ((xml-parser (assoc-ref inputs
  56. "intltool/perl-xml-parser")))
  57. (setenv "PERL5LIB"
  58. (string-append xml-parser
  59. "/lib/perl5/site_perl"))
  60. #t))
  61. %standard-phases)))
  62. (inputs
  63. `(("expat" ,expat)
  64. ("glib" ,glib)
  65. ("dbus" ,dbus)
  66. ("libdaemon" ,libdaemon)
  67. ("intltool" ,intltool)
  68. ("pkg-config" ,pkg-config)
  69. ("gdbm" ,gdbm)))
  70. (synopsis "Avahi, an mDNS/DNS-SD implementation")
  71. (description
  72. "Avahi is a system which facilitates service discovery on a local
  73. network. It is an implementation of the mDNS (for \"Multicast DNS\") and
  74. DNS-SD (for \"DNS-Based Service Discovery\") protocols.")
  75. (license lgpl2.1+)))