1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-27 12:40:32 +02:00
Files
guix/gnu/packages/swig.scm
Sharlatan Hellseher 5f3cd42859 gnu: Deprecate swig and swig-next in vafor of swig-4.0 and swig-4.4.
This is a following up change after discussion in
<https://codeberg.org/guix/guix/pulls/3701#issuecomment-11048648>.

* gnu/packages/swig.scm (swig-4.0, swig-4.4): New variables.
(swig, swig-next): Deprecate swig and swig-next in vafor of swig-4.0 and
swig-4.4.

* gnu/packages/accessibility.scm (libbraille)
* gnu/packages/apparmor.scm (libapparmor)
* gnu/packages/bioinformatics.scm (htseq, imp, libsbml)
* gnu/packages/bootloaders.scm (dtc, u-boot)
* gnu/packages/disk.scm (volume-key)
* gnu/packages/dns.scm (ldns, unbound)
* gnu/packages/electronics.scm (opensta, trilinos-serial-xyce, uhdm)
* gnu/packages/embedded.scm (python-libmpsse)
* gnu/packages/engineering.scm (freecad, kicad, meep, mpb)
* gnu/packages/fabric-management.scm (ibutils)
* gnu/packages/game-development.scm (python-pybox2d)
* gnu/packages/games.scm (kiki)
* gnu/packages/geo.scm (saga)
* gnu/packages/gnome.scm (libratbag)
* gnu/packages/gnucash.scm (gnucash)
* gnu/packages/gnupg.scm (python-gpg)
* gnu/packages/graphviz.scm (graphviz)
* gnu/packages/guile-xyz.scm (guile-xapian)
* gnu/packages/image.scm (mypaint)
* gnu/packages/instrumentation.scm (babeltrace, lttng-tools)
* gnu/packages/kodi.scm (kodi)
* gnu/packages/libftdi.scm (libftdi)
* gnu/packages/linux.scm (libnl)
* gnu/packages/llvm.scm (lldb)
* gnu/packages/machine-learning.scm (openmm, tensorflow-lite)
* gnu/packages/maths.scm (nlopt)
* gnu/packages/ncurses.scm (stfl)
* gnu/packages/oneapi.scm (python-onetbb)
* gnu/packages/pretty-print.scm (highlight)
* gnu/packages/python-crypto.scm (python-m2crypto)
* gnu/packages/python-graphics.scm (python-pivy)
* gnu/packages/radio.scm (hamlib, soapysdr)
* gnu/packages/security-token.scm (python-pyscard, python-yubikey-manager)
* gnu/packages/selinux.scm (libselinux, libsemanage, python-setools)
* gnu/packages/speech.scm (pocketsphinx)
* gnu/packages/statistics.scm (python-openturns, r-spams)
* gnu/packages/tbb.scm (python-tbb)
* gnu/packages/version-control.scm (subversion)
* gnu/packages/video.scm (libopenshot, mlt, obs)
[native-inputs]: Remove swig; add swig-4.0.

* gnu/packages/geo.scm (gdal)
* gnu/packages/graph.scm (python-faiss)
[inputs]: Remove swig; add swig-4.0.

* gnu/packages/games.scm (fifengine): Update to 0.4.2.
[inputs]: Remove swig; add swig-4.0.
[native-inputs]: Likewise.

* gnu/packages/image-processing.scm (insight-toolkit, simpleitk)
* gnu/packages/pdf.scm (mupdf, python-pymupdf)
[native-inputs]: Remove swig-next; add swig-4.4.

Change-Id: I544bef0a0b1a81004596fad9f116610ef5cb52ae
2026-02-27 14:07:00 +00:00

101 lines
4.0 KiB
Scheme

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2018, 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2019, 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages swig)
#:use-module (guix packages)
#:use-module (guix deprecation)
#:use-module (guix download)
#:use-module (guix licenses)
#:use-module (guix build-system gnu)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages boost)
#:use-module (gnu packages guile)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages python))
(define-public swig-4.0
(package
(name "swig")
(version "4.0.2")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/" name "/" name "/"
name "-" version "/"
name "-" version ".tar.gz"))
(sha256
(base32
"1z06m5zv87mha6hvys1iay810ghc1jngilfby1ms2n4d1mryjfym"))
;; Remove with next release.
(patches (search-patches "swig-support-gcc-12.patch"))))
(build-system gnu-build-system)
(native-inputs (list boost
`(,pcre "bin") ;for 'pcre-config'
;; The following are for tests and examples:
guile-3.0
perl))
;;("python" ,python-wrapper)
(inputs (list pcre))
(arguments (list #:tests? (not (or (target-hurd?)
(%current-target-system)))))
(home-page "https://swig.org/")
(synopsis
"Interface compiler that connects C/C++ code to higher-level languages")
(description
"SWIG is an interface compiler that connects programs written in C and
C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It works by
taking the declarations found in C/C++ header files and using them to generate
the wrapper code that scripting languages need to access the underlying C/C++
code. In addition, SWIG provides a variety of customization features that let
you tailor the wrapping process to suit your application.")
;; See http://www.swig.org/Release/LICENSE for details.
(license gpl3+)))
;; XXX: Deprecated on <2026-02-27>.
(define-deprecated-package swig swig-4.0)
(define-public swig-4.4
(package
(inherit swig-4.0)
(name "swig")
(version "4.4.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/" name "/" name "/"
name "-" version "/"
name "-" version ".tar.gz"))
(sha256
(base32
"1kqz533599d00rrz0g2ryf8w2ynb25ayylpx10nmkxsndiq2l5j0"))))
(native-inputs (list boost
pcre2 ; for pcre2-config
;; The following are for tests and examples:
guile-3.0
perl))
(inputs (list pcre2))))
;; XXX: Deprecated on <2026-02-27>.
(define-deprecated-package swig-next swig-4.4)