From 9661477d291abce39efcc88fb94251ce8a143134 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Jul 2020 13:23:50 +0200 Subject: build-support: ruby-activesupport -> ruby-activesupport-bootstrap --- .../ruby-activesupport-bootstrap/PKGBUILD | 57 ++++++++++++++++++++++ build-support/ruby-activesupport/PKGBUILD | 55 --------------------- 2 files changed, 57 insertions(+), 55 deletions(-) create mode 100644 build-support/ruby-activesupport-bootstrap/PKGBUILD delete mode 100644 build-support/ruby-activesupport/PKGBUILD (limited to 'build-support') diff --git a/build-support/ruby-activesupport-bootstrap/PKGBUILD b/build-support/ruby-activesupport-bootstrap/PKGBUILD new file mode 100644 index 00000000..045f4f1f --- /dev/null +++ b/build-support/ruby-activesupport-bootstrap/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: David Runge + +_name=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' +arch=('any') +url="https://github.com/rails/rails/tree/master/activesupport" +license=('MIT') +# bootstrap activesupport without i18n (circular dependency) +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") +sha512sums=('SKIP') +validpgpkeys=('54FE550EA35E26D7C75362C1FC23B6D0F1EEE948') # Rafael Mendonça França +provides=("${_pkgname}=${pkgver}") + +prepare() { + cd "${_pkgname}-${pkgver}/activesupport" + # we don't do version pinning + sed -r 's|~>|>=|g' -i "${_name}.gemspec" + # bootstrap activesupport (circular dependency on i18n) + sed -r '/i18n/d' -i "${_name}.gemspec" +} + +build() { + 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" +# rake test +# } + +package() { + cd "$_pkgname-$pkgver/activesupport" + local _gemdir="$(gem env gemdir)" + gem install --ignore-dependencies \ + --no-user-install \ + -i "${pkgdir}/${_gemdir}" \ + -n "${pkgdir}/usr/bin" \ + ${_name}-${pkgver}.gem + install -vDm 644 MIT-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} \ + build_info extensions +} diff --git a/build-support/ruby-activesupport/PKGBUILD b/build-support/ruby-activesupport/PKGBUILD deleted file mode 100644 index be852cc1..00000000 --- a/build-support/ruby-activesupport/PKGBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Maintainer: David Runge - -_name=activesupport -pkgname=ruby-activesupport -pkgver=6.0.2.1 -pkgrel=2 -pkgdesc='A collection of utility classes and standard library extensions' -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') -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") -sha512sums=('SKIP') -validpgpkeys=('54FE550EA35E26D7C75362C1FC23B6D0F1EEE948') # Rafael Mendonça França - -prepare() { - cd "${pkgname}-${pkgver}/activesupport" - # we don't do version pinning - sed -r 's|~>|>=|g' -i "${_name}.gemspec" - # bootstrap activesupport (circular dependency on i18n) - sed -r '/i18n/d' -i "${_name}.gemspec" -} - -build() { - 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" -# rake test -# } - -package() { - cd "$pkgname-$pkgver/activesupport" - local _gemdir="$(gem env gemdir)" - gem install --ignore-dependencies \ - --no-user-install \ - -i "${pkgdir}/${_gemdir}" \ - -n "${pkgdir}/usr/bin" \ - ${_name}-${pkgver}.gem - install -vDm 644 MIT-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} \ - build_info extensions -} -- cgit v1.2.3-70-g09d2