/[gentoo-x86]/app-office/rabbit/rabbit-0.6.4-r1.ebuild
Gentoo

Contents of /app-office/rabbit/rabbit-0.6.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Dec 26 14:37:35 2011 UTC (2 years, 8 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old version.

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/rabbit-0.6.4-r1.ebuild,v 1.2 2011/03/12 11:50:03 graaff Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18"
7
8 inherit ruby-ng elisp-common eutils
9
10 DESCRIPTION="An application to do presentation with RD document"
11 HOMEPAGE="http://www.cozmixng.org/~rwiki/?cmd=view;name=Rabbit"
12 SRC_URI="http://www.cozmixng.org/~kou/download/${P}.tar.gz"
13
14 LICENSE="Ruby"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="nls gs migemo tgif enscript emacs"
18
19 CDEPEND="emacs? ( virtual/emacs )"
20 DEPEND="${DEPEND} ${CDEPEND}"
21 RDEPEND="${RDEPEND} ${CDEPEND}
22 nls? ( dev-ruby/ruby-gettext )
23 gs? ( app-text/ghostscript-gpl )
24 migemo? ( app-text/migemo )
25 enscript? ( app-text/enscript )
26 tgif? ( media-gfx/tgif )"
27
28 ruby_add_rdepend "
29 dev-ruby/ruby-gnome2
30 >=dev-ruby/ruby-gdkpixbuf2-0.15.0
31 dev-ruby/rdtool"
32
33 each_ruby_configure() {
34 ${RUBY} setup.rb config --prefix=/usr || die
35 ${RUBY} setup.rb setup || die
36 }
37
38 all_ruby_compile() {
39 if use emacs; then
40 cd "${S}/misc/emacs"
41 elisp-compile rabbit-mode.el
42 fi
43 }
44
45 each_ruby_test() {
46 ${RUBY} test/run-test.rb || die "Tests failed."
47 }
48
49 each_ruby_install() {
50 ${RUBY} setup.rb install --prefix="${D}"
51 }
52
53 all_ruby_install() {
54 dodoc NEWS.en NEWS.ja README.en README.ja TODO || die
55
56 if use emacs; then
57 cd "${S}/misc/emacs"
58 elisp-install rabbit-mode rabbit-mode.el{,c}
59 elisp-site-file-install "${FILESDIR}/50rabbit-mode-gentoo.el"
60 fi
61
62 insinto /usr/share/doc/${PF}
63 doins -r sample
64 }
65
66 pkg_postinst() {
67 use emacs && elisp-site-regen
68 }
69
70 pkg_postrm() {
71 use emacs && elisp-site-regen
72 }

  ViewVC Help
Powered by ViewVC 1.1.20