diff --git a/README.md b/README.md index 7a50218..0a0c749 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ # ZStd.jl [![Travis](https://travis-ci.org/ararslan/ZStd.jl.svg?branch=master)](https://travis-ci.org/ararslan/ZStd.jl) -[![AppVeyor](https://ci.appveyor.com/api/projects/status/qldyj0u2tafr3jbl/branch/master?svg=true)](https://ci.appveyor.com/project/ararslan/zstd-jl/branch/master) [![Coveralls](https://coveralls.io/repos/github/ararslan/ZStd.jl/badge.svg?branch=master)](https://coveralls.io/github/ararslan/ZStd.jl?branch=master) +[![Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip) A Julia wrapper for the [Zstandard](http://www.zstd.net) library for fast, real-time compression. + +Note that while Zstandard itself supports Windows, this package currently does not. +Support may be added in the future, provided I'm able to successfully cross-compile the requisite Windows DLLs. diff --git a/deps/build.jl b/deps/build.jl index 21eae4d..2d7ced9 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -1,25 +1,19 @@ using BinDeps -@BinDeps.setup +if is_windows() + error("The ZStd package does not currently support Windows.") +end + +BinDeps.@setup + +vers = v"1.1.0" -zstd = library_dependency("zstd", aliases=["libzstd", "libzstd.1"]) +zstd = library_dependency("zstd", aliases=["libzstd", "libzstd.$(vers.major)", "libzstd.$vers"]) if is_apple() using Homebrew provides(Homebrew.HB, "zstd", zstd, os=:Darwin) else - if isdir(srcdir(zstd)) - rm(srcdir(zstd), recursive=true) - mkdir(srcdir(zstd)) - end - - if isdir(BinDeps.downloadsdir(zstd)) - rm(BinDeps.downloadsdir(zstd), recursive=true) - mkdir(BinDeps.downloadsdir(zstd)) - end - - vers = v"1.0.0" - provides(Sources, URI("https://github.com/facebook/zstd/archive/v$vers.tar.gz"), zstd, unpacked_dir="zstd-$vers") @@ -35,4 +29,4 @@ else end), zstd) end -@BinDeps.install Dict(:zstd => :libzstd) +BinDeps.@install Dict(:zstd => :libzstd) diff --git a/test/runtests.jl b/test/runtests.jl index 540f4ec..8e88fdb 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -23,5 +23,5 @@ using Base.Test @test typeof(ZStd.maxcompressedsize(UInt(1))) == UInt @test ZStd.maxcompressedsize(UInt(1)) > UInt(0) - @test ZStd.ZSTD_VERSION == v"1.0.0" + @test ZStd.ZSTD_VERSION == v"1.1.0" end