/[gentoo-x86]/dev-ruby/ruby-gettext/ruby-gettext-2.1.0_p20100728-r3.ebuild
Gentoo

Contents of /dev-ruby/ruby-gettext/ruby-gettext-2.1.0_p20100728-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Dec 23 19:29:41 2012 UTC (4 months, 4 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Stable for ppc64, wrt bug #448310

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2012 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-2.1.0_p20100728-r3.ebuild,v 1.6 2012/10/28 13:10:23 armin76 Exp $
4
5 EAPI=2
6
7 USE_RUBY="ruby18 ruby19 jruby ree18"
8
9 RUBY_FAKEGEM_NAME="${PN/ruby-/}"
10 RUBY_FAKEGEM_VERSION="${PV%_*}"
11
12 RUBY_FAKEGEM_TASK_DOC="rerdoc"
13 RUBY_FAKEGEM_DOCDIR="doc"
14 RUBY_FAKEGEM_EXTRADOC="ChangeLog ChangeLog-1 NEWS-1 README.rdoc"
15
16 RUBY_FAKEGEM_TASK_TEST="test"
17
18 RUBY_FAKEGEM_EXTRAINSTALL="data"
19
20 inherit ruby-fakegem
21
22 DESCRIPTION="Ruby GetText Package is Native Language Support Library and Tools modeled after GNU gettext package"
23 HOMEPAGE="http://www.yotabanana.com/hiki/ruby-gettext.html"
24 SRC_URI="http://dev.a3li.li/gentoo/distfiles/${P}.tar.bz2"
25
26 KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~x86-macos"
27 IUSE=""
28 SLOT="0"
29 LICENSE="Ruby"
30
31 ruby_add_rdepend ">=dev-ruby/locale-2.0.5"
32
33 RDEPEND="${RDEPEND}
34 sys-devel/gettext"
35 DEPEND="${DEPEND}
36 sys-devel/gettext"
37
38 ruby_add_bdepend "test? ( || ( virtual/ruby-test-unit dev-ruby/test-unit:2 ) )"
39
40 all_ruby_prepare() {
41 # Allison 2.0.3 produces illegal HTML which markaby doesn't like.
42 sed -i '/allison/d' Rakefile || die
43
44 epatch "${FILESDIR}/${PN}-rubygems-load-path.patch"
45 }
46
47 each_ruby_test() {
48 # Upstream tries to daisy-chain rake calls but they fail badly
49 # with our setup, so run it manually.
50 pushd test
51 ${RUBY} -S rake test || die "tests failed"
52 popd
53 }
54
55 all_ruby_install() {
56 all_fakegem_install
57
58 insinto /usr/share/doc/${PF}
59 doins -r samples || die
60 }

  ViewVC Help
Powered by ViewVC 1.1.13