Created
February 4, 2017 07:32
-
-
Save googolmo/7a6345fadd864c3f80e6627b5f99f13a to your computer and use it in GitHub Desktop.
simple-obfs-brew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Documentation: http://docs.brew.sh/Formula-Cookbook.html | |
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class SimpleObfs < Formula | |
desc "Simple-obfs is a simple obfusacting tool, designed as plugin server of shadowsocks." | |
homepage "https://github.com/shadowsocks/simple-obfs" | |
url "https://github.com/shadowsocks/simple-obfs/archive/v0.0.2.tar.gz" | |
sha256 "cfd7b847be57401e1c664662781d41bc5b089b341232d94375ca4dd612b3852f" | |
# depends_on "cmake" => :build | |
depends_on "asciidoc" => :build | |
depends_on "xmlto" => :build | |
depends_on "libev" | |
depends_on "libsodium" | |
depends_on "openssl" | |
depends_on "pcre" | |
depends_on "udns" | |
depends_on "shadowsocks-libev" | |
def install | |
# ENV.deparallelize # if your formula fails when building in parallel | |
# Remove unrecognized options if warned by configure | |
system "./configure", "--prefix=#{prefix}", | |
"--disable-documentation" | |
system "make" | |
# system "cmake", ".", *std_cmake_args | |
system "make", "install" # if this fails, try separate make/make install steps | |
end | |
test do | |
# `test do` will create, run in and delete a temporary directory. | |
# | |
# This test will fail and we won't accept that! It's enough to just replace | |
# "false" with the main program this formula installs, but it'd be nice if you | |
# were more thorough. Run the test with `brew test simple_obfs`. Options passed | |
# to `brew install` such as `--HEAD` also need to be provided to `brew test`. | |
# | |
# The installed folder is not in the path, so use the entire path to any | |
# executables being tested: `system "#{bin}/program", "do", "something"`. | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment