Package Details: ruby-locale 2.1.2-2

Git Clone URL: https://aur.archlinux.org/ruby-locale.git (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: https://github.com/ruby-gettext/locale
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 <v@asch.cz>
# Contributor: Tim Meusel <tim@bastelfreak.de>

_gemname='locale'
pkgname="ruby-${_gemname}"
pkgver=2.1.2
pkgrel=3
pkgdesc='Ruby-Locale is the pure ruby library which provides basic and general purpose APIs for localization.'
arch=('any')
url="https://github.com/ruby-gettext/locale"
license=('RUBY' 'LGPL3')
makedepends=('ruby-rdoc' 'ruby-test-unit' 'ruby-rake' 'ruby-bundler' 'ruby-test-unit-rr')
depends=('ruby')
options=(!emptydirs)
source=("https://github.com/ruby-gettext/locale/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('62a0c60f2102cd2d144126985748f4ab186b8f582c9597f7f4080e782196a39d72b9947b90aaecf5b208ccad0175064ac90e816472fb374d19cb5209da0f7ff4')

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.