mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
ruby: use global gemrc to make --user-install the default (#8628)
Fixes #102 gemrc template file "borrowed" from Arch Linux
This commit is contained in:
5
dev-lang/ruby/additional-files/gemrc
Normal file
5
dev-lang/ruby/additional-files/gemrc
Normal file
@@ -0,0 +1,5 @@
|
||||
# Read about the gemrc format at http://guides.rubygems.org/command-reference/#gem-environment
|
||||
|
||||
# --user-install is used to install to $HOME/.gem by default since we want to separate
|
||||
# pkgman installed gems and gem installed gems
|
||||
gem: --user-install
|
||||
@@ -13,15 +13,18 @@ HOMEPAGE="https://www.ruby-lang.org/"
|
||||
COPYRIGHT="1993-2021 Yukihiro Matsumoto"
|
||||
LICENSE="Ruby
|
||||
BSD (3-clause)"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="https://cache.ruby-lang.org/pub/ruby/2.7/ruby-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="bffa8aec9da392eda98f1c561071bb6e71d217d541c617fc6e3282d79f4e7d48"
|
||||
SOURCE_DIR="ruby-$portVersion"
|
||||
PATCHES="ruby-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="gemrc"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="settings/gemrc keep-old"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
@@ -47,6 +50,7 @@ REQUIRES="
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libedit$secondaryArchSuffix
|
||||
lib:libffi$secondaryArchSuffix
|
||||
lib:libgdbm$secondaryArchSuffix
|
||||
lib:libgmp$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libncursesw$secondaryArchSuffix
|
||||
@@ -67,6 +71,7 @@ BUILD_REQUIRES="
|
||||
devel:libcrypto$secondaryArchSuffix
|
||||
devel:libedit$secondaryArchSuffix
|
||||
devel:libffi$secondaryArchSuffix
|
||||
devel:libgdbm$secondaryArchSuffix
|
||||
devel:libgmp$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libncursesw$secondaryArchSuffix
|
||||
@@ -109,7 +114,8 @@ BUILD()
|
||||
--enable-shared \
|
||||
--disable-silent-rules \
|
||||
--enable-debug-env \
|
||||
--bindir=$prefix/bin
|
||||
--bindir=$prefix/bin \
|
||||
--with-dbm-type=gdbm_compat
|
||||
|
||||
# The build process needs to run ruby, and without this it fails to find
|
||||
# libruby.so.
|
||||
@@ -124,6 +130,8 @@ INSTALL()
|
||||
prepareInstalledDevelLib libruby
|
||||
fixPkgconfig
|
||||
packageEntries devel $developDir
|
||||
|
||||
cp -f $portDir/additional-files/gemrc $settingsDir/gemrc
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user