Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for cross platform bindeps #221

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ end
provides(Homebrew.HB, "hdf5", hdf5, os = :Darwin )
end

@compat @BinDeps.install Dict(:libhdf5 => :libhdf5)
@compat @BinDeps.install "HDF5" Dict(:libhdf5 => :libhdf5)
9 changes: 2 additions & 7 deletions src/plain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module HDF5

using Compat
using BinDeps, Compat

## Add methods to...
import Base: close, convert, done, dump, eltype, endof, flush, getindex,
Expand All @@ -26,12 +26,7 @@ typealias Hssize Int64
typealias Htri Cint # pseudo-boolean (negative if error)
typealias Haddr Uint64

### Load and initialize the HDF library ###
if isfile(joinpath(dirname(dirname(@__FILE__)),"deps","deps.jl"))
include("../deps/deps.jl")
else
error("HDF5 not properly installed. Please run Pkg.build(\"HDF5\")")
end
include_deps("HDF5")

function init_libhdf5()
status = ccall((:H5open, libhdf5), Herr, ())
Expand Down