/[gentoo-x86]/dev-ruby/ruby-gettext/ruby-gettext-3.1.6.ebuild
Gentoo

Contents of /dev-ruby/ruby-gettext/ruby-gettext-3.1.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 24 06:41:18 2015 UTC (2 years, 9 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Add ruby22.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gettext/ruby-gettext-3.1.6.ebuild,v 1.1 2015/01/25 12:12:49 mrueg Exp $
4
5 EAPI=5
6
7 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
8
9 RUBY_FAKEGEM_NAME="${PN/ruby-/}"
10 RUBY_FAKEGEM_VERSION="${PV%_*}"
11
12 RUBY_FAKEGEM_RECIPE_DOC="yard"
13 RUBY_FAKEGEM_EXTRADOC="README.md doc/text/news.md"
14
15 RUBY_FAKEGEM_TASK_TEST="none"
16
17 RUBY_FAKEGEM_EXTRAINSTALL="locale po"
18
19 inherit ruby-fakegem
20
21 DESCRIPTION="Ruby GetText Package is Native Language Support Library and Tools modeled after GNU gettext package"
22 HOMEPAGE="http://ruby-gettext.github.io/"
23
24 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
25 IUSE="doc test"
26 SLOT="0"
27 LICENSE="|| ( Ruby LGPL-3+ )"
28
29 ruby_add_rdepend ">=dev-ruby/locale-2.0.5 >=dev-ruby/text-1.3.0"
30
31 ruby_add_bdepend "doc? ( dev-ruby/yard )
32 dev-ruby/racc"
33 ruby_add_bdepend "test? (
34 dev-ruby/test-unit:2
35 dev-ruby/test-unit-rr )"
36
37 RDEPEND+=" sys-devel/gettext"
38 DEPEND+=" sys-devel/gettext"
39
40 all_ruby_prepare() {
41 # Fix broken racc invocation
42 sed -i -e '/command_line/ s/#{racc}/-S racc/' Rakefile || die
43
44 # Avoid bundler dependency
45 sed -i -e '/bundler/,/helper.install/ s:^:#:' \
46 -e 's/helper.gemspec/Gem::Specification.new/' Rakefile || die
47
48 # Avoid dependency on developer-specific tools.
49 sed -i -e '/notify/ s:^:#:' test/run-test.rb || die
50 }
51
52 each_ruby_test() {
53 # Upstream tries to daisy-chain rake calls but they fail badly
54 # with our setup, so run it manually.
55 ${RUBY} test/run-test.rb || die "tests failed"
56 }
57
58 all_ruby_install() {
59 all_fakegem_install
60
61 insinto /usr/share/doc/${PF}
62 doins -r samples
63 }

  ViewVC Help
Powered by ViewVC 1.1.20