gnu: emacs-consult: Fix grammar.
[jackhill/guix/guix.git] / gnu / packages / swig.scm
CommitLineData
832e64bd 1;;; GNU Guix --- Functional package management for GNU
809f1762 2;;; Copyright © 2013, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
77a39799 3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
a555c3f4 4;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
7ed91f8c 5;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
e607cc3a 6;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
832e64bd
LC
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages swig)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix licenses)
27 #:use-module (guix build-system gnu)
e8ef3cc4 28 #:use-module (gnu packages)
0a643dc6 29 #:use-module (gnu packages boost)
60bd56c6
EF
30 #:use-module (gnu packages guile)
31 #:use-module (gnu packages pcre)
32 #:use-module (gnu packages perl)
33 #:use-module (gnu packages python))
832e64bd 34
0160458b 35(define-public swig
832e64bd
LC
36 (package
37 (name "swig")
8b2c4eb5 38 (version "4.0.1")
832e64bd
LC
39 (source (origin
40 (method url-fetch)
de67e922
LF
41 (uri (string-append "mirror://sourceforge/" name "/" name "/"
42 name "-" version "/"
43 name "-" version ".tar.gz"))
832e64bd
LC
44 (sha256
45 (base32
8b2c4eb5 46 "1ac7g0gd8ndwv3ybqn5vjgqxa7090bby4db164a7mn9ssp8b803s"))))
832e64bd 47 (build-system gnu-build-system)
503c8c58
LF
48 (arguments
49 '(#:phases
50 (modify-phases %standard-phases
a555c3f4
MB
51 (add-before 'configure 'workaround-gcc-bug
52 (lambda _
53 ;; XXX: Don't add the -isystem flag, or GCCs #include_next
54 ;; won't be able to find <stdlib.h>.
55 (substitute* "configure"
56 (("-isystem ") "-I"))
57 #t)))))
809f1762 58 (native-inputs `(("boost" ,boost)
7ed91f8c
EF
59 ("pcre" ,pcre "bin") ;for 'pcre-config'
60 ;; The following are for tests and examples:
e607cc3a 61 ("guile" ,guile-3.0)
7ed91f8c
EF
62 ("perl" ,perl)))
63 ;;("python" ,python-wrapper)
64 (inputs `(("pcre" ,pcre)))
832e64bd
LC
65 (home-page "http://swig.org/")
66 (synopsis
67 "Interface compiler that connects C/C++ code to higher-level languages")
68 (description
69 "SWIG is an interface compiler that connects programs written in C and
70C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It works by
71taking the declarations found in C/C++ header files and using them to generate
72the wrapper code that scripting languages need to access the underlying C/C++
73code. In addition, SWIG provides a variety of customization features that let
74you tailor the wrapping process to suit your application.")
75
76 ;; See http://www.swig.org/Release/LICENSE for details.
77 (license gpl3+)))