Unverified Commit 1d74ba7b authored by xoviat's avatar xoviat Committed by GitHub
Browse files

ENH: libraries: add a build_github function (#59)

* ENH: libraries: add a build_github function

* FIX: use name stamp

* MAINT: remove noop

* [tst:library_builders] add build_github
parent 8d76fe66
...@@ -73,6 +73,24 @@ function build_simple { ...@@ -73,6 +73,24 @@ function build_simple {
touch "${name}-stamp" touch "${name}-stamp"
} }
function build_github {
# Example: build_github fredrik-johansson/arb 2.11.1
local path=$1
local version=$2
local configure_args=${@:3}
local name=`basename "$path"`
local name_version="${name}-${version}"
if [ -e "${name}-stamp" ]; then
return
fi
fetch_unpack "https://github.com/${path}/archive/${version}.tar.gz"
(cd $name_version \
&& ./configure --prefix=$BUILD_PREFIX $configure_args \
&& make \
&& make install)
touch "${name}-stamp"
}
function build_openblas { function build_openblas {
if [ -e openblas-stamp ]; then return; fi if [ -e openblas-stamp ]; then return; fi
if [ -d "OpenBLAS" ]; then if [ -d "OpenBLAS" ]; then
......
...@@ -17,3 +17,4 @@ suppress build_openssl ...@@ -17,3 +17,4 @@ suppress build_openssl
suppress build_libwebp suppress build_libwebp
suppress build_szip suppress build_szip
suppress build_swig suppress build_swig
suppress build_github fredrik-johansson/arb 2.11.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment