Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Commit

Permalink
Remove Windows support (hopefully temporarily) (#6)
Browse files Browse the repository at this point in the history
* Remove Windows support (hopefully temporarily)

* Bump test along with version
  • Loading branch information
ararslan committed Oct 26, 2016
1 parent 907485c commit 7698524
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
5 changes: 4 additions & 1 deletion 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.
24 changes: 9 additions & 15 deletions 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")

Expand All @@ -35,4 +29,4 @@ else
end), zstd)
end

@BinDeps.install Dict(:zstd => :libzstd)
BinDeps.@install Dict(:zstd => :libzstd)
2 changes: 1 addition & 1 deletion test/runtests.jl
Expand Up @@ -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

0 comments on commit 7698524

Please sign in to comment.