1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#!/bin/bash
#
# Copyright (C) 2020-2022 Ruby-GNOME Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
set -eux
export CCACHE_DIR=/ruby-gnome/.ccache
ccache -s
mkdir -p ruby-gnome.build
cd ruby-gnome.build
cp /ruby-gnome/Gemfile ./
bundle config set --local path vendor/bundle
MAKEFLAGS="-j$(nproc)" bundle install
for package in glib2 gobject-introspection; do
cp -a /ruby-gnome/${package} ./
pushd ${package}
rm -rf pkg
bundle exec rake gem
sudo env MAKEFLAGS="-j$(nproc)" gem install pkg/*.gem
popd
done
git clone --depth 1 https://github.com/apache/arrow.git
mkdir -p arrow.build
cmake \
-G Ninja \
-DARROW_ACERO=ON \
-DARROW_CSV=ON \
-DARROW_DATASET=ON \
-DARROW_FILESYSTEM=ON \
-DARROW_FLIGHT=ON \
-DARROW_FLIGHT_SQL=ON \
-DARROW_GANDIVA=ON \
-DARROW_GCS=ON \
-DARROW_HDFS=ON \
-DARROW_JSON=ON \
-DARROW_ORC=ON \
-DARROW_PARQUET=ON \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DProtobuf_SOURCE=BUNDLED \
-S arrow/cpp \
-B arrow.build/cpp
ninja -C arrow.build/cpp
ccache -s
sudo ninja -C arrow.build/cpp install
meson \
--prefix=/usr \
--libdir=lib \
--buildtype=debug \
arrow.build/c_glib \
arrow/c_glib
ninja -C arrow.build/c_glib
ccache -s
sudo ninja -C arrow.build/c_glib install
ninja -C arrow.build/c_glib test
|