Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#34708 closed enhancement (fixed)

macports swig missing d language support

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

Description

after installing swig (2.07), there is no support for d. also port search swig yields a bunch of languages but not d.

D has been supported in swig since 2011/02/20, and the latest version from http://www.swig.org/ works fine with it.

Change History (8)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: kevin@… added
Owner: changed from macports-tickets@… to jwa@…

comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 10 years ago by michaelld (Michael Dickens)

Owner: changed from jwa@… to michaelld@…

comment:4 Changed 10 years ago by michaelld (Michael Dickens)

Are you suggesting using the "gdc" port for the D interface? I don't use D; no idea if MacPorts provides whatever SWIG needs. A little pointer would go a long way here, if this is still a request.

comment:5 in reply to:  4 Changed 10 years ago by cooljeanius (Eric Gallager)

Replying to michaelld@…:

Are you suggesting using the "gdc" port for the D interface? I don't use D; no idea if MacPorts provides whatever SWIG needs. A little pointer would go a long way here, if this is still a request.

The swig configure script checks for dmd, so I think that we would use the "dmd" port for the D interface.

comment:6 Changed 10 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Looks like phobos is needed instead of dmd. Seems to work nicely now. Fixed in r120785.

comment:7 in reply to:  6 Changed 10 years ago by cooljeanius (Eric Gallager)

Replying to michaelld@…:

Looks like phobos is needed instead of dmd. Seems to work nicely now. Fixed in r120785.

Well technically phobos depends on druntime which in turn depends on dmd, so it is not really "instead of"... I suppose in the context of what dependency gets explicitly added, "instead of" is correct though, due to how swig and its sub-ports work...

comment:8 Changed 10 years ago by michaelld (Michael Dickens)

If you try setting swig-d to depend solely on dmd, then SWIG (not the port) will fail configure for D because neither the D1 nor D2 compiler will work correctly. Ditto for druntime. SWIG is looking for compile files provided by both phobos and druntime; hence, swig-d must depend on phobos instead of dmd. That's how SWIG works; we can use whatever language we want to describe the relationship.

Note: See TracTickets for help on using tickets.