mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
49 lines
1.1 KiB
Text
49 lines
1.1 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ruby-activesupport
|
|
_gemname=activesupport
|
|
pkgver=7.0.4
|
|
pkgrel=0
|
|
pkgdesc="Utility classes and Ruby extensions from Rails"
|
|
url="https://rubyonrails.org/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
ruby
|
|
ruby-concurrent-ruby
|
|
ruby-i18n
|
|
ruby-minitest
|
|
ruby-tzinfo
|
|
"
|
|
checkdepends="ruby-rake"
|
|
source="https://github.com/rails/rails/archive/v$pkgver/ruby-activesupport-$pkgver.tar.gz"
|
|
builddir="$srcdir/rails-$pkgver/activesupport"
|
|
options="!check" # FIXME
|
|
|
|
build() {
|
|
gem build $_gemname.gemspec
|
|
}
|
|
|
|
check() {
|
|
rake test
|
|
}
|
|
|
|
package() {
|
|
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
|
|
|
|
gem install \
|
|
--local \
|
|
--install-dir "$gemdir" \
|
|
--ignore-dependencies \
|
|
--no-document \
|
|
--verbose \
|
|
$_gemname
|
|
|
|
# Remove unnecessary files and rubbish...
|
|
cd "$gemdir"
|
|
rm -r cache build_info doc extensions plugins
|
|
}
|
|
|
|
sha512sums="
|
|
118035226054ad5083d2affde55a812917652491f82a9a578380a790770fdda3a14904f6de10f58651bbbab278aa23920b652aa1b34c71441d465c3b7b4be82c ruby-activesupport-7.0.4.tar.gz
|
|
"
|