Package Details: ruby-gettext 3.2.9-2

Git Clone URL: https://aur.archlinux.org/ruby-gettext.git (read-only, click to copy)
Package Base: ruby-gettext
Description: Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.
Upstream URL: https://github.com/ruby-gettext/gettext
Licenses: ruby, LGPL3
Submitter: vali
Maintainer: dviktor
Last Packager: dviktor
Votes: 32
Popularity: 0.001452
First Submitted: 2013-02-18 02:34
Last Updated: 2020-01-02 20:53

Latest Comments

bastelfreak commented on 2020-01-18 12:20

Hi, I made some updates. Upstream dropped the irb dependency so we can finally execute tests. I also updated it to the latest 3.3.2 release:

# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: tim@bastelfreak.de

_gemname='gettext'
pkgname="ruby-${_gemname}"
pkgver=3.3.2
pkgrel=2
pkgdesc='Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.'
arch=(any)
url="https://github.com/ruby-gettext/gettext"
license=('RUBY' 'LGPL3')
makedepends=('ruby-rdoc' 'ruby-yard' 'ruby-bundler')
depends=('ruby' 'ruby-locale' 'ruby-text')
checkdepends=('ruby-test-unit' 'ruby-rake' 'ruby-test-unit-rr')
source=("https://github.com/ruby-gettext/gettext/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
options=("!emptydirs")
sha512sums=('7d2818af2d622a46609103493cb5e82856e1a9f3ae67fad824bcbc2e11fca65040021554515a476e3a079a02d0636e9fe3afa706242795d0fb1037e8f7b374a6')

# update the gemspec to allow newer versions of rake
# remove deprecated options from the gemspec
prepare() {
  cd "${_gemname}-${pkgver}"

  sed --in-place 's/s.license.*/s.licenses = ["Ruby", "LGPL-3.0+"]/' "${_gemname}.gemspec"
  sed --in-place '/test\/unit\/notify/d' test/run-test.rb
  sed --in-place '/s.add_development_dependency("test-unit-notify")/d' "${_gemname}.gemspec"
}


build() {
  cd "${_gemname}-${pkgver}"

  gem build "${_gemname}.gemspec"
}

# tests are currently broken upstream
check() {
  cd "${_gemname}-${pkgver}"
  rake test
}

package() {
  cd "${_gemname}-${pkgver}"

  local _gemdir="$(gem env gemdir)"
  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"

  rm -rf "${pkgdir}/${_gemdir}/cache"
}

bastelfreak commented on 2020-01-01 20:52

Hi, I updated the PKGBUILD to built properly from source:

_gemname='gettext' pkgname="ruby-${_gemname}" pkgver=3.2.9 pkgrel=2 pkgdesc='Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.' arch=('any') url="https://github.com/ruby-gettext/gettext" license=('RUBY' 'LGPL3') makedepends=('ruby-rdoc' 'ruby-test-unit' 'ruby-rake' 'ruby-yard' 'ruby-irb' 'ruby-bundler') depends=('ruby' 'ruby-locale' 'ruby-text') source=("https://github.com/ruby-gettext/gettext/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz") options=("!emptydirs") sha512sums=('e7352a343485c25077cdf08f2f92d7ae7ba798cb662ad090ce9e367576ee585753588dca2b7c8247ad007a816b87e57027ce70160b8f1bee83e3276e3725f314')

update the gemspec to allow newer versions of rake
remove deprecated options from the gemspec

prepare() { cd "${_gemname}-${pkgver}" sed --in-place '/s.rubyforge_project/d' "${_gemname}.gemspec" sed --in-place '/test\/unit\/notify/d' test/run-test.rb sed --in-place '/test\/unit\/rr/d' test/run-test.rb sed --in-place '/s.add_development_dependency("test-unit-notify")/d' "${_gemname}.gemspec" sed --in-place '/s.add_development_dependency("test-unit-rr")/d' "${_gemname}.gemspec" }

build() { cd "${_gemname}-${pkgver}" gem build "${_gemname}.gemspec" }

tests are currently broken upstream
check() {

#cd "${_gemname}-${pkgver}" #rake test

}

package() { cd "${_gemname}-${pkgver}" local _gemdir="$(gem env gemdir)" gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"

rm -rf "${pkgdir}/${_gemdir}/cache" }

vim: ts=2 sw=2 et:

Rogach commented on 2019-01-30 19:59

--no-ri and --no-rdoc options to gem install are deprecated and removed, --no-document should be used instead. Patch to PKGBUILD:

--- PKGBUILD.orig   2019-01-30 22:57:03.140148048 +0300
+++ PKGBUILD    2019-01-30 22:57:22.637118513 +0300
@@ -38,7 +38,7 @@

   # Install the gem
   install -d -m755 $_bindir $_gemdir
-  $_gem install --no-ri --no-rdoc --ignore-dependencies --no-user-install \
+  $_gem install --no-document --ignore-dependencies --no-user-install \
                 --bindir $_bindir --install-dir $_gemdir "$srcdir/$_gemname-$pkgver.gem"
 }

hollunder commented on 2015-04-10 11:05

Thanks, works now.

lilydjwg commented on 2015-04-09 10:16

Now there is :-)

hollunder commented on 2015-04-09 09:13

Hi. This package depends on 'ruby-text', but there is no such package in AUR or the official repos.

VVS commented on 2015-04-08 19:01

Replace "build()" with "package()" in PKGBUILD: https://bbs.archlinux.org/viewtopic.php?pid=1500314#p1500314

0ion9 commented on 2015-01-26 04:06

missing package() function, so doesn't build.