HaxeFoundation/haxelib — pull request #138 by jgranick (2014-05-19 21:08:37+00:00)
Title: Add "-D mylib=1.0.0" instead of only "-D mylib" for haxelib path

When you run "haxelib path", it automatically defines the name of the library. In order to make this even more valuable, now that Haxe includes support for defines and values, I think that the value should automatically be set to the project version.

This means that you will not only be able to check for the existence of library...

````haxe
#if (mylib) trace ("Hello!"); #end
````

...but also check for the version:

````haxe
#if (mylib > "1.0.0") trace ("New release!"); #end
````