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.
 
 
 
 
 
 

61 lines
2.3 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 libevent)
  19. #:use-module (gnu packages)
  20. #:use-module (guix licenses)
  21. #:use-module (guix packages)
  22. #:use-module (guix download)
  23. #:use-module (guix build-system gnu)
  24. #:use-module (gnu packages which)
  25. #:use-module (gnu packages python))
  26. (define-public libevent
  27. (package
  28. (name "libevent")
  29. (version "2.0.21")
  30. (source (origin
  31. (method url-fetch)
  32. (uri (string-append
  33. "https://github.com/downloads/libevent/libevent/libevent-"
  34. version
  35. "-stable.tar.gz"))
  36. (sha256
  37. (base32
  38. "1xblymln9vihdmf1aqkp8chwvnhpdch3786bh30bj75slnl31992"))
  39. (patches (list (search-patch "libevent-dns-tests.patch")))))
  40. (build-system gnu-build-system)
  41. (inputs
  42. `(;; Dependencies used for the tests and for `event_rpcgen.py'.
  43. ("which" ,which)
  44. ("python" ,python-wrapper)))
  45. (home-page "http://libevent.org/")
  46. (synopsis
  47. "libevent, an event notification library")
  48. (description
  49. "The libevent API provides a mechanism to execute a callback
  50. function when a specific event occurs on a file descriptor or after a
  51. timeout has been reached. Furthermore, libevent also support callbacks
  52. due to signals or regular timeouts.
  53. libevent is meant to replace the event loop found in event driven
  54. network servers. An application just needs to call event_dispatch() and
  55. then add or remove events dynamically without having to change the event
  56. loop.")
  57. (license bsd-3)))