From 238356ec5918f8f6b83d490b69f43e83e05cb668 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 9 Oct 2022 14:32:03 +0200 Subject: community/ruby-hoe: building using ruby-stdlib instead of build-support --- build-support/ruby-hoe/PKGBUILD | 54 ----------------------------------------- community/ruby-hoe/PKGBUILD | 17 +++++++++++++ 2 files changed, 17 insertions(+), 54 deletions(-) delete mode 100644 build-support/ruby-hoe/PKGBUILD create mode 100644 community/ruby-hoe/PKGBUILD diff --git a/build-support/ruby-hoe/PKGBUILD b/build-support/ruby-hoe/PKGBUILD deleted file mode 100644 index 9c5811ab..00000000 --- a/build-support/ruby-hoe/PKGBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Maintainer: Levente Polyak -# Contributor: Bernhard Landauer -# Contributor: Alexsandr Pavlov - -_gemname=hoe -pkgname=ruby-${_gemname} -_gitcommit=c5bb62f78193e8dcb734d412c38791ce6f74773c -pkgver=3.20.0 -pkgrel=4 -pkgdesc='Hoe is a rake/rubygems helper for project Rakefiles' -url='https://www.zenspider.com/projects/hoe.html' -arch=('any') -license=('MIT') -depends=('ruby') -makedepends=('git' 'ruby-rdoc' 'ruby-rake') -checkdepends=('ruby-minitest') -options=('!emptydirs') -source=("git+https://github.com/seattlerb/hoe#commit=${_gitcommit}" - ruby27.patch) -sha512sums=('SKIP' - 'ec5e34b53fafc72fb6d9af3aa79dc1509632c390668a97db807d370759a6f0bdfe328933b648d35dedcc9662f94d6f1f99a2b982a037b49d354592a86f782a57') - -pkgver() { - cd ${_gemname} - grep 'VERSION = "' lib/hoe.rb|sed -E 's|.*"(.+)"|\1|' -} - -prepare() { - cd ${_gemname} - patch -p1 < ../ruby27.patch -} - -build() { - cd ${_gemname} - rake gem -} - -check() { - cd ${_gemname} - rake test -} - -package() { - cd ${_gemname} - local _gemdir="$(gem env gemdir)" - gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \ - -n "${pkgdir}/usr/bin" pkg/${_gemname}-${pkgver}.gem - install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/doc/${pkgname}" - install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/licenses/${pkgname}" - rm -rf cache gems/${_gemname}-${pkgver}/{ext,lib/*/*.so} \ - extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out} -} - -# vim: ts=2 sw=2 et: diff --git a/community/ruby-hoe/PKGBUILD b/community/ruby-hoe/PKGBUILD new file mode 100644 index 00000000..472071e2 --- /dev/null +++ b/community/ruby-hoe/PKGBUILD @@ -0,0 +1,17 @@ +# bootstrapped packages in first step from /opt/ruby- contain +# /opt/ruby-XXX/bin in the binaries in /usr/bin and they have +# wrong architecture strings in native library code +eval "$( + declare -f build | \ + sed ' + 3 i export RUBYLIB=/usr/lib/ruby/3.0.0/x86-linux + ' +)" +eval "$( + declare -f package | \ + sed ' + 3 i export RUBYLIB=/usr/lib/ruby/3.0.0/x86-linux + ' +)" + +unset check -- cgit v1.2.3-70-g09d2