Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arrow.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
62 changes: 25 additions & 37 deletions thrift.sh
Original file line number Diff line number Diff line change
@@ -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
Comment thread
aalkin marked this conversation as resolved.
license: Apache-2.0
build_requires:
- "GCC-Toolchain:(?!osx)"
Comment thread
aalkin marked this conversation as resolved.
- ninja
- "OpenSSL:(?!osx)"
- yacc-like
prefer_system: ".*"
Expand All @@ -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" <<EoF
#%Module1.0
proc ModulesHelp { } {
global version
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
}
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
# Dependencies
module load BASE/1.0 ${GCC_TOOLCHAIN_ROOT:+GCC-Toolchain/$GCC_TOOLCHAIN_VERSION-$GCC_TOOLCHAIN_REVISION}
# Our environment
set BASEDIR \$::env(BASEDIR)
prepend-path PATH \$BASEDIR/$PKGNAME/\$version/bin
prepend-path LD_LIBRARY_PATH \$BASEDIR/$PKGNAME/\$version/lib
EoF
mkdir -p etc/modulefiles
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
Loading