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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Aug 31 06:01:38 2012 UTC (2 years ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Cleanup.

(Portage version: 2.1.11.9/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/app-office/rabbit/rabbit-1.0.8.ebuild,v 1.2 2012/07/21 07:31:22 graaff Exp $
4
5 EAPI=4
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://rabbit-shockers.org/"
12 SRC_URI="http://rabbit-shockers.org/download/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64"
17 IUSE="nls migemo tgif enscript emacs markdown postscript"
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_bdepend "emacs? ( dev-ruby/rdtool[emacs] )"
29 ruby_add_rdepend "
30 >=dev-ruby/coderay-1.0.0
31 >=dev-ruby/ruby-gdkpixbuf2-0.15.0
32 dev-ruby/ruby-gtk2
33 dev-ruby/ruby-poppler
34 >=dev-ruby/ruby-rsvg-1.0.3
35 dev-ruby/rdtool[emacs?]
36 dev-ruby/haml
37 markdown? ( dev-ruby/kramdown )
38 dev-ruby/sinatra
39 enscript? ( dev-ruby/nokogiri )
40 emacs? ( dev-ruby/nokogiri ) "
41
42 each_ruby_configure() {
43 ${RUBY} setup.rb config --prefix=/usr || die
44 ${RUBY} setup.rb setup || die
45 }
46
47 all_ruby_compile() {
48 if use emacs; then
49 cd "${S}/misc/emacs"
50 elisp-compile rabbit-mode.el
51 fi
52 }
53
54 each_ruby_install() {
55 ${RUBY} setup.rb install --prefix="${D}"
56 }
57
58 all_ruby_install() {
59 dodoc -r doc
60
61 insinto /usr/share/doc/${PF}
62 doins -r sample
63
64 if use emacs; then
65 cd "${S}/misc/emacs"
66 elisp-install rabbit-mode rabbit-mode.el{,c}
67 elisp-site-file-install "${FILESDIR}/50rabbit-mode-gentoo.el"
68 fi
69 }
70
71 pkg_postinst() {
72 use emacs && elisp-site-regen
73 }
74
75 pkg_postrm() {
76 use emacs && elisp-site-regen
77 }

  ViewVC Help
Powered by ViewVC 1.1.20