Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

61 righe
2.2 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 popt)
  19. #:use-module (guix packages)
  20. #:use-module (guix download)
  21. #:use-module (guix build-system gnu)
  22. #:use-module (guix licenses))
  23. (define-public popt
  24. (package
  25. (name "popt")
  26. (version "1.16")
  27. (source (origin
  28. (method url-fetch)
  29. (uri (string-append "http://rpm5.org/files/popt/popt-"
  30. version ".tar.gz"))
  31. (sha256
  32. (base32
  33. "1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77"))))
  34. (build-system gnu-build-system)
  35. (arguments
  36. '(#:phases (alist-cons-before
  37. 'configure 'patch-test
  38. (lambda _
  39. (substitute* "test-poptrc.in"
  40. (("/bin/echo") (which "echo")))
  41. (substitute* "testit.sh" ; don't expect old libtool names
  42. (("lt-test1") "test1")))
  43. %standard-phases)))
  44. (home-page #f)
  45. (synopsis "Command line option parsing library")
  46. (description
  47. "This is the popt(3) command line option parsing library. While it is
  48. similar to getopt(3), it contains a number of enhancements, including:
  49. - popt is fully reentrant;
  50. - popt can parse arbitrary argv[] style arrays while getopt(3) makes this
  51. quite difficult;
  52. - popt allows users to alias command line arguments;
  53. - popt provides convience functions for parsing strings into argv[] style
  54. arrays.")
  55. (license x11)))