mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Toolchain+Ports: Install host ruby into Local/ruby, not Local/$ARCH
Following the pattern for qemu, mold, and clang, we should install the host ruby required to build the ruby port into its own install tree rather than forcing it into the GNU compiler's bindir.
This commit is contained in:
parent
dcc0f299be
commit
809852aeb1
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/809852aeb1 Pull-request: https://github.com/SerenityOS/serenity/pull/14291 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/timschumi
2 changed files with 6 additions and 5 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
source version.sh
|
||||
|
||||
export PATH="${SERENITY_SOURCE_DIR}/Toolchain/Local/ruby/bin:${PATH}"
|
||||
|
||||
port=ruby
|
||||
version=${RUBY_VERSION}
|
||||
useconfigure="true"
|
||||
|
|
|
@ -5,9 +5,8 @@ set -e
|
|||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
ARCH=${ARCH:-"i686"}
|
||||
PREFIX_DIR="$DIR/Local/$ARCH"
|
||||
BUILD_DIR="$DIR/Build/$ARCH"
|
||||
PREFIX_DIR="$DIR/Local/ruby"
|
||||
BUILD_DIR="$DIR/Build/ruby"
|
||||
TARBALLS_DIR="$DIR/Tarballs"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
|
@ -42,9 +41,9 @@ if [ -z "$MAKEJOBS" ]; then
|
|||
fi
|
||||
|
||||
mkdir -p "${PREFIX_DIR}"
|
||||
mkdir -p "${BUILD_DIR}/ruby"
|
||||
mkdir -p "${BUILD_DIR}"
|
||||
|
||||
pushd "${BUILD_DIR}/ruby"
|
||||
pushd "${BUILD_DIR}"
|
||||
"${TARBALLS_DIR}"/ruby-"${RUBY_VERSION}"/configure --prefix="${PREFIX_DIR}"
|
||||
make -j "${MAKEJOBS}"
|
||||
make install
|
||||
|
|
Loading…
Reference in a new issue