Re: [MacPorts] #1800: swig: patch for swig runtime support
#1800: swig: patch for swig runtime support --------------------------+-------------------- Reporter: lars@… | Owner: kvv@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.0 Resolution: remind | Keywords: Port: swig | --------------------------+-------------------- Changes (by ryandesign@…): * port: => swig Old description:
SWIG has a runtime. The runtime is necessary for bindings that span multiple compilation units (.i files), but share definitions. For simpler projects, it is optional.
The current Portfile does not support the swig runtime. Again the subversion bindings need the swig runtime.
Attached are two patches. Patch 1 builds and installs the runtime by default, Patch 2 creates a variant.
I prefer Patch 1 and believe installing the SWIG runtime will do more good than harm.
Patch 1:
Index: Portfile =============================================================== ==== RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/devel/swig/Portfile,v retrieving revision 1.5 diff -u -r1.5 Portfile --- Portfile 5 Apr 2004 02:44:18 -0000 1.5 +++ Portfile 29 Apr 2004 18:37:15 -0000 @@ -14,4 +14,5 @@ checksums md5 88ff5b99be3eafebb8a6e20f4f986c04 worksrcdir SWIG-1.3.21 patchfiles patch-Makefile.in -build.target swig +build.target swig runtime +destroot.target install install-runtime
Patch 2 with runtime variant:
Index: Portfile =============================================================== ==== RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/devel/swig/Portfile,v retrieving revision 1.5 diff -u -r1.5 Portfile --- Portfile 5 Apr 2004 02:44:18 -0000 1.5 +++ Portfile 29 Apr 2004 19:16:19 -0000 @@ -15,3 +15,8 @@ worksrcdir SWIG-1.3.21 patchfiles patch-Makefile.in build.target swig + +variant runtime { + build.target-append runtime + destroot.target-append install-runtime +}
New description: SWIG has a runtime. The runtime is necessary for bindings that span multiple compilation units (.i files), but share definitions. For simpler projects, it is optional. The current Portfile does not support the swig runtime. Again the subversion bindings need the swig runtime. Attached are two patches. Patch 1 builds and installs the runtime by default, Patch 2 creates a variant. I prefer Patch 1 and believe installing the SWIG runtime will do more good than harm. Patch 1: {{{ Index: Portfile =================================================================== RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/devel/swig/Portfile,v retrieving revision 1.5 diff -u -r1.5 Portfile --- Portfile 5 Apr 2004 02:44:18 -0000 1.5 +++ Portfile 29 Apr 2004 18:37:15 -0000 @@ -14,4 +14,5 @@ checksums md5 88ff5b99be3eafebb8a6e20f4f986c04 worksrcdir SWIG-1.3.21 patchfiles patch-Makefile.in -build.target swig +build.target swig runtime +destroot.target install install-runtime }}} Patch 2 with runtime variant: {{{ Index: Portfile =================================================================== RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/devel/swig/Portfile,v retrieving revision 1.5 diff -u -r1.5 Portfile --- Portfile 5 Apr 2004 02:44:18 -0000 1.5 +++ Portfile 29 Apr 2004 19:16:19 -0000 @@ -15,3 +15,8 @@ worksrcdir SWIG-1.3.21 patchfiles patch-Makefile.in build.target swig + +variant runtime { + build.target-append runtime + destroot.target-append install-runtime +} }}} -- -- Ticket URL: <https://trac.macports.org/ticket/1800#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts