An ebuild to install the jabber4r, a ruby jabber client library Install also some doc based on rdoc Should be in dev-ruby/jabber4r My first ebuild, hope will work fine
Created attachment 46790 [details] ebuild for jabber4r
Comment on attachment 46790 [details] ebuild for jabber4r ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># Made by Alexandre CLERICI > >inherit ruby > >DESCRIPTION="A jabber client library for ruby" >HOMEPAGE="http://jabber4r.rubyforge.org" >SRC_URI="http://rubyforge.org/download.php/376/${P}.tar.gz" >LICENSE="BSD-type" >SLOT="0" >KEYWORDS="~alpha ~hppa ~mips ~sparc ~x86 ~ppc ~amd64 ~ppc64" >IUSE="" >USE_RUBY="ruby18" >DEPEND="virtual/ruby" >S=${WORKDIR}/jabber4r > >src_compile() { > cd ${S} > #needed or will fail with ruby > 1.8.1 > sed "s/.site\_libdir \!/\/\$Site_libdir\/ \!/" install.rb -i >} > >src_install() { > echo -e "18,19d17\n< \$site_libdir = \"/var/tmp/portage/jabber4r-0.6.0/image/\"+\$site_libdir\n< " |patch -R install.rb > ruby install.rb || die > dodoc README lib/jabber4r/LICENSE.txt > insinto /usr/share/doc/${P} > docinto example/ > dodoc example/* > docinto /hmtl/ > rdoc lib/jabber4r/*.rb > doins doc/* >}
The line doins doc/* should be: dohtml -r doc/* So 1) it's placed in html/ and 2) it's copied recursively
Afgter more than 17 month since the last release, jabber4r-0.8.0 was released today. I've already commited an ebuild to CVS, enjoy!