ayaports/user/ruby3.0-rake/APKBUILD

61 lines
1.5 KiB
Text
Raw Normal View History

2023-03-31 20:26:25 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2023-03-31 16:52:09 +00:00
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2023-03-31 20:26:25 +00:00
2023-03-31 16:52:09 +00:00
pkgname=ruby3.0-rake
_gemname=rake
# Keep version in sync with "Bundled gems" (https://stdgems.org) for the
# packaged Ruby version.
pkgver=13.0.6
2023-03-31 20:26:25 +00:00
pkgrel=1
2023-03-31 16:52:09 +00:00
pkgdesc="A Ruby task runner, inspired by make"
url="https://github.com/ruby/rake"
2023-08-11 19:49:05 +00:00
arch="noarch"
2023-03-31 16:52:09 +00:00
license="MIT"
depends="ruby3.0"
checkdepends="ruby3.0-minitest"
makedepends="ruby3.0-rdoc"
subpackages="$pkgname-doc"
source="https://github.com/ruby/rake/archive/v$pkgver/$_gemname-$pkgver.tar.gz"
builddir="$srcdir/$_gemname-$pkgver"
build() {
gem build $_gemname.gemspec
}
check() {
# FIXME: Fix test_signal_propagation_in_tests
ruby -Ilib -Itest -e "Dir.glob('./test/**/test_*.rb', &method(:require))" -- \
--exclude=test_signal_propagation_in_tests
}
package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
gem install \
--local \
--install-dir "$gemdir" \
--bindir "$pkgdir/usr/bin" \
--ignore-dependencies \
--document ri \
--verbose \
$_gemname
# Remove unnessecary files
cd "$gemdir"
rm -rf build_info cache extensions plugins
cd gems/rake-*
rm -rf doc ./*.rdoc MIT-LICENSE
}
doc() {
pkgdesc="$pkgdesc (ri docs)"
amove "$(ruby -e 'puts Gem.default_dir')"/doc
}
sha512sums="
1b438be96d8cedaf70e961b0bbd2217692b0b5537b2e1d5f599158e7da3e300cf6ab0c5f0c52fea89be0beb675effbbf563d24e55c84fb673b4982013355e03c rake-13.0.6.tar.gz
"