blob: 2fd83c244a41577b0cc3038a9426c05c632836ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/rabbit-0.6.1.ebuild,v 1.1 2009/08/30 06:41:32 graaff Exp $
inherit ruby elisp-common eutils
DESCRIPTION="An application to do presentation with RD document"
HOMEPAGE="http://www.cozmixng.org/~rwiki/?cmd=view;name=Rabbit"
SRC_URI="http://www.cozmixng.org/~kou/download/${P}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nls gs gnome-print migemo tgif enscript emacs"
DEPEND="virtual/ruby
emacs? ( virtual/emacs )"
RDEPEND="${DEPEND}
dev-ruby/ruby-gnome2
>=dev-ruby/ruby-gdkpixbuf2-0.15.0
dev-ruby/rdtool
nls? ( dev-ruby/ruby-gettext )
gs? ( virtual/ghostscript )
gnome-print? ( gnome-base/libgnomeprint )
migemo? ( app-text/migemo )
enscript? ( app-text/enscript )
tgif? ( media-gfx/tgif )"
src_compile() {
ruby_src_compile
if use emacs; then
cd "${S}/misc/emacs"
elisp-compile rabbit-mode.el
fi
}
src_test() {
test/run-test.rb
}
src_install() {
${RUBY} setup.rb install --prefix="${D}"
erubydoc
if use emacs; then
cd "${S}/misc/emacs"
elisp-install rabbit-mode rabbit-mode.el{,c}
elisp-site-file-install "${FILESDIR}/50rabbit-mode-gentoo.el"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|