digitalmars.D - [dub] How to specify with dub a custom repository and build directory
- bioinfornatics (21/21) May 03 2018 Dear,
- rikki cattermole (4/32) May 03 2018 dub doesn't do platform specific installing.
- bioinfornatics (6/11) May 03 2018 Ok but as all D projects can be built only with dub, How can we
- rikki cattermole (5/17) May 03 2018 No.
Dear, As 99% of d project use dub as build and package manager. I would like to know how to use D libraries and D software shared to all user on linux architecture ? When I run: dub fetch <package name> A .dub directory is created into $HOME. I tried to provide another directory with --root parameter but that do not work. Currently I do not see how to build and install various D software at my works (HPC environment). To be able to use D in this environment I need to be able to set at least: - BUILD_DIR directory to perform build stage - DESTDIR directory to tell where the root "start", it is useful for staged build such as rpm do - PREFIX directory which will contains bin, include, lib(64), share directories - use installed D library by reading env var LIBRARY_PATH, PATH, CPATH Any highlight is welcome Thanks
May 03 2018
On 04/05/2018 3:27 AM, bioinfornatics wrote:Dear, As 99% of d project use dub as build and package manager. I would like to know how to use D libraries and D software shared to all user on linux architecture ? When I run: dub fetch <package name> A .dub directory is created into $HOME. I tried to provide another directory with --root parameter but that do not work. Currently I do not see how to build and install various D software at my works (HPC environment). To be able to use D in this environment I need to be able to set at least: - BUILD_DIR directory to perform build stage - DESTDIR directory to tell where the root "start", it is useful for staged build such as rpm do - PREFIX directory which will contains bin, include, lib(64), share directories - use installed D library by reading env var LIBRARY_PATH, PATH, CPATH Any highlight is welcome Thanksdub doesn't do platform specific installing. It just handles building. What you want is out of scope and has been discussed.
May 03 2018
On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote:On 04/05/2018 3:27 AM, bioinfornatics wrote:Ok but as all D projects can be built only with dub, How can we do ? should I to create and maintain a makefile or others for each D projects ? Thanks[...]dub doesn't do platform specific installing. It just handles building. What you want is out of scope and has been discussed.
May 03 2018
On 04/05/2018 3:44 AM, bioinfornatics wrote:On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote:Not all, and it should be pretty straight forward to do yourself.On 04/05/2018 3:27 AM, bioinfornatics wrote:Ok but as all D projects can be built only with dub, How can we do ?[...]dub doesn't do platform specific installing. It just handles building. What you want is out of scope and has been discussed.should I to create and maintain a makefile or others for each D projects ? ThanksNo. Build with the preferred build manager, package/install as required by your platform like you would do for any other language.
May 03 2018