@@ -2166,46 +2166,6 @@ fi
21662166 BREWDIR=` brew --prefix`
21672167 PKG_CFLAGS=" -I${BREWDIR} /opt/libgit2/include"
21682168 PKG_LIBS=" -L${BREWDIR} /opt/libgit2/lib ${PKG_LIBS} "
2169- elif test -z " ${DISABLE_AUTOBREW} " ; then
2170- # Try to download a static build of libgit2 and use that.
2171- bottle_ver=" 1.8.1"
2172- bottle_sha256=" 9419deece3c3b7bec2ed8ed1caa5f4a3f3f1b049a6d17b0a75b2e05128c10fdf"
2173- bottle_url=" https://github.com/autobrew/bundler/releases/download"
2174- bottle=" ${bottle_url} /libgit2-${bottle_ver} /libgit2-${bottle_ver} -universal.tar.xz"
2175-
2176- # Download the bottle
2177- echo " Download autobrew bundle $( basename ${bottle} ) "
2178- curl -sSL $bottle -o libs.tar.xz
2179-
2180- # Verify the checksum of the downloaded bottle
2181- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking SHA256 checksum of downloaded $( basename ${bottle} ) " >&5
2182- printf %s " checking SHA256 checksum of downloaded $( basename ${bottle} ) ... " >&6 ; }
2183- : ${bottle_download_sha256=`openssl sha256 libs.tar.xz | sed -e ' s:.*= ::' `}
2184- if test " x$bottle_download_sha256 " ! = " x$bottle_sha256 " ; then
2185- { { printf " %s\n" " $as_me :${as_lineno-$LINENO } : error: in '$ac_pwd ':" >&5
2186- printf " %s\n" " $as_me : error: in '$ac_pwd ':" >&2 ; }
2187- as_fn_error $? " The SHA256 checksum of $( basename ${bottle} ) didn't match
2188- See 'config.log' for more details" " $LINENO " 5; }
2189- fi
2190- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
2191- printf " %s\n" " yes" >&6 ; }
2192-
2193- # General setup
2194- BREWDIR=" $PWD /.deps"
2195- mkdir -p $BREWDIR
2196- tar -xf libs.tar.xz --strip 1 -C $BREWDIR
2197- rm -f libs.tar.xz
2198-
2199- PKG_CFLAGS=" -I${BREWDIR} /include"
2200- PKG_LIBS=" -L${BREWDIR} /lib ${PKG_LIBS} -lssh2 -lcrypto -lcurl -lz -liconv -framework Security"
2201-
2202- # Prevent linking against other libs in /usr/local/lib
2203- for FILE in $BREWDIR /lib/* .a; do
2204- BASENAME=$( basename $FILE )
2205- LIBNAME=$( echo " ${BASENAME% .* } " | cut -c4-)
2206- cp -f $FILE $BREWDIR /lib/libbrew$LIBNAME .a
2207- PKG_LIBS=$( echo $PKG_LIBS | sed " s/-l$LIBNAME /-lbrew$LIBNAME /g" )
2208- done
22092169 fi
22102170 ;;
22112171 esac
0 commit comments