Import code from internal repository to git

This commit is contained in:
Justine Tunney 2016-03-01 17:18:14 -05:00
commit 0ef0c933d2
2490 changed files with 281594 additions and 0 deletions

19
third_party/phantomjs/BUILD vendored Normal file
View file

@ -0,0 +1,19 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # BSD
genrule(
name = "phantomjs_bin",
srcs = ["@phantomjs//file"],
outs = ["phantomjs"],
cmd = " && ".join([
"IN=$$(pwd)/$(SRCS)",
"OUT=$$(pwd)/$@",
"TMP=$$(mktemp -d $${TMPDIR:-/tmp}/phantomjs.XXXXXXXX)",
"cd $$TMP",
"tar -xjf $$IN",
"cd phantomjs-*",
"mv bin/phantomjs $$OUT",
"rm -rf $$TMP",
]),
)