diff options
author | Jeremy Audet | 2018-02-04 11:38:02 -0500 |
---|---|---|
committer | Jeremy Audet | 2018-02-04 11:38:02 -0500 |
commit | 55a07bc9fa4e2534be897c432837364bacc29bb2 (patch) | |
tree | bee170985ee73e06a1c05bb20b71aa871095d914 | |
parent | 2a8322b33a97f194701818f43da4b610c1486c70 (diff) | |
download | aur-55a07bc9fa4e2534be897c432837364bacc29bb2.tar.gz |
Drop -rubygems flag, add --no-document flag
Do the following:
* Drop `-rubygems` from `ruby -rubygems -e 'pus Gem.default_dir'`. This
flag appears to no longer be supported.
* Drop `makedepends=(rubygems)`. This dependency now resolves to the
"ruby" package, and the error above suggests that rubygems is no
longer a separate package.
* Add `--no-document` to `gem install ...`. This fixes a `cannot load
such file -- rdoc/rdoc` error. It's also the approach taken by the
ruby-hpricot community package.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 10 insertions, 8 deletions
@@ -1,9 +1,7 @@ -# Generated by mksrcinfo v8 -# Sun Jul 2 16:35:03 UTC 2017 pkgbase = ruby-w3c_validators pkgdesc = A Ruby wrapper for the World Wide Web Consortium's online validation services. pkgver = 1.3.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/w3c-validators/w3c_validators arch = any license = GPL @@ -3,7 +3,7 @@ pkgname=ruby-w3c_validators _pkgname=w3c_validators pkgver=1.3.3 -pkgrel=1 +pkgrel=2 pkgdesc="A Ruby wrapper for the World Wide Web Consortium's online validation services." arch=(any) url='https://github.com/w3c-validators/w3c_validators' @@ -14,8 +14,12 @@ noextract=("${_pkgname}-${pkgver}.gem") sha256sums=('e096eb2ae75c70c392fee35c2088347da0200b0400613f5da4a45c7ca5e5eae1') package() { - cd "${srcdir}" - local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" - gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" \ - "${_pkgname}-${pkgver}.gem" -n "${pkgdir}/usr/bin" + local _gemdir="$(ruby -e 'puts Gem.default_dir')" + gem install \ + --no-user-install \ + --no-document \ + --ignore-dependencies \ + --install-dir "${pkgdir}${_gemdir}" \ + --bindir "${pkgdir}/usr/bin" \ + "${_pkgname}-${pkgver}.gem" } |