Sunday, August 30, 2026

[UPDATE] devel/swig

It's Swiggin' time again! Port: * Drop a patch that went upstream. * patch-CCache_configure could use a comment. Swig changes worth mentioning: * %typedef is deprecated; embed.i and the %new_copy_array macro are removed. * Python 2 is no longer supported; SWIG now targets Python 3.5 and later. * Ruby: generated wrappers migrated to the TypedData API (the deprecated Data API is removed in Ruby 4.1) and use embedded TypedData storage on Ruby 3.3 and later. The rest at https://swig.org. This is only an update to the port; I haven't tested anything (yet). Who's up for testing their favourite progs with the new Swig? :D Stu diff -Nurp /usr/ports/devel/swig/Makefile ./Makefile --- /usr/ports/devel/swig/Makefile Wed Feb 25 05:48:30 2026 +++ ./Makefile Sun Aug 30 10:03:22 2026 @@ -1,7 +1,7 @@ COMMENT = simplified wrapper and interface generator SUBST_VARS = VERSION -VERSION = 4.4.1 +VERSION = 4.5.0 DISTNAME = swig-${VERSION} CATEGORIES = devel diff -Nurp /usr/ports/devel/swig/distinfo ./distinfo --- /usr/ports/devel/swig/distinfo Wed Feb 25 05:48:30 2026 +++ ./distinfo Sun Aug 30 10:07:11 2026 @@ -1,2 +1,2 @@ -SHA256 (swig-4.4.1.tar.gz) = QBYqcGxW91ktCP1S71URy3rBkfNZPPBzBqClVMYoH88= -SIZE (swig-4.4.1.tar.gz) = 8658358 +SHA256 (swig-4.5.0.tar.gz) = Iq4OiH+MyoAxoyXGfQBSB2UyALQOce2z+IeA4o5H0P8= +SIZE (swig-4.5.0.tar.gz) = 9178362 diff -Nurp /usr/ports/devel/swig/patches/patch-CCache_configure ./patches/patch-CCache_configure --- /usr/ports/devel/swig/patches/patch-CCache_configure Thu Nov 3 04:04:24 2022 +++ ./patches/patch-CCache_configure Sun Aug 30 10:15:54 2026 @@ -1,7 +1,7 @@ Index: CCache/configure --- CCache/configure.orig +++ CCache/configure -@@ -4093,15 +4093,7 @@ else $as_nop +@@ -4169,15 +4169,7 @@ else case e in #( cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdlib.h> diff -Nurp /usr/ports/devel/swig/patches/patch-configure ./patches/patch-configure --- /usr/ports/devel/swig/patches/patch-configure Wed Feb 25 05:48:30 2026 +++ ./patches/patch-configure Wed Dec 31 19:00:00 1969 @@ -1,22 +0,0 @@ -https://github.com/swig/swig/issues/3304 - -fix Examples/guile/multivalue & multimap regress tests - -ld: error: unknown argument '-I/usr/local/include' -ld: error: unknown argument '-pthread' -ld: error: unknown argument '-pthread' -ld: error: unable to find library -lm - -Index: configure ---- configure.orig -+++ configure -@@ -6619,7 +6619,8 @@ then - *-*-linux*) LDSHARED="\$(CC) -shared";; - *-*-dgux*) LDSHARED="ld -G";; - *-*-freebsd3*) LDSHARED="\$(CC) -shared";; -- *-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";; -+ *-*-freebsd*) LDSHARED="ld -Bshareable";; -+ *-*-openbsd*) LDSHARED="\$(CC) -shared";; - *-*-netbsd*) - if [ "`\$(CC) -dM -E - </dev/null | grep __ELF__`" != "" ] - then diff -Nurp /usr/ports/devel/swig/pkg/PLIST ./pkg/PLIST --- /usr/ports/devel/swig/pkg/PLIST Wed Feb 25 05:48:30 2026 +++ ./pkg/PLIST Sun Aug 30 10:19:47 2026 @@ -67,6 +67,8 @@ share/doc/swig/Manual/android-class.png share/doc/swig/Manual/android-simple.png share/doc/swig/Manual/ch2.1.png share/doc/swig/Manual/chapters +share/doc/swig/Manual/checkfonts.py +share/doc/swig/Manual/checklines.py share/doc/swig/Manual/fixstyle.py share/doc/swig/Manual/index.html share/doc/swig/Manual/linkchecker.config @@ -265,11 +267,13 @@ share/swig/${VERSION}/java/swigmove.i share/swig/${VERSION}/java/typemaps.i share/swig/${VERSION}/java/various.i share/swig/${VERSION}/javascript/ +share/swig/${VERSION}/javascript/cdata.i share/swig/${VERSION}/javascript/javascriptkw.swg share/swig/${VERSION}/javascript/jsc/ share/swig/${VERSION}/javascript/jsc/argcargv.i share/swig/${VERSION}/javascript/jsc/arrays_javascript.i share/swig/${VERSION}/javascript/jsc/ccomplex.i +share/swig/${VERSION}/javascript/jsc/cdata.i share/swig/${VERSION}/javascript/jsc/cmalloc.i share/swig/${VERSION}/javascript/jsc/complex.i share/swig/${VERSION}/javascript/jsc/exception.i @@ -285,6 +289,7 @@ share/swig/${VERSION}/javascript/jsc/javascriptrun.swg share/swig/${VERSION}/javascript/jsc/javascriptruntime.swg share/swig/${VERSION}/javascript/jsc/javascriptstrings.swg share/swig/${VERSION}/javascript/jsc/javascripttypemaps.swg +share/swig/${VERSION}/javascript/jsc/javascriptuint8array.swg share/swig/${VERSION}/javascript/jsc/std_auto_ptr.i share/swig/${VERSION}/javascript/jsc/std_common.i share/swig/${VERSION}/javascript/jsc/std_complex.i @@ -302,6 +307,7 @@ share/swig/${VERSION}/javascript/napi/ share/swig/${VERSION}/javascript/napi/argcargv.i share/swig/${VERSION}/javascript/napi/arrays_javascript.i share/swig/${VERSION}/javascript/napi/ccomplex.i +share/swig/${VERSION}/javascript/napi/cdata.i share/swig/${VERSION}/javascript/napi/cmalloc.i share/swig/${VERSION}/javascript/napi/complex.i share/swig/${VERSION}/javascript/napi/exception.i @@ -316,6 +322,7 @@ share/swig/${VERSION}/javascript/napi/javascriptrun.sw share/swig/${VERSION}/javascript/napi/javascriptruntime.swg share/swig/${VERSION}/javascript/napi/javascriptstrings.swg share/swig/${VERSION}/javascript/napi/javascripttypemaps.swg +share/swig/${VERSION}/javascript/napi/javascriptuint8array.swg share/swig/${VERSION}/javascript/napi/nodejs_buffer.i share/swig/${VERSION}/javascript/napi/std_auto_ptr.i share/swig/${VERSION}/javascript/napi/std_common.i @@ -334,6 +341,7 @@ share/swig/${VERSION}/javascript/v8/ share/swig/${VERSION}/javascript/v8/argcargv.i share/swig/${VERSION}/javascript/v8/arrays_javascript.i share/swig/${VERSION}/javascript/v8/ccomplex.i +share/swig/${VERSION}/javascript/v8/cdata.i share/swig/${VERSION}/javascript/v8/cmalloc.i share/swig/${VERSION}/javascript/v8/complex.i share/swig/${VERSION}/javascript/v8/exception.i @@ -349,6 +357,7 @@ share/swig/${VERSION}/javascript/v8/javascriptrun.swg share/swig/${VERSION}/javascript/v8/javascriptruntime.swg share/swig/${VERSION}/javascript/v8/javascriptstrings.swg share/swig/${VERSION}/javascript/v8/javascripttypemaps.swg +share/swig/${VERSION}/javascript/v8/javascriptuint8array.swg share/swig/${VERSION}/javascript/v8/std_auto_ptr.i share/swig/${VERSION}/javascript/v8/std_common.i share/swig/${VERSION}/javascript/v8/std_complex.i @@ -365,8 +374,10 @@ share/swig/${VERSION}/javascript/v8/typemaps.i share/swig/${VERSION}/lua/ share/swig/${VERSION}/lua/_std_common.i share/swig/${VERSION}/lua/argcargv.i +share/swig/${VERSION}/lua/boost_shared_ptr.i share/swig/${VERSION}/lua/carrays.i share/swig/${VERSION}/lua/cdata.i +share/swig/${VERSION}/lua/director.swg share/swig/${VERSION}/lua/factory.i share/swig/${VERSION}/lua/lua.swg share/swig/${VERSION}/lua/lua_fnptr.i @@ -374,15 +385,20 @@ share/swig/${VERSION}/lua/luakw.swg share/swig/${VERSION}/lua/luarun.swg share/swig/${VERSION}/lua/luaruntime.swg share/swig/${VERSION}/lua/luatypemaps.swg +share/swig/${VERSION}/lua/std_array.i share/swig/${VERSION}/lua/std_auto_ptr.i share/swig/${VERSION}/lua/std_common.i share/swig/${VERSION}/lua/std_deque.i share/swig/${VERSION}/lua/std_except.i share/swig/${VERSION}/lua/std_map.i share/swig/${VERSION}/lua/std_pair.i +share/swig/${VERSION}/lua/std_set.i +share/swig/${VERSION}/lua/std_shared_ptr.i share/swig/${VERSION}/lua/std_string.i share/swig/${VERSION}/lua/std_string_view.i share/swig/${VERSION}/lua/std_unique_ptr.i +share/swig/${VERSION}/lua/std_unordered_map.i +share/swig/${VERSION}/lua/std_unordered_set.i share/swig/${VERSION}/lua/std_vector.i share/swig/${VERSION}/lua/stl.i share/swig/${VERSION}/lua/swigmove.i @@ -542,7 +558,6 @@ share/swig/${VERSION}/python/cstring.i share/swig/${VERSION}/python/cwstring.i share/swig/${VERSION}/python/director.swg share/swig/${VERSION}/python/director_py_mutex.swg -share/swig/${VERSION}/python/embed.i share/swig/${VERSION}/python/exception.i share/swig/${VERSION}/python/factory.i share/swig/${VERSION}/python/file.i @@ -571,6 +586,7 @@ share/swig/${VERSION}/python/python.swg share/swig/${VERSION}/python/pythonkw.swg share/swig/${VERSION}/python/pythreads.swg share/swig/${VERSION}/python/pytypemaps.swg +share/swig/${VERSION}/python/pytyping.swg share/swig/${VERSION}/python/pyuserdir.swg share/swig/${VERSION}/python/pywstrings.swg share/swig/${VERSION}/python/std_alloc.i @@ -727,6 +743,7 @@ share/swig/${VERSION}/scilab/ share/swig/${VERSION}/scilab/argcargv.i share/swig/${VERSION}/scilab/boost_shared_ptr.i share/swig/${VERSION}/scilab/carrays.i +share/swig/${VERSION}/scilab/cdata.i share/swig/${VERSION}/scilab/cmalloc.i share/swig/${VERSION}/scilab/cpointer.i share/swig/${VERSION}/scilab/exception.i @@ -799,6 +816,7 @@ share/swig/${VERSION}/std/std_common.i share/swig/${VERSION}/std/std_container.i share/swig/${VERSION}/std/std_deque.i share/swig/${VERSION}/std/std_except.i +share/swig/${VERSION}/std/std_function.i share/swig/${VERSION}/std/std_ios.i share/swig/${VERSION}/std/std_iostream.i share/swig/${VERSION}/std/std_list.i @@ -824,6 +842,7 @@ share/swig/${VERSION}/std/std_wsstream.i share/swig/${VERSION}/std/std_wstreambuf.i share/swig/${VERSION}/std/std_wstring.i share/swig/${VERSION}/std_except.i +share/swig/${VERSION}/std_function.i share/swig/${VERSION}/stdint.i share/swig/${VERSION}/stl.i share/swig/${VERSION}/swig.swg @@ -841,6 +860,7 @@ share/swig/${VERSION}/tcl/ share/swig/${VERSION}/tcl/argcargv.i share/swig/${VERSION}/tcl/attribute.i share/swig/${VERSION}/tcl/carrays.i +share/swig/${VERSION}/tcl/cdata.i share/swig/${VERSION}/tcl/cmalloc.i share/swig/${VERSION}/tcl/cpointer.i share/swig/${VERSION}/tcl/cstring.i

No comments:

Post a Comment