/[gentoo-x86]/dev-ruby/rdtool/rdtool-0.6.22-r2.ebuild
Gentoo

Contents of /dev-ruby/rdtool/rdtool-0.6.22-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jul 29 07:15:40 2012 UTC (23 months, 3 weeks ago) by graaff
Branch: MAIN
Drop dependency on dev-ruby/amstd since the code does not reference it at all. Add other ruby targets blocked by that.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

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/rdtool/rdtool-0.6.22-r1.ebuild,v 1.7 2012/03/08 17:48:32 naota Exp $
4
5 EAPI=4
6 USE_RUBY="ruby18 ruby19 ree18 jruby"
7
8 inherit elisp-common ruby-ng
9
10 DESCRIPTION="A multipurpose documentation format for Ruby"
11 HOMEPAGE="http://raa.ruby-lang.org/project/rdtool"
12 SRC_URI="http://www.moonwolf.com/ruby/archive/${P}.tar.gz"
13 LICENSE="Ruby GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
16 IUSE="emacs"
17
18 RDEPEND="${RDEPEND} emacs? ( virtual/emacs )"
19
20 SITEFILE=50${PN}-gentoo.el
21
22 each_ruby_test() {
23 ${RUBY} -Ilib:. test.rb || die
24 }
25
26 each_ruby_install() {
27 RUBY_ECONF="${RUBY_ECONF} ${EXTRA_ECONF}"
28
29 ${RUBY} setup.rb config --prefix=/usr "$@" \
30 ${RUBY_ECONF} || die "setup.rb config failed"
31 ${RUBY} setup.rb install --prefix="${D}" "$@" \
32 ${RUBY_ECONF} || die "setup.rb install failed"
33 }
34
35 all_ruby_install() {
36 if use emacs ; then
37 elisp-install ${PN} utils/rd-mode.el
38 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
39 fi
40
41 dodoc HISTORY README.*
42 }
43
44 pkg_postinst() {
45 use emacs && elisp-site-regen
46 }
47
48 pkg_postrm() {
49 use emacs && elisp-site-regen
50 }

  ViewVC Help
Powered by ViewVC 1.1.20