--- rabbit-0.5.0.ebuild 2006-12-18 09:08:53.000000000 +0900 +++ rabbit-0.5.0.ebuild 2007-04-05 01:18:04.000000000 +0900 @@ -17,6 +17,7 @@ emacs? ( virtual/emacs )" RDEPEND="${DEPEND} dev-ruby/ruby-gnome2 + >=dev-ruby/ruby-gdkpixbuf2-0.15.0 dev-ruby/rdtool nls? ( dev-ruby/ruby-gettext ) gs? ( virtual/ghostscript ) @@ -25,6 +26,20 @@ enscript? ( app-text/enscript ) tgif? ( media-gfx/tgif )" +src_unpack() { + ruby_src_unpack + + cd "${S}/lib/rabbit/element" + mv poppler-slide.rb{,.org} + sed -e "s:rabbit/element/slide-element:rabbit/element/slide:" \ + poppler-slide.rb.org > poppler-slide.rb + + if use nls; then + cd "${S}" + epatch ${FILESDIR}/${P}-gettext.patch + fi +} + src_compile() { ruby_src_compile