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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Mar 8 17:48:32 2012 UTC (3 years, 1 month ago) by naota
Branch: MAIN
Changes since 1.6: +2 -2 lines
Add ~x86-fbsd.

(Portage version: 2.2.0_alpha90/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.6 2012/03/08 15:21:09 ranger Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18"
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 ruby_add_rdepend "dev-ruby/amstd"
21
22 SITEFILE=50${PN}-gentoo.el
23
24 each_ruby_test() {
25 ${RUBY} -Ilib test.rb
26 }
27
28 each_ruby_install() {
29 RUBY_ECONF="${RUBY_ECONF} ${EXTRA_ECONF}"
30
31 ${RUBY} setup.rb config --prefix=/usr "$@" \
32 ${RUBY_ECONF} || die "setup.rb config failed"
33 ${RUBY} setup.rb install --prefix="${D}" "$@" \
34 ${RUBY_ECONF} || die "setup.rb install failed"
35 }
36
37 all_ruby_install() {
38 if use emacs ; then
39 elisp-install ${PN} utils/rd-mode.el
40 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
41 fi
42
43 dodoc HISTORY README.*
44 }
45
46 pkg_postinst() {
47 use emacs && elisp-site-regen
48 }
49
50 pkg_postrm() {
51 use emacs && elisp-site-regen
52 }

  ViewVC Help
Powered by ViewVC 1.1.20