upgpkg: ruby-parallel 1.21.0-1
* New upstream release. * Ensure generated documentation is reproducible.
This commit is contained in:
parent
095e04b129
commit
7374dbfd8e
1 changed files with 13 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
_gemname=parallel
|
_gemname=parallel
|
||||||
pkgname=ruby-$_gemname
|
pkgname=ruby-$_gemname
|
||||||
pkgver=1.20.2
|
pkgver=1.21.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Ruby: parallel processing made simple and fast"
|
pkgdesc="Ruby: parallel processing made simple and fast"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -15,7 +15,7 @@ makedepends=('ruby-rdoc')
|
||||||
options=('!emptydirs')
|
options=('!emptydirs')
|
||||||
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
||||||
noextract=("$_gemname-$pkgver.gem")
|
noextract=("$_gemname-$pkgver.gem")
|
||||||
b2sums=('28fad0b8428159b4a6eec8af4dcca7785fec749698257ebaebdf564673518d5ebcc4d85c4b99521d4f76d104136c823fe66c61ec081915f7450cef5710f80163')
|
b2sums=('bdb2234feb3b6b3935ffb334673d76bcd0714157fc96d56110b6584887a9227f76aca45e8bf2f449a713da8b19b781caf49fadaa6d020f634d06dae174f40271')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
||||||
|
@ -23,6 +23,7 @@ package() {
|
||||||
gem install \
|
gem install \
|
||||||
--verbose \
|
--verbose \
|
||||||
--ignore-dependencies \
|
--ignore-dependencies \
|
||||||
|
--no-document \
|
||||||
--no-user-install \
|
--no-user-install \
|
||||||
--install-dir "$pkgdir/$_gemdir" \
|
--install-dir "$pkgdir/$_gemdir" \
|
||||||
--bindir "$pkgdir/usr/bin" \
|
--bindir "$pkgdir/usr/bin" \
|
||||||
|
@ -36,4 +37,14 @@ package() {
|
||||||
cd "gems/$_gemname-$pkgver"
|
cd "gems/$_gemname-$pkgver"
|
||||||
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
mv -vt "$pkgdir/usr/share/licenses/$pkgname" MIT-LICENSE.txt
|
mv -vt "$pkgdir/usr/share/licenses/$pkgname" MIT-LICENSE.txt
|
||||||
|
|
||||||
|
# generate reproducible documentation
|
||||||
|
install -vd "$pkgdir/$_gemdir/doc/$_gemname-$pkgver"
|
||||||
|
cd "$pkgdir/$_gemdir/gems/$_gemname-$pkgver"
|
||||||
|
rdoc \
|
||||||
|
--format ri \
|
||||||
|
--output "$pkgdir$_gemdir/doc/$_gemname-$pkgver/ri" \
|
||||||
|
./lib
|
||||||
|
# delete unnecessary rdoc metadata file
|
||||||
|
rm -f "$pkgdir$_gemdir/doc/$_gemname-$pkgver/ri/created.rid"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue