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

Contents of /app-office/rabbit/rabbit-0.9.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 5 12:16:35 2013 UTC (13 months, 2 weeks ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Cleanup old.

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2012 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.9.2.ebuild,v 1.2 2012/06/16 16:35:04 ssuominen 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="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="nls postscript 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 postscript? ( 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-gdkpixbuf2-0.15.0
30 dev-ruby/ruby-gtk2
31 dev-ruby/ruby-poppler
32 dev-ruby/ruby-rsvg
33 dev-ruby/rdtool"
34
35 each_ruby_configure() {
36 ${RUBY} setup.rb config --prefix=/usr || die
37 ${RUBY} setup.rb setup || die
38 }
39
40 all_ruby_compile() {
41 if use emacs; then
42 cd "${S}/misc/emacs"
43 elisp-compile rabbit-mode.el
44 fi
45 }
46
47 each_ruby_test() {
48 ${RUBY} test/run-test.rb || die "Tests failed."
49 }
50
51 each_ruby_install() {
52 ${RUBY} setup.rb install --prefix="${D}"
53 }
54
55 all_ruby_install() {
56 dodoc NEWS.en NEWS.ja README.en README.ja TODO || die
57
58 if use emacs; then
59 cd "${S}/misc/emacs"
60 elisp-install rabbit-mode rabbit-mode.el{,c}
61 elisp-site-file-install "${FILESDIR}/50rabbit-mode-gentoo.el"
62 fi
63
64 insinto /usr/share/doc/${PF}
65 doins -r sample
66 }
67
68 pkg_postinst() {
69 use emacs && elisp-site-regen
70 }
71
72 pkg_postrm() {
73 use emacs && elisp-site-regen
74 }

  ViewVC Help
Powered by ViewVC 1.1.20