Last active
August 29, 2015 14:02
-
-
Save porterjamesj/689c9d886707131edd7b to your computer and use it in GitHub Desktop.
BinDeps :(
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
using BinDeps | |
@BinDeps.setup | |
gumbo = library_dependency("libgumbo") | |
provides(Sources, | |
URI("https://github.com/google/gumbo-parser/archive/master.zip"), | |
gumbo, | |
unpacked_dir="gumbo-parser-master") | |
provides(BuildProcess, | |
Autotools(), | |
gumbo) | |
@BinDeps.install [:gumbo => :gumbo] | |
# this errors with: | |
# ================================[ ERROR: Gumbo ]================================ | |
# | |
# could not spawn setenv(`/Users/james/.julia/v0.3/Gumbo/deps/src/gumbo-parser-master/configure --prefix=/Users/james/.julia/v0.3/Gumbo/deps/usr`,Union(UTF8String,ASCIIString)["CLICOLOR=1","__CHECKFIX1436934=1","PATH=/Users/james/.julia/v0.3/Gumbo/deps/usr/bin:/Users/james/.opam/system/bin:/Users/james/.cask/bin:/Users/james/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/sbin:/Users/james/meme/bin:/Users/james/julia","EDITOR=zile","PWD=/Users/james/scratch/haskell_course","OS_AUTH_URL=https://api.opensciencedatacloud.org:5000/sullivan/v2.0/","VIRTUALENVWRAPPER_PROJECT_FILENAME=.project","DISPLAY=/tmp/launch-CYcJjU/org.macosforge.xquartz:0","TERM_PROGRAM=iTerm.app","HISTSIZE=20000","SHELL=/bin/bash","__CF_USER_TEXT_ENCODING=0x1F5:0:0","COLORFGBG=11;15","OS_USERNAME=jporter","CAML_LD_LIBRARY_PATH=/Users/james/.opam/system/lib/stublibs:/usr/local/lib/ocaml/stublibs","OCAML_TOPLEVEL_PATH=/Users/james/.opam/system/lib/toplevel","TMPDIR=/var/folders/sm/871p4n1j6853dr3kcqzgvz1c0000gn/T/","MANPATH=:/Users/james/.opam/system/man","PERL5LIB=/Users/james/.opam/system/lib/perl5:","CPPFLAGS= -I/Users/james/.julia/v0.3/Gumbo/deps/usr/include","LANG=en_US.UTF-8","LDFLAGS= -L/Users/james/.julia/v0.3/Gumbo/deps/usr/lib -Wl,-rpath -Wl,/Users/james/.julia/v0.3/Gumbo/deps/usr/lib","ITERM_PROFILE=Default","SHLVL=1","LOGNAME=james","SSH_AUTH_SOCK=/tmp/launch-b70gr5/Listeners","OLDPWD=/Users/james/projects/virtualenvwrapper.el","PKG_CONFIG_PATH=/Users/james/.julia/v0.3/Gumbo/deps/usr/lib/pkgconfig","_=/Users/james/julia/julia","Apple_PubSub_Socket_Render=/tmp/launch-JAH1OP/Render","USER=james","PROMPT_COMMAND=history -a; history -c; history -r; ","VIRTUALENVWRAPPER_HOOK_DIR=/Users/james/.virtualenvs","ITERM_SESSION_ID=w0t0p0","TERM=xterm-256color","HOME=/Users/james","WORKON_HOME=/Users/james/.virtualenvs","VIRTUALENVWRAPPER_LOG_DIR=/Users/james/.virtualenvs","OS_TENANT_NAME=jporter"]): no such file or directory (ENOENT) | |
# while loading /Users/james/.julia/v0.3/Gumbo/deps/build.jl, in expression starting on line 31 |
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
using BinDeps | |
@BinDeps.setup | |
gumbo = library_dependency("libgumbo") | |
provides(Sources, | |
URI("https://github.com/google/gumbo-parser/archive/master.zip"), | |
gumbo, | |
unpacked_dir="gumbo-parser-master") | |
prefix=joinpath(BinDeps.depsdir(gumbo),"usr") | |
provides(BuildProcess, | |
(@build_steps begin | |
GetSources(gumbo) | |
@build_steps begin | |
ChangeDirectory(joinpath(BinDeps.depsdir(gumbo), | |
"src","gumbo-parser-master")) | |
FileRule("configure",@build_steps begin | |
`chmod u+x autogen.sh` | |
`./autogen.sh` | |
end) | |
FileRule(joinpath(BinDeps.depsdir(gumbo), | |
"usr","lib","libgumbo.dylib"), @build_steps begin | |
`./configure --prefix=$prefix` | |
`make` | |
`make install` | |
end) | |
end | |
end), gumbo, os = :Unix) | |
@BinDeps.install [:gumbo => :gumbo] | |
# this builds the library successfully, but is not cross-platform and doesn't result in the appropriate incatations in deps/deps.jl |
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
using BinDeps | |
@BinDeps.setup | |
gumbo = library_dependency("libgumbo") | |
provides(Sources, | |
URI("http://jamesporter.me/static/julia/gumbo-1.0.tar.gz"), | |
gumbo, | |
unpacked_dir="gumbo-1.0") | |
provides(BuildProcess, | |
Autotools(), | |
gumbo) | |
@BinDeps.install [:gumbo => :gumbo] | |
# this errors out with: | |
# ================================[ ERROR: Gumbo ]================================ | |
# | |
# File String[] was not created successfully (Tried to run SynchronousStepCollection({setenv(`make -j8`,Union(UTF8String,ASCIIString)["CLICOLOR=1","__CHECKFIX1436934=1","PATH=/Users/james/.julia/v0.3/Gumbo/deps/usr/bin:/Users/james/.julia/v0.3/Homebrew/deps/usr/bin:/Users/james/.julia/v0.3/Homebrew/deps/usr/sbin:/Users/james/.opam/system/bin:/Users/james/.cask/bin:/Users/james/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/sbin:/Users/james/meme/bin:/Users/james/julia","EDITOR=zile","PWD=/Users/james/scratch/haskell_course","OS_AUTH_URL=https://api.opensciencedatacloud.org:5000/sullivan/v2.0/","VIRTUALENVWRAPPER_PROJECT_FILENAME=.project","DISPLAY=/tmp/launch-CYcJjU/org.macosforge.xquartz:0","TERM_PROGRAM=iTerm.app","HISTSIZE=20000","SHELL=/bin/bash","__CF_USER_TEXT_ENCODING=0x1F5:0:0","COLORFGBG=11;15","OS_USERNAME=jporter","CAML_LD_LIBRARY_PATH=/Users/james/.opam/system/lib/stublibs:/usr/local/lib/ocaml/stublibs","OCAML_TOPLEVEL_PATH=/Users/james/.opam/system/lib/toplevel","TMPDIR=/var/folders/sm/871p4n1j6853dr3kcqzgvz1c0000gn/T/","MANPATH=:/Users/james/.opam/system/man","HOMEBREW_CACHE=/Users/james/Library/Caches/Homebrew.jl/","PERL5LIB=/Users/james/.opam/system/lib/perl5:","LANG=en_US.UTF-8","ITERM_PROFILE=Default","SHLVL=1","LOGNAME=james","SSH_AUTH_SOCK=/tmp/launch-b70gr5/Listeners","OLDPWD=/Users/james/projects/virtualenvwrapper.el","PKG_CONFIG_PATH=/Users/james/.julia/v0.3/Gumbo/deps/usr/lib/pkgconfig","_=/Users/james/julia/julia","Apple_PubSub_Socket_Render=/tmp/launch-JAH1OP/Render","USER=james","PROMPT_COMMAND=history -a; history -c; history -r; ","VIRTUALENVWRAPPER_HOOK_DIR=/Users/james/.virtualenvs","ITERM_SESSION_ID=w0t0p0","TERM=xterm-256color","HOME=/Users/james","WORKON_HOME=/Users/james/.virtualenvs","VIRTUALENVWRAPPER_LOG_DIR=/Users/james/.virtualenvs","OS_TENANT_NAME=jporter"])},"","") ) | |
# while loading /Users/james/.julia/v0.3/Gumbo/deps/build.jl, in expression starting on line 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment