Opened 9 years ago

Closed 9 years ago

#46017 closed submission (fixed)

dub: package and build management system for D

Reported by: luc-j-bourhis (Luc J. Bourhis) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: tenomoto (Takeshi Enomoto)
Port: dub

Description

MacPorts provides the dmd compiler for the D language. Since "dub" has become the official system to build and package for D (in the sense that it is developed alongside dmd, phobos, etc: here), it makes sense for MacPorts to feature it too.

Attachments (2)

Portfile (1.4 KB) - added by luc-j-bourhis (Luc J. Bourhis) 9 years ago.
dub.tgz (1.0 KB) - added by luc-j-bourhis (Luc J. Bourhis) 9 years ago.
Portfile + Makefile

Download all attachments as: .zip

Change History (12)

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

Cc: takeshi@… added

Thanks.

What you're doing in the patch phase should be changed to use the MacPorts reinplace command.

Changed 9 years ago by luc-j-bourhis (Luc J. Bourhis)

Attachment: Portfile added

comment:2 in reply to:  1 Changed 9 years ago by luc-j-bourhis (Luc J. Bourhis)

Replying to ryandesign@…:

What you're doing in the patch phase should be changed to use the MacPorts reinplace command.

Thanks. I uploaded a new Portfile with that change.

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks. Using "use_configure no" means you're also responsible for writing code to ensure the port is UsingTheRightCompiler and -arch flags, and adding a universal variant if possible.

comment:4 in reply to:  3 Changed 9 years ago by luc-j-bourhis (Luc J. Bourhis)

I see. I will try to replace the upstream build.sh by a proper MacPorts set up then.

comment:5 Changed 9 years ago by tenomoto (Takeshi Enomoto)

Where does dub install D packages?

comment:6 in reply to:  5 Changed 9 years ago by luc-j-bourhis (Luc J. Bourhis)

Replying to takeshi@…:

Where does dub install D packages?

In ~/.dub by default. This can be changed with the command-line option --cache, I have been told, but I have never tried.

Note that dub does also create files in /tmp

Changed 9 years ago by luc-j-bourhis (Luc J. Bourhis)

Attachment: dub.tgz added

Portfile + Makefile

comment:7 Changed 9 years ago by luc-j-bourhis (Luc J. Bourhis)

The upstream script build.sh I used in my first attempt added a spurious dependency on pkg-config. So I added a Makefile instead. Still no need for configuration I think. Especially dmd should correctly compile a 32- or 64-bit executable depending on the platform but I don't have a 32-bit MacOS system to test that it is indeed so. Moreover I would not know how to build an universal executable with dmd.

comment:8 Changed 9 years ago by zquestz (Josh Ellithorpe)

What is the status of this? I could use dub =)

comment:9 in reply to:  description Changed 9 years ago by shammah.chancellor@…

Replying to luc_j_bourhis@…:

MacPorts provides the dmd compiler for the D language. Since "dub" has become the official system to build and package for D (in the sense that it is developed alongside dmd, phobos, etc: here), it makes sense for MacPorts to feature it too.

What's the blocker here? Can this be merged? Dub is the package manager for dlang and is extremely useful.

comment:10 Changed 9 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

r140140. Thanks to Sean.

Note: See TracTickets for help on using tickets.