Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-01 13:23:50 +0200
committerErich Eckner <git@eckner.net>2020-07-01 13:23:50 +0200
commit9661477d291abce39efcc88fb94251ce8a143134 (patch)
tree4b475a55ea692c534cb970996836c1c3bb9faf72
parentcb601de395654c8b6e3de64cc1cbcbb008026d9c (diff)
build-support: ruby-activesupport -> ruby-activesupport-bootstrap
-rw-r--r--build-support/ruby-activesupport-bootstrap/PKGBUILD (renamed from build-support/ruby-activesupport/PKGBUILD)18
1 files changed, 10 insertions, 8 deletions
diff --git a/build-support/ruby-activesupport/PKGBUILD b/build-support/ruby-activesupport-bootstrap/PKGBUILD
index be852cc1..045f4f1f 100644
--- a/build-support/ruby-activesupport/PKGBUILD
+++ b/build-support/ruby-activesupport-bootstrap/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: David Runge <dvzrv@archlinux.org>
_name=activesupport
-pkgname=ruby-activesupport
+pkgname=ruby-activesupport-bootstrap
+_pkgname=ruby-activesupport
pkgver=6.0.2.1
pkgrel=2
pkgdesc='A collection of utility classes and standard library extensions'
@@ -9,17 +10,18 @@ arch=('any')
url="https://github.com/rails/rails/tree/master/activesupport"
license=('MIT')
# bootstrap activesupport without i18n (circular dependency)
-depends=('ruby' 'ruby-concurrent' 'ruby-i18n' 'ruby-tzinfo' 'ruby-zeitwerk')
+depends=('ruby' 'ruby-concurrent' 'ruby-tzinfo' 'ruby-zeitwerk')
makedepends=('git' 'ruby-rake')
# TODO: package ruby-dalli
checkdepends=('ruby-minitest')
options=(!emptydirs)
-source=("${pkgname}-${pkgver}::git+https://github.com/rails/rails#tag=v${pkgver}?signed")
+source=("${_pkgname}-${pkgver}::git+https://github.com/rails/rails#tag=v${pkgver}?signed")
sha512sums=('SKIP')
validpgpkeys=('54FE550EA35E26D7C75362C1FC23B6D0F1EEE948') # Rafael Mendonça França <rafael.ufs@gmail.com>
+provides=("${_pkgname}=${pkgver}")
prepare() {
- cd "${pkgname}-${pkgver}/activesupport"
+ cd "${_pkgname}-${pkgver}/activesupport"
# we don't do version pinning
sed -r 's|~>|>=|g' -i "${_name}.gemspec"
# bootstrap activesupport (circular dependency on i18n)
@@ -27,19 +29,19 @@ prepare() {
}
build() {
- cd "$pkgname-$pkgver/activesupport"
+ cd "$_pkgname-$pkgver/activesupport"
gem build "${_name}.gemspec"
}
# bootstrap activesupport without tests (circular dependency on i18n)
# unspecified dependency on ruby-dalli: https://github.com/rails/rails/issues/38134
# check() {
-# cd "$pkgname-$pkgver/activesupport"
+# cd "$_pkgname-$pkgver/activesupport"
# rake test
# }
package() {
- cd "$pkgname-$pkgver/activesupport"
+ cd "$_pkgname-$pkgver/activesupport"
local _gemdir="$(gem env gemdir)"
gem install --ignore-dependencies \
--no-user-install \
@@ -47,7 +49,7 @@ package() {
-n "${pkgdir}/usr/bin" \
${_name}-${pkgver}.gem
install -vDm 644 MIT-LICENSE \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
cd "${pkgdir}/${_gemdir}"
rm -rvf cache gems/${_name}-${pkgver}/{ext,lib/*/*.so} \
extensions/*/*/${_name}-${pkgver}/{mkmf.log,gem_make.out} \