diff --git a/arrow.sh b/arrow.sh index db50706dc8..8024cebe31 100644 --- a/arrow.sh +++ b/arrow.sh @@ -1,6 +1,6 @@ package: arrow -version: "v20.0.0-alice1" -tag: apache-arrow-20.0.0-alice1 +version: "v24.0.0-alice" +tag: apache-arrow-24.0.0-alice1 source: https://github.com/alisw/arrow.git requires: - boost diff --git a/thrift.sh b/thrift.sh index 31d26c010d..89e5b75d5e 100644 --- a/thrift.sh +++ b/thrift.sh @@ -1,12 +1,13 @@ package: thrift version: "%(tag_basename)s" -tag: 0.12.0 +tag: v0.22.0 source: https://github.com/apache/thrift requires: - boost license: Apache-2.0 build_requires: - "GCC-Toolchain:(?!osx)" + - ninja - "OpenSSL:(?!osx)" - yacc-like prefer_system: ".*" @@ -20,43 +21,30 @@ case $ARCHITECTURE in OPENSSL_ROOT=$(brew --prefix openssl@3) ;; esac -rsync -a --delete --exclude="**/.git" $SOURCEDIR/ ./ -./bootstrap.sh -./configure --prefix ${INSTALLROOT} \ - --with-boost=${BOOST_ROOT} \ - --without-erlang \ - --without-haskell \ - --without-perl \ - --without-python \ - --without-java \ - --without-php \ - --without-php_extension \ - --without-ruby \ - --without-qt \ - --enable-libs \ - --disable-tests \ - --disable-plugin \ - --disable-tutorial \ - ${OPENSSL_ROOT:+--with-openssl=${OPENSSL_ROOT}} -make CPPFLAGS="-I${BOOST_ROOT}/include ${CPPFLAGS}" CXXFLAGS="-Wno-error -fPIC -O2" ${JOBS:+-j $JOBS} -make install + +cmake $SOURCEDIR -GNinja \ + -DBoost_DIR="${BOOST_ROOT}" \ + -DCMAKE_INSTALL_PREFIX="$INSTALLROOT" \ + -DBUILD_TESTING=OFF \ + -DBUILD_TUTORIALS=OFF \ + -DBUILD_COMPILER=ON \ + -DBUILD_CPP=ON \ + -DBUILD_C_GLIB=OFF \ + -DBUILD_JAVA=OFF \ + -DBUILD_JAVASCRIPT=OFF \ + -DBUILD_KOTLIN=OFF \ + -DBUILD_NODEJS=OFF \ + -DBUILD_PYTHON=OFF \ + -DWITH_LIBEVENT=OFF \ + -DWITH_ZLIB=ON \ + -DWITH_OPENSSL=ON +cmake --build . -- ${JOBS+-j $JOBS} install + +# install the compilation database so that we can post-check the code +cp compile_commands.json ${INSTALLROOT} # Modulefile MODULEDIR="$INSTALLROOT/etc/modulefiles" MODULEFILE="$MODULEDIR/$PKGNAME" -mkdir -p "$MODULEDIR" -cat > "$MODULEFILE" < etc/modulefiles/$PKGNAME