Package Details: ruby-locale 2.1.2-2

Git Clone URL: (read-only, click to copy)
Package Base: ruby-locale
Description: Ruby-Locale is the pure ruby library which provides basic APIs for localization.
Upstream URL:
Licenses: ruby, LGPLv3+
Submitter: vali
Maintainer: asch
Last Packager: asch
Votes: 44
Popularity: 0.131131
First Submitted: 2013-02-18 02:34
Last Updated: 2018-01-30 16:57

Latest Comments

asch commented on 2020-01-05 16:42

bastelfreak: The current version works well for me? What is wrong with it?

bastelfreak commented on 2020-01-05 13:14

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

# Maintainer: Vojtěch Aschenbrenner <>
# Contributor: Tim Meusel <>

pkgdesc='Ruby-Locale is the pure ruby library which provides basic and general purpose APIs for localization.'
license=('RUBY' 'LGPL3')
makedepends=('ruby-rdoc' 'ruby-test-unit' 'ruby-rake' 'ruby-bundler' 'ruby-test-unit-rr')

build() {
  cd "${_gemname}-${pkgver}"
  # remove dependencies that aren't actual dependencies
  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("yard")/d' "${_gemname}.gemspec"
  sed --in-place '/s.add_development_dependency("redcarpet")/d' "${_gemname}.gemspec"
  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"
  rake build

check() {
  cd "${_gemname}-${pkgver}"
  # tests currently don't work because they require a legacy rspec version
  #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" "pkg/${_gemname}-${pkgver}.gem"

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

# vim: ts=2 sw=2 et:

asch commented on 2018-01-30 16:58

dviktor: Fixed. Thanks.

dviktor commented on 2018-01-30 16:44

Yes, you're right. These error appeared after updating to the ruby-2.5.0-4

asch commented on 2018-01-30 12:23

dviktor: Works for me just with ruby-2.5.0-2 package.

dviktor commented on 2018-01-30 09:31

please, add community ruby-rdoc to the dependencies! in other case fails to build:

==> Starting package()... Successfully installed locale-2.1.2 ERROR: While executing gem ... (Gem::DocumentError) RDoc is not installed: cannot load such file -- rdoc/rdoc ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build ruby-locale.

asch commented on 2015-01-08 15:12

Please modify PKGBUILD to the newer format -- with package() function.