Made an ebuild for the rdig gem. Reproducible: Always Installed and tested with: dev-ruby/rake-0.8.1 dev-ruby/hpricot-0.6 dev-ruby/ruby-ferret-0.11.4 app-text/poppler-0.8.7 app-text/wv-1.2.3-r1 Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686) ================================================================= System uname: 2.6.24-gentoo-r8 i686 Intel(R) Celeron(R) CPU 2.00GHz Timestamp of tree: Mon, 15 Dec 2008 08:11:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r14, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.7.9-r1, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 176115 [details] new ebuild for dev-ruby/ruby-rdig-0.3.5
Thanks for submitting the ebuild. The ruby herd is currently still understaffed, so I'm not sure how quickly we can process it.
A few notes: - since the name of the package is just rdig, it might be better to call the package like that if there is no obvious collision with another package; - is this primarily used as a Ruby library or is it primarily used for indexing; in the latter case it might be better suited as app-text/rdig; - if upstream provides a non-gem release it might be much better to not use the gem (see http://blog.flameeyes.eu/2008/12/12/id-rather-keep-myself-away-from-gems for some reasoning and bug #252257 as an example of where a working FEATURES=test is quite helpful).
Created attachment 176545 [details] new ebuild (from source) for dev-ruby/rdig Installs from source instead of gem. Did not use the install.rb file, but instead copied everything manually. The bin/rdig file was patched (see bin-rdig.patch) to be run from commandline without rubygems. Unfortunately $LOAD_PATH has to be loaded in each ruby script calling rdig. This is not necessary in the gem ebuild version.
Created attachment 176546 [details, diff] patch for bin/rdig file
Created attachment 176610 [details] improved ebuild (from source) for dev-ruby/rdig An added loader file (files/rdig.rb) loads the appdir into $LOAD_PATH, making the call in each ruby script needing rdig not necessary anymore. a3li ;)
Created attachment 176612 [details, diff] improved patch for bin/rdig file removed $LOAD_PATH line, this is done by the new loader file (files/rdig.rb)
Created attachment 176614 [details] loader file for rdig
Never mind looking for a maintainer for this package. The last commit on the source was three years ago, and I'm not using it anymore.