1 # Maintainer: tim@bastelfreak.de
2 # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
5 pkgname="ruby-${_gemname}"
8 pkgdesc='Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.'
10 url="https://github.com/${pkgname}/${_gemname}"
11 license=('RUBY' 'LGPL3')
12 makedepends=('ruby-rdoc' 'ruby-yard' 'ruby-bundler')
13 depends=('ruby' 'ruby-locale' 'ruby-text' 'ruby-erubi')
14 checkdepends=('ruby-test-unit' 'ruby-rake' 'ruby-test-unit-rr')
15 source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
16 options=("!emptydirs")
17 sha512sums=('18dcf542ccbc55542d9dac8320242617bbe39f016e35cf15fac8a6c4a77f6cbfc2c3aa4b89bf5e134ce876e2bb56482f91989ec85073bcd6c1c91e4b04973b26')
19 # update the gemspec to allow newer versions of rake
20 # remove deprecated options from the gemspec
22 cd "${_gemname}-${pkgver}"
24 sed --in-place 's/s.license.*/s.licenses = ["Ruby", "LGPL-3.0+"]/' "${_gemname}.gemspec"
25 sed --in-place '/test\/unit\/notify/d' test/run-test.rb
26 sed --in-place '/s.add_development_dependency("test-unit-notify")/d' "${_gemname}.gemspec"
31 cd "${_gemname}-${pkgver}"
33 gem build "${_gemname}.gemspec"
36 # tests are currently broken upstream
38 cd "${_gemname}-${pkgver}"
43 cd "${_gemname}-${pkgver}"
45 local _gemdir="$(gem env gemdir)"
46 gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
48 rm -rf "${pkgdir}/${_gemdir}/cache"
50 install -Dm 644 README.md doc/text/news.md -t "${pkgdir}/usr/share/doc/${pkgname}"
51 install -Dm 644 doc/text/gpl-2.0.txt doc/text/lgpl-3.0.txt doc/text/ruby-license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"