Opened 10 years ago

Last modified 3 years ago

#45562 new enhancement

swig 3.0.2 port lacks necessary JavaScript files

Reported by: mhucka@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: nshmyrev@…, cooljeanius (Eric Gallager)
Port: swig

Description

MacPorts 2.3.2, freshly updated as of right now, provides a port of SWIG 3.0.2. The swig binary installed reports that it supports JavaScript, but the installation lacks the necessary JavaScript support files, and there is no "swig-javascript" port or equivalent (such as there is for Java in the form of swig-java, for example).

Here is what swig -help reports:

26 clarity [svn/libsbml/build]> /opt/local/bin/swig -help
Target Language Options
     -allegrocl      - Generate ALLEGROCL wrappers
     -chicken        - Generate CHICKEN wrappers
     -clisp          - Generate CLISP wrappers
     -cffi           - Generate CFFI wrappers
     -csharp         - Generate C# wrappers
     -d              - Generate D wrappers
     -go             - Generate Go wrappers
     -guile          - Generate Guile wrappers
     -java           - Generate Java wrappers
     -javascript     - Generate Javascript wrappers
     -lua            - Generate Lua wrappers
     -modula3        - Generate Modula 3 wrappers
     -mzscheme       - Generate Mzscheme wrappers
     -ocaml          - Generate Ocaml wrappers
     -octave         - Generate Octave wrappers
     -perl           - Generate Perl wrappers
     -php            - Generate PHP wrappers
     -pike           - Generate Pike wrappers
     -python         - Generate Python wrappers
     -r              - Generate R (aka GNU S) wrappers
     -ruby           - Generate Ruby wrappers
     -sexp           - Generate Lisp S-Expressions wrappers
     -tcl            - Generate Tcl wrappers
     -uffi           - Generate Common Lisp / UFFI wrappers
     -xml            - Generate XML wrappers

Searching in /opt/local/share/swig reveals none of the necessary JavaScript files are installed by default. Doing port search swig | grep -i javascript does not report any ports (nor does a visual inspection of the results of a plain port search swig).

It appears the root problem is simply that there's no swig-javascript port to be had. May I put in a request for one?

Change History (5)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to michaelld@…
Port: swig added
Type: requestenhancement
Version: 2.3.2

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers swig).

comment:2 Changed 10 years ago by mhucka@…

Oh, so sorry! I'll try to remember that. Thanks.

comment:3 Changed 9 years ago by nshmyrev@…

Cc: nshmyrev@… added

Cc Me!

comment:4 Changed 6 years ago by rurban (Reini Urban)

Not only the javascript *.swg files are missing, all support files for all languages but python and perl5 are missing.

ls /opt/local/share/swig/3.0.12/

I'd need it for csharp, java, ... The workaround is to copy the relevant *.swg files into such a subdir from the upstream git repo.

comment:5 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.