diff options
author | Hans de Graaff <graaff@gentoo.org> | 2012-05-08 17:13:01 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2012-05-08 17:13:01 +0000 |
commit | 6c36fd0d8c6ccef3018fa137eaa99de4cac947c5 (patch) | |
tree | 519681d6ffbbf8bd8e753d6e1716d321139c69b8 /app-office/rabbit | |
parent | Stable for HPPA (bug #414239). (diff) | |
download | gentoo-2-6c36fd0d8c6ccef3018fa137eaa99de4cac947c5.tar.gz gentoo-2-6c36fd0d8c6ccef3018fa137eaa99de4cac947c5.tar.bz2 gentoo-2-6c36fd0d8c6ccef3018fa137eaa99de4cac947c5.zip |
Version bump. Drop x86 due to new dependency on kramdown, bug 415151.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-office/rabbit')
-rw-r--r-- | app-office/rabbit/ChangeLog | 9 | ||||
-rw-r--r-- | app-office/rabbit/metadata.xml | 1 | ||||
-rw-r--r-- | app-office/rabbit/rabbit-1.0.6.ebuild | 76 |
3 files changed, 84 insertions, 2 deletions
diff --git a/app-office/rabbit/ChangeLog b/app-office/rabbit/ChangeLog index 22137a1566b7..e0a0883573cd 100644 --- a/app-office/rabbit/ChangeLog +++ b/app-office/rabbit/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-office/rabbit -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/ChangeLog,v 1.15 2011/12/26 14:37:35 graaff Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/ChangeLog,v 1.16 2012/05/08 17:13:01 graaff Exp $ + +*rabbit-1.0.6 (08 May 2012) + + 08 May 2012; Hans de Graaff <graaff@gentoo.org> +rabbit-1.0.6.ebuild: + Version bump. Drop x86 due to new dependency on kramdown, bug 415151. 26 Dec 2011; Hans de Graaff <graaff@gentoo.org> -rabbit-0.6.4-r1.ebuild: Remove old version. diff --git a/app-office/rabbit/metadata.xml b/app-office/rabbit/metadata.xml index aca3be710867..0734bd7a627a 100644 --- a/app-office/rabbit/metadata.xml +++ b/app-office/rabbit/metadata.xml @@ -5,5 +5,6 @@ <use> <flag name='gs'>Ghostscript support (<pkg>app-text/ghostscript-gpl</pkg>)</flag> <flag name='tgif'>tgif support (<pkg>media-gfx/tgif</pkg>)</flag> + <flag name='markdown'>Markdown support (<pkg>dev-ruby/kramdown</pkg>)</flag> </use> </pkgmetadata> diff --git a/app-office/rabbit/rabbit-1.0.6.ebuild b/app-office/rabbit/rabbit-1.0.6.ebuild new file mode 100644 index 000000000000..c771e66f57fa --- /dev/null +++ b/app-office/rabbit/rabbit-1.0.6.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/rabbit-1.0.6.ebuild,v 1.1 2012/05/08 17:13:01 graaff Exp $ + +EAPI=4 +USE_RUBY="ruby18" + +inherit ruby-ng elisp-common eutils + +DESCRIPTION="An application to do presentation with RD document" +HOMEPAGE="http://rabbit-shockers.org/" +SRC_URI="http://rabbit-shockers.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="nls gs migemo tgif enscript emacs markdown" + +CDEPEND="emacs? ( virtual/emacs )" +DEPEND="${DEPEND} ${CDEPEND}" +RDEPEND="${RDEPEND} ${CDEPEND} + nls? ( dev-ruby/ruby-gettext ) + gs? ( app-text/ghostscript-gpl ) + migemo? ( app-text/migemo ) + enscript? ( app-text/enscript ) + tgif? ( media-gfx/tgif )" + +ruby_add_rdepend " + >=dev-ruby/coderay-1.0.0 + >=dev-ruby/ruby-gdkpixbuf2-0.15.0 + dev-ruby/ruby-gtk2 + dev-ruby/ruby-poppler + >=dev-ruby/ruby-rsvg-1.0.3 + dev-ruby/rdtool + dev-ruby/haml + markdown? ( dev-ruby/kramdown ) + dev-ruby/sinatra + enscript? ( dev-ruby/nokogiri ) + emacs? ( dev-ruby/nokogiri ) " + +each_ruby_configure() { + ${RUBY} setup.rb config --prefix=/usr || die + ${RUBY} setup.rb setup || die +} + +all_ruby_compile() { + if use emacs; then + cd "${S}/misc/emacs" + elisp-compile rabbit-mode.el + fi +} + +each_ruby_install() { + ${RUBY} setup.rb install --prefix="${D}" +} + +all_ruby_install() { + dodoc -r doc + + 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 + + insinto /usr/share/doc/${PF} + doins -r sample +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |