diff options
author | Jeremy Audet | 2018-02-04 11:26:13 -0500 |
---|---|---|
committer | Jeremy Audet | 2018-02-04 11:26:13 -0500 |
commit | 1287cf9c9964a455c2911f396a5f9d2b5a3a45f1 (patch) | |
tree | 6206bcca4fb234eef6c4d9ffe19dec69c97045ce | |
parent | f26fbd23f735c1e21062bcfea2f15279946d7c60 (diff) | |
download | aur-1287cf9c9964a455c2911f396a5f9d2b5a3a45f1.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 | 5 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 4 insertions, 7 deletions
@@ -1,13 +1,10 @@ -# Generated by mksrcinfo v8 -# Sat May 13 19:06:26 UTC 2017 pkgbase = ruby-lumberjack pkgdesc = A simple, powerful, and fast logging implementation in Ruby. pkgver = 1.0.12 - pkgrel = 1 + pkgrel = 2 url = https://github.com/bdurand/lumberjack arch = any license = MIT - makedepends = rubygems noextract = lumberjack-1.0.12.gem options = !emptydirs source = https://rubygems.org/downloads/lumberjack-1.0.12.gem @@ -3,13 +3,12 @@ pkgname=ruby-lumberjack _pkgname="${pkgname#ruby-}" pkgver=1.0.12 -pkgrel=1 +pkgrel=2 pkgdesc='A simple, powerful, and fast logging implementation in Ruby.' arch=(any) url='https://github.com/bdurand/lumberjack' license=(MIT) depends=() -makedepends=(rubygems) options=(!emptydirs) source=("https://rubygems.org/downloads/${_pkgname}-${pkgver}.gem") noextract=("${_pkgname}-${pkgver}.gem") @@ -19,8 +18,9 @@ package() { # install gem HOME=/tmp gem install \ --no-user-install \ + --no-document \ --ignore-dependencies \ - --install-dir "${pkgdir}$(ruby -rubygems -e 'puts Gem.default_dir')" \ + --install-dir "${pkgdir}$(ruby -e 'puts Gem.default_dir')" \ --bindir "${pkgdir}/usr/bin" \ "${srcdir}/${_pkgname}-${pkgver}.gem" |