Am 10.09.2015 um 22:44 schröbte Reuben Thomas:
> A user just reported that my cw rock needs automake to build. I'm not sure
> why this hadn't struck me before!
>
> The problem, within luarocks, is that there's no way to express this
> dependency.
>
> Is there any standard way to address these sort of out-of-band build
> dependencies? (I can't find anything in the docs.)
>
> I guess it would be a start to be able to depend on the existence of a
> binary in PATH, and a very close second to have a mechanism for specifying
> ways to extract particular binaries' versions and depend on versions as for
> libraries.
>
> Apologies if I've overlooked something; I have a feeling I must have…

You can specify binaries as external dependencies. E.g. I have the 
following in one of my recent projects:

     external_dependencies = {
       FLTK = {
         program = "fltk-config"
       }
     }
     build = {
       type = "make",
       variables = {
         FLTK_CONFIG = "$(FLTK_BINDIR)/fltk-config",
         -- ...
       }
     }

and I run `${FLTK_CONFIG} --cxxflags` in my Makefile.
The binaries aren't looked up in PATH though, just the usual `/usr/bin` 
and `/usr/local/bin` from `external_deps_dirs`. Of course you can set 
`FLTK_DIR`/`FLTK_BINDIR` on the command line, too. Extracting some 
version number is probably not possible in general.


Philipp




------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to