Hi,
I'm trying to wrap a C library I've written. I want to use BinDeps to build
some source. The source is on our internal gitorious git server. A .tar.gz
of the code is available, but the URL to get that from just ends in the
branch name. So in my code I have
provides( Sources,
> URI("https://git0.rd.bbc.co.uk/misc/simpleexr/archive-tarball/master") ,
> simpleexr)
>
and later
GetSources(simpleexr)
Which throws an error:
> LoadError: I don't know how to unpack
> /home/andrewg/.julia/v0.4/EXRImages/deps/downloads/master
>
Is there a way to insert an intermediate step to change the name of the
downloaded file from master to something.tar.gz? (Or indeed is there a way
to use the filename of the file which is returned from the server, which
does have the correct extension? As I think about, this seems a bit like a
bug.)
I guess a bit more code context will be useful:
provides( Sources,
>> URI("https://git0.rd.bbc.co.uk/misc/simpleexr/archive-tarball/master") ,
>> simpleexr)
>
>
>> prefix = joinpath(BinDeps.depsdir(simpleexr),"usr")
>
> dldir = joinpath(BinDeps.depsdir(simpleexr),"downloads")
>
> provides(SimpleBuild,
>
> (@build_steps begin
>
> GetSources(simpleexr)
>
> @build_steps begin
>
> FileRule(joinpath(prefix,"lib","libsimpleexr.so"),
>> @build_steps begin
>
> `./build.sh`
>
> `cp libsimpleexr.so $prefix/lib`
>
> `cp libsimpleexr.so.1 $prefix/lib`
>
> `cp libsimpleexr.so.1.0 $prefix/lib`
>
> `cp libsimpleexr.h $prefix/include`
>
> end)
>
> end
>
> end
>
> )
>
> , simpleexr, os = :Linux)
>
>
I guess if Tim Holy sees this he'll suggest I use Images/ImageMagick to
read an exr image. If there's a way to access the pixel values stored in
the image before the gamma correction is applied I would gladly use it. The
last time I looked into it, I couldn't find any mention of this in
ImageMagick, though.