www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DUB 0.9.14/0.9.15 has been released

reply =?ISO-8859-15?Q?S=F6nke_Ludwig?= <sludwig outerproduct.org> writes:
Major changes:

 - Added support for multiple packages per directory, which is needed
for certain project structures (e.g. Derelict) - See the "subPackages"
field [1]

 - Dependencies can be specified per configuration now and optional
dependencies are supported

 - The version number format is now truly handled according to semantic
versioning [2]

 - Added "dub describe" to output a build description for the selected
configuration/platform - useful for external build tools/IDEs

 - A DUBPATH environment variable and custom package search paths are
supported for more possible development work-flows

 - Package versions of local packages are now inferred using "git
describe" if possible

 - Added some example projects for different use cases

 - A number of smaller changes and bug fixes


Full change log:

  https://github.com/rejectedsoftware/dub/blob/master/CHANGELOG.md


Download:

  http://registry.vibed.org/download


[1]: http://registry.vibed.org/package-format#standard-fields
[2]: http://semver.org/
Jun 19 2013
parent reply =?ISO-8859-15?Q?S=F6nke_Ludwig?= <sludwig outerproduct.org> writes:
Two additional notes:

 - There is a known bug that causes multiple DUB invocations to be
   required until all indirect dependencies are installed (watch out
   for a "There are still some actions to perform:" message). The
   current git master fixes that.

 - The "-property" switch has been disabled, considering that the
   general consensus of the property discussions was to allow dropping
   parenthesis on normal functions.
Jun 22 2013
parent reply =?ISO-8859-15?Q?S=F6nke_Ludwig?= <sludwig outerproduct.org> writes:
Am 22.06.2013 13:04, schrieb Snke Ludwig:
 Two additional notes:
 
  - There is a known bug that causes multiple DUB invocations to be
    required until all indirect dependencies are installed (watch out
    for a "There are still some actions to perform:" message). The
    current git master fixes that.
 
The fix is now contained in the latest release.
Jun 29 2013
next sibling parent reply "MrSmith" <mrsmith33 yandex.ru> writes:
Hello, is it possible to build package consisting of few 
subpackages using dub?
Or i need to build all subpackages manually?
Jul 01 2013
parent reply =?UTF-8?B?U8O2bmtlIEx1ZHdpZw==?= <sludwig outerproduct.org> writes:
Am 01.07.2013 11:43, schrieb MrSmith:
 Hello, is it possible to build package consisting of few subpackages
 using dub?
 Or i need to build all subpackages manually?
You should be able to do that by adding all sub-packages as dependencies in the parent package and then building the parent package as a library. Derelict is configured that way: https://github.com/aldacron/Derelict3/blob/master/package.json
Jul 01 2013
next sibling parent "MrSmith" <mrsmith33 yandex.ru> writes:
I have tried to build test project consisting of 2 libraries.
{
	"name": "project",
	"description": "An example project skeleton",
	"homepage": "http://example.org",
	"copyright": "Copyright © 2000, Your Name",
	"targetType": "library",
	"authors": [
		"Your Name"
	],
	"dependencies": {
		"project:lib1" : "~master",
		"project:lib2" : "~master"
	},
	"subPackages" : [
		{
			"name":"lib1",
			"targetPath": "lib",
			"targetType": "library",
			"sourcePaths": ["source/lib1"],
			"targetName": "app1"
		},
		{
			"name":"lib2",
			"targetPath": "lib",
			"dependencies": {"project:lib1": "~master"},
			"targetType": "library",
			"sourcePaths": ["source/lib2"],
			"targetName": "app1"
		}
	]
}

Here is error log
http://pastebin.com/MBhzeuwZ
Jul 01 2013
prev sibling parent "Mike Parker" <aldacron gmail.com> writes:
On Monday, 1 July 2013 at 17:10:19 UTC, Sönke Ludwig wrote:
 You should be able to do that by adding all sub-packages as 
 dependencies
 in the parent package and then building the parent package as a 
 library.
 Derelict is configured that way:
 https://github.com/aldacron/Derelict3/blob/master/package.json
And as it turns out, Derelict doesn't build when running 'dub build'. It works fine when used as a dependency in other projects, though. I'll post a bug report.
Jul 01 2013
prev sibling next sibling parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
I fixed the bug in your bug fix announcement :)

-Steve
Jul 01 2013
prev sibling parent Jordi Sayol <g.sayol yahoo.es> writes:
On 29/06/13 12:28, S=C3=B6nke Ludwig wrote:
 Am 22.06.2013 13:04, schrieb S=C3=B6nke Ludwig:
 Two additional notes:

  - There is a known bug that causes multiple DUB invocations to be
    required until all indirect dependencies are installed (watch out
    for a "There are still some actions to perform:" message). The
    current git master fixes that.
=20 The fix is now contained in the latest release. =20
dub v0.9.16 deb package released http://d-apt.sourceforge.net/ --=20 Jordi Sayol
Jul 01 2013