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.
 
 
 
 
 
 

66 lines
2.5 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 swig)
  19. #:use-module (guix packages)
  20. #:use-module (guix download)
  21. #:use-module (guix licenses)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages pcre)
  24. #:use-module (gnu packages guile)
  25. #:use-module (gnu packages python)
  26. #:use-module (gnu packages perl)
  27. #:export (swig))
  28. (define swig
  29. (package
  30. (name "swig")
  31. (version "2.0.11")
  32. (source (origin
  33. (method url-fetch)
  34. (uri (string-append "mirror://sourceforge/swig/swig-"
  35. version ".tar.gz"))
  36. (sha256
  37. (base32
  38. "0kj21b6syp62vx68r1j6azv9033kng68pxm1k79pm4skkzr0ny33"))))
  39. (build-system gnu-build-system)
  40. (arguments '(#:configure-flags '("--without-boost")
  41. ;; FIXME: Some tests require Boost anyway. Turn them on when
  42. ;; we have Boost.
  43. #:tests? #f))
  44. (inputs `(("pcre" ,pcre)
  45. ;; Provide these to run the corresponding tests.
  46. ("guile" ,guile-2.0)
  47. ("perl" ,perl)
  48. ("python" ,python-wrapper)))
  49. (home-page "http://swig.org/")
  50. (synopsis
  51. "Interface compiler that connects C/C++ code to higher-level languages")
  52. (description
  53. "SWIG is an interface compiler that connects programs written in C and
  54. C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It works by
  55. taking the declarations found in C/C++ header files and using them to generate
  56. the wrapper code that scripting languages need to access the underlying C/C++
  57. code. In addition, SWIG provides a variety of customization features that let
  58. you tailor the wrapping process to suit your application.")
  59. ;; See http://www.swig.org/Release/LICENSE for details.
  60. (license gpl3+)))