Opened 10 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)
Change History (12)
comment:1 follow-up: 2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | takeshi@… added |
---|
Changed 10 years ago by luc-j-bourhis (Luc J. Bourhis)
comment:2 Changed 10 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 follow-up: 4 Changed 10 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 Changed 10 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 follow-up: 6 Changed 10 years ago by tenomoto (Takeshi Enomoto)
Where does dub install D packages?
comment:6 Changed 10 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 10 years ago by luc-j-bourhis (Luc J. Bourhis)
Portfile + Makefile
comment:7 Changed 10 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 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: | new → closed |
r140140. Thanks to Sean.
Thanks.
What you're doing in the patch phase should be changed to use the MacPorts
reinplace
command.