/[gentoo-x86]/dev-ruby/ruby-debug/ruby-debug-0.10.3-r6.ebuild
Gentoo

Contents of /dev-ruby/ruby-debug/ruby-debug-0.10.3-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jul 31 16:54:10 2011 UTC (9 years, 4 months ago) by armin76
Branch: MAIN
Changes since 1.3: +2 -2 lines
Add ~ia64

(Portage version: 2.1.10.7/cvs/Linux ia64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-debug/ruby-debug-0.10.3-r6.ebuild,v 1.3 2011/01/23 21:51:09 xarthisius Exp $
4
5 EAPI="2"
6 USE_RUBY="ruby18 ree18 jruby"
7
8 # The Rakefile has targets that are part of ruby-debug-base, so avoid
9 # hitting it for now.
10 RUBY_FAKEGEM_TASK_DOC=""
11 RUBY_FAKEGEM_TASK_TEST=""
12 RUBY_FAKEGEM_EXTRADOC="AUTHORS ChangeLog CHANGES README"
13
14 RUBY_FAKEGEM_EXTRAINSTALL="cli"
15 RUBY_FAKEGEM_REQUIRE_PATHS="cli"
16
17 inherit elisp-common ruby-fakegem
18
19 DESCRIPTION="CLI interface to ruby-debug"
20 HOMEPAGE="http://rubyforge.org/projects/ruby-debug/"
21
22 LICENSE="BSD-2"
23 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
24 IUSE="doc emacs"
25 SLOT="0"
26 SRC_URI="mirror://rubygems/${P}.gem
27 doc? ( mirror://rubyforge/ruby-debug/${PN}-extra-${PV}.tar.gz )
28 emacs? ( mirror://rubyforge/ruby-debug/${PN}-extra-${PV}.tar.gz )"
29
30 EXTRA_S="${WORKDIR}/all/${PN}-extra-${PV}"
31
32 ruby_add_rdepend ">=dev-ruby/columnize-0.1"
33
34 DEPEND="${DEPEND} emacs? ( >=virtual/emacs-22 )"
35 RDEPEND="${RDEPEND} emacs? ( >=virtual/emacs-22 )"
36
37 # The original extension is used for MRI (ruby18)
38 USE_RUBY="ruby18" \
39 ruby_add_rdepend "ruby_targets_ruby18? ( =dev-ruby/ruby-debug-base-0.10.3* )"
40 USE_RUBY="ree18" \
41 ruby_add_rdepend "ruby_targets_ruby18? ( =dev-ruby/ruby-debug-base-0.10.3* )"
42
43 # An alternative extension is used for JRuby
44 USE_RUBY="jruby" \
45 ruby_add_rdepend "ruby_targets_jruby? ( =dev-ruby/jruby-debug-base-0.10.3* )"
46
47 all_ruby_compile() {
48 all_fakegem_compile
49
50 if use emacs; then
51 pushd "${EXTRA_S}/emacs"
52 elisp-compile *.el || die
53 popd
54 fi
55 }
56
57 all_ruby_install() {
58 all_fakegem_install
59
60 if use emacs; then
61 pushd "${EXTRA_S}/emacs"
62 elisp-install ${PN} *.el *.elc || die
63 popd
64 fi
65
66 if use doc; then
67 doman "${EXTRA_S}/doc/rdebug.1" || die
68 dodoc "${EXTRA_S}/doc/ruby-debug.pdf" || die
69 doinfo "${EXTRA_S}"/doc/*.info || die
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20