From 30b487f42559e52141202d260641b735037dee21 Mon Sep 17 00:00:00 2001 From: Binshuai Wang Date: Thu, 7 Jan 2021 12:55:13 -0800 Subject: [PATCH] build/pkgs/swig:New --- build/pkgs/swig/SPKG.rst | 18 ++++++++++++++++++ build/pkgs/swig/distros/alpine.txt | 1 + build/pkgs/swig/distros/arch.txt | 1 + build/pkgs/swig/distros/debian.txt | 1 + build/pkgs/swig/distros/fedora.txt | 1 + build/pkgs/swig/distros/freebsd.txt | 1 + build/pkgs/swig/distros/gentoo.txt | 1 + build/pkgs/swig/distros/homebrew.txt | 1 + build/pkgs/swig/distros/nix.txt | 1 + build/pkgs/swig/distros/opensuse.txt | 2 ++ build/pkgs/swig/distros/void.txt | 1 + build/pkgs/swig/spkg-configure.m4 | 4 ++++ build/pkgs/swig/spkg-install | 5 +++++ build/pkgs/swig/type | 1 + 14 files changed, 39 insertions(+) create mode 100644 build/pkgs/swig/SPKG.rst create mode 100644 build/pkgs/swig/distros/alpine.txt create mode 100644 build/pkgs/swig/distros/arch.txt create mode 100644 build/pkgs/swig/distros/debian.txt create mode 100644 build/pkgs/swig/distros/fedora.txt create mode 100644 build/pkgs/swig/distros/freebsd.txt create mode 100644 build/pkgs/swig/distros/gentoo.txt create mode 100644 build/pkgs/swig/distros/homebrew.txt create mode 100644 build/pkgs/swig/distros/nix.txt create mode 100644 build/pkgs/swig/distros/opensuse.txt create mode 100644 build/pkgs/swig/distros/void.txt create mode 100644 build/pkgs/swig/spkg-configure.m4 create mode 100755 build/pkgs/swig/spkg-install create mode 100644 build/pkgs/swig/type diff --git a/build/pkgs/swig/SPKG.rst b/build/pkgs/swig/SPKG.rst new file mode 100644 index 00000000000..a65ca12cbb0 --- /dev/null +++ b/build/pkgs/swig/SPKG.rst @@ -0,0 +1,18 @@ +swig +==== + +Description +----------- + +SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of target languages including common scripting languages such as Javascript, Perl, PHP, Python, Tcl and Ruby. The list of supported languages also includes non-scripting languages such as C#, D, Go language, Java including Android, Lua, OCaml, Octave, Scilab and R. Also several interpreted and compiled Scheme implementations (Guile, MzScheme/Racket) are supported. SWIG is most commonly used to create high-level interpreted or compiled programming environments, user interfaces, and as a tool for testing and prototyping C/C++ software. SWIG is typically used to parse C/C++ interfaces and generate the 'glue code' required for the above target languages to call into the C/C++ code. SWIG can also export its parse tree in the form of XML. SWIG is free software and the code that SWIG generates is compatible with both commercial and non-commercial projects. + +License +------- + +Various open source licenses: GPL v3+. See file LICENSE in the sources for +details. + +Upstream Contact +---------------- + +http://www.swig.org/ diff --git a/build/pkgs/swig/distros/alpine.txt b/build/pkgs/swig/distros/alpine.txt new file mode 100644 index 00000000000..89e3ed0572e --- /dev/null +++ b/build/pkgs/swig/distros/alpine.txt @@ -0,0 +1 @@ +swig \ No newline at end of file diff --git a/build/pkgs/swig/distros/arch.txt b/build/pkgs/swig/distros/arch.txt new file mode 100644 index 00000000000..069af912804 --- /dev/null +++ b/build/pkgs/swig/distros/arch.txt @@ -0,0 +1 @@ +swig diff --git a/build/pkgs/swig/distros/debian.txt b/build/pkgs/swig/distros/debian.txt new file mode 100644 index 00000000000..069af912804 --- /dev/null +++ b/build/pkgs/swig/distros/debian.txt @@ -0,0 +1 @@ +swig diff --git a/build/pkgs/swig/distros/fedora.txt b/build/pkgs/swig/distros/fedora.txt new file mode 100644 index 00000000000..069af912804 --- /dev/null +++ b/build/pkgs/swig/distros/fedora.txt @@ -0,0 +1 @@ +swig diff --git a/build/pkgs/swig/distros/freebsd.txt b/build/pkgs/swig/distros/freebsd.txt new file mode 100644 index 00000000000..4cacc252f21 --- /dev/null +++ b/build/pkgs/swig/distros/freebsd.txt @@ -0,0 +1 @@ +devel/swig diff --git a/build/pkgs/swig/distros/gentoo.txt b/build/pkgs/swig/distros/gentoo.txt new file mode 100644 index 00000000000..58a985a2776 --- /dev/null +++ b/build/pkgs/swig/distros/gentoo.txt @@ -0,0 +1 @@ +dev-lang/swig diff --git a/build/pkgs/swig/distros/homebrew.txt b/build/pkgs/swig/distros/homebrew.txt new file mode 100644 index 00000000000..069af912804 --- /dev/null +++ b/build/pkgs/swig/distros/homebrew.txt @@ -0,0 +1 @@ +swig diff --git a/build/pkgs/swig/distros/nix.txt b/build/pkgs/swig/distros/nix.txt new file mode 100644 index 00000000000..069af912804 --- /dev/null +++ b/build/pkgs/swig/distros/nix.txt @@ -0,0 +1 @@ +swig diff --git a/build/pkgs/swig/distros/opensuse.txt b/build/pkgs/swig/distros/opensuse.txt new file mode 100644 index 00000000000..82509573e40 --- /dev/null +++ b/build/pkgs/swig/distros/opensuse.txt @@ -0,0 +1,2 @@ +swig + diff --git a/build/pkgs/swig/distros/void.txt b/build/pkgs/swig/distros/void.txt new file mode 100644 index 00000000000..069af912804 --- /dev/null +++ b/build/pkgs/swig/distros/void.txt @@ -0,0 +1 @@ +swig diff --git a/build/pkgs/swig/spkg-configure.m4 b/build/pkgs/swig/spkg-configure.m4 new file mode 100644 index 00000000000..f0e2168ef52 --- /dev/null +++ b/build/pkgs/swig/spkg-configure.m4 @@ -0,0 +1,4 @@ +SAGE_SPKG_CONFIGURE([swig], [ + AC_PATH_PROG([SWIG_CREATE_CMAKELISTS], [swig]) + AS_IF([test -z "$ac_cv_path_SWIG_CREATE_CMAKELISTS"], [sage_spkg_install_swig=yes]) +]) diff --git a/build/pkgs/swig/spkg-install b/build/pkgs/swig/spkg-install new file mode 100755 index 00000000000..e6409645061 --- /dev/null +++ b/build/pkgs/swig/spkg-install @@ -0,0 +1,5 @@ +#! /usr/bin/env bash +echo Error: swig, a prerequisite of cgal_swig_bindings, is not installed. +echo Please install it manually, for example using the system packages +echo recommended by ./configure. +exit 1 diff --git a/build/pkgs/swig/type b/build/pkgs/swig/type new file mode 100644 index 00000000000..134d9bc32d5 --- /dev/null +++ b/build/pkgs/swig/type @@ -0,0 +1 @@ +optional