| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 |
|
| 24 | (define-module (gnu packages swig)
|
| 25 | #:use-module (guix packages)
|
| 26 | #:use-module (guix deprecation)
|
| 27 | #:use-module (guix download)
|
| 28 | #:use-module (guix licenses)
|
| 29 | #:use-module (guix build-system gnu)
|
| 30 | #:use-module (guix utils)
|
| 31 | #:use-module (gnu packages)
|
| 32 | #:use-module (gnu packages boost)
|
| 33 | #:use-module (gnu packages guile)
|
| 34 | #:use-module (gnu packages pcre)
|
| 35 | #:use-module (gnu packages perl)
|
| 36 | #:use-module (gnu packages python))
|
| 37 |
|
| 38 | (define-public swig-4.0
|
| 39 | (package
|
| 40 | (name "swig")
|
| 41 | (version "4.0.2")
|
| 42 | (source (origin
|
| 43 | (method url-fetch)
|
| 44 | (uri (string-append "mirror://sourceforge/" name "/" name "/"
|
| 45 | name "-" version "/"
|
| 46 | name "-" version ".tar.gz"))
|
| 47 | (sha256
|
| 48 | (base32
|
| 49 | "1z06m5zv87mha6hvys1iay810ghc1jngilfby1ms2n4d1mryjfym"))
|
| 50 | |
| 51 | (patches (search-patches "swig-support-gcc-12.patch"))))
|
| 52 | (build-system gnu-build-system)
|
| 53 | (native-inputs (list boost
|
| 54 | `(,pcre "bin") |
| 55 | |
| 56 | guile-3.0
|
| 57 | perl))
|
| 58 | |
| 59 | (inputs (list pcre))
|
| 60 | (arguments (list #:tests? (not (or (target-hurd?)
|
| 61 | (%current-target-system)))))
|
| 62 | (home-page "https://swig.org/")
|
| 63 | (synopsis
|
| 64 | "Interface compiler that connects C/C++ code to higher-level languages")
|
| 65 | (description
|
| 66 | "SWIG is an interface compiler that connects programs written in C and
|
| 67 | C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It works by
|
| 68 | taking the declarations found in C/C++ header files and using them to generate
|
| 69 | the wrapper code that scripting languages need to access the underlying C/C++
|
| 70 | code. In addition, SWIG provides a variety of customization features that let
|
| 71 | you tailor the wrapping process to suit your application.")
|
| 72 |
|
| 73 | |
| 74 | (license gpl3+)))
|
| 75 |
|
| 76 | (define-public swig-4.4
|
| 77 | (package
|
| 78 | (inherit swig-4.0)
|
| 79 | (name "swig")
|
| 80 | (version "4.4.1")
|
| 81 | (source (origin
|
| 82 | (method url-fetch)
|
| 83 | (uri (string-append "mirror://sourceforge/" name "/" name "/"
|
| 84 | name "-" version "/"
|
| 85 | name "-" version ".tar.gz"))
|
| 86 | (sha256
|
| 87 | (base32
|
| 88 | "1kqz533599d00rrz0g2ryf8w2ynb25ayylpx10nmkxsndiq2l5j0"))
|
| 89 | (patches
|
| 90 | (search-patches "swig-support-r-4.6.0.patch"))))
|
| 91 | (native-inputs (list boost
|
| 92 | pcre2 |
| 93 | |
| 94 | guile-3.0
|
| 95 | perl))
|
| 96 | (inputs (list pcre2))))
|
| 97 |
|
| 98 | |
| 99 | -(define-public swig swig-4.4)
|