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