Opened 20 years ago
Last modified 9 years ago
#1800 closed enhancement
swig: patch for swig runtime support — at Initial Version
Reported by: | lars@… | Owned by: | darwinports-bugs@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: | swig |
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 +}