diff --git a/src/dependencies.jl b/src/dependencies.jl index 0968c0e..6efea37 100644 --- a/src/dependencies.jl +++ b/src/dependencies.jl @@ -6,6 +6,7 @@ if !isdefined(Base, :pairs) pairs(x) = (a => b for (a, b) in x) end + # A dependency provider, if successfully executed will satisfy the dependency abstract type DependencyProvider end @@ -612,10 +613,10 @@ function generate_steps(dep::LibraryDependency, h::Autotools, provider_opts) opts[:srcdir] = joinpath(opts[:srcdir],opts[:configure_subdir]) delete!(opts, :configure_subdir) end - pushfront!(opts[:include_dirs],includedir(dep)) - pushfront!(opts[:lib_dirs],libdir(dep)) - pushfront!(opts[:rpath_dirs],libdir(dep)) - pushfront!(opts[:pkg_config_dirs],joinpath(libdir(dep),"pkgconfig")) + pushfirst!(opts[:include_dirs],includedir(dep)) + pushfirst!(opts[:lib_dirs],libdir(dep)) + pushfirst!(opts[:rpath_dirs],libdir(dep)) + pushfirst!(opts[:pkg_config_dirs],joinpath(libdir(dep),"pkgconfig")) env = Dict{String,String}() env["PKG_CONFIG_PATH"] = join(opts[:pkg_config_dirs],":") delete!(opts,:pkg_config_dirs) @@ -649,7 +650,7 @@ function _find_library(dep::LibraryDependency; provider = Any) # Allow user to override installation path if haskey(opts,:installed_libpath) && isdir(opts[:installed_libpath]) - pushfront!(paths,opts[:installed_libpath]) + pushfirst!(paths,opts[:installed_libpath]) end ppaths = libdir(p,dep) diff --git a/test/REQUIRE b/test/REQUIRE index b00f9a4..43ccc1d 100644 --- a/test/REQUIRE +++ b/test/REQUIRE @@ -1,3 +1,4 @@ Cairo HttpParser GSL +Gumbo diff --git a/test/runtests.jl b/test/runtests.jl index b239e99..ed0c312 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -9,6 +9,12 @@ using HttpParser Pkg.build("GSL") using GSL + +Pkg.build("Gumbo") # Test Autotools code paths +using Gumbo + + + # PR 171 @test BinDeps.lower(nothing, nothing) === nothing