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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Aug 31 06:01:38 2012 UTC (2 years, 6 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.6.ebuild,v 1.3 2012/06/16 16:35:04 ssuominen 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_rdepend "
29 >=dev-ruby/coderay-1.0.0
30 >=dev-ruby/ruby-gdkpixbuf2-0.15.0
31 dev-ruby/ruby-gtk2
32 dev-ruby/ruby-poppler
33 >=dev-ruby/ruby-rsvg-1.0.3
34 dev-ruby/rdtool
35 dev-ruby/haml
36 markdown? ( dev-ruby/kramdown )
37 dev-ruby/sinatra
38 enscript? ( dev-ruby/nokogiri )
39 emacs? ( dev-ruby/nokogiri ) "
40
41 each_ruby_configure() {
42 ${RUBY} setup.rb config --prefix=/usr || die
43 ${RUBY} setup.rb setup || die
44 }
45
46 all_ruby_compile() {
47 if use emacs; then
48 cd "${S}/misc/emacs"
49 elisp-compile rabbit-mode.el
50 fi
51 }
52
53 each_ruby_install() {
54 ${RUBY} setup.rb install --prefix="${D}"
55 }
56
57 all_ruby_install() {
58 dodoc -r doc
59
60 insinto /usr/share/doc/${PF}
61 doins -r sample
62
63 if use emacs; then
64 cd "${S}/misc/emacs"
65 elisp-install rabbit-mode rabbit-mode.el{,c}
66 elisp-site-file-install "${FILESDIR}/50rabbit-mode-gentoo.el"
67 fi
68 }
69
70 pkg_postinst() {
71 use emacs && elisp-site-regen
72 }
73
74 pkg_postrm() {
75 use emacs && elisp-site-regen
76 }

  ViewVC Help
Powered by ViewVC 1.1.20