summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-07-14 05:54:30 +0000
committerHans de Graaff <graaff@gentoo.org>2010-07-14 05:54:30 +0000
commit91753af320b3333928bc70ba4a12582b1d7b3ff0 (patch)
treeb3b164a8134b51e605239626afa5f11436bcbf03 /app-office
parentVersion bump 6.1.2, remove unnecessary static-libs USE flag (diff)
downloadgentoo-2-91753af320b3333928bc70ba4a12582b1d7b3ff0.tar.gz
gentoo-2-91753af320b3333928bc70ba4a12582b1d7b3ff0.tar.bz2
gentoo-2-91753af320b3333928bc70ba4a12582b1d7b3ff0.zip
Convert to ruby-ng.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'app-office')
-rw-r--r--app-office/rabbit/ChangeLog7
-rw-r--r--app-office/rabbit/rabbit-0.6.4-r1.ebuild73
2 files changed, 79 insertions, 1 deletions
diff --git a/app-office/rabbit/ChangeLog b/app-office/rabbit/ChangeLog
index d592adf4433f..b686865cd049 100644
--- a/app-office/rabbit/ChangeLog
+++ b/app-office/rabbit/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-office/rabbit
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/ChangeLog,v 1.10 2010/02/27 07:55:09 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/ChangeLog,v 1.11 2010/07/14 05:54:30 graaff Exp $
+
+*rabbit-0.6.4-r1 (14 Jul 2010)
+
+ 14 Jul 2010; Hans de Graaff <graaff@gentoo.org> +rabbit-0.6.4-r1.ebuild:
+ Convert to ruby-ng.
*rabbit-0.6.4 (27 Feb 2010)
diff --git a/app-office/rabbit/rabbit-0.6.4-r1.ebuild b/app-office/rabbit/rabbit-0.6.4-r1.ebuild
new file mode 100644
index 000000000000..26b289763bcd
--- /dev/null
+++ b/app-office/rabbit/rabbit-0.6.4-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/rabbit/rabbit-0.6.4-r1.ebuild,v 1.1 2010/07/14 05:54:30 graaff Exp $
+
+EAPI=2
+USE_RUBY="ruby18"
+
+inherit ruby-ng 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"
+
+CDEPEND="emacs? ( virtual/emacs )"
+DEPEND="${DEPEND} ${CDEPEND}"
+RDEPEND="${RDEPEND} ${CDEPEND}
+ nls? ( dev-ruby/ruby-gettext )
+ gs? ( app-text/ghostscript-gpl )
+ gnome-print? ( gnome-base/libgnomeprint )
+ migemo? ( app-text/migemo )
+ enscript? ( app-text/enscript )
+ tgif? ( media-gfx/tgif )"
+
+ruby_add_rdepend "
+ dev-ruby/ruby-gnome2
+ >=dev-ruby/ruby-gdkpixbuf2-0.15.0
+ dev-ruby/rdtool"
+
+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_test() {
+ ${RUBY} test/run-test.rb || die "Tests failed."
+}
+
+each_ruby_install() {
+ ${RUBY} setup.rb install --prefix="${D}"
+}
+
+all_ruby_install() {
+ dodoc NEWS.en NEWS.ja README.en README.ja TODO || die
+
+ 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
+}