From: "Mauricio Fernández" Date: 2004-11-24T21:00:07+09:00 Subject: Re: [ANN] xmlresume2x 0.1.0 On Wed, Nov 24, 2004 at 11:48:01AM +0900, Thomas Leitner wrote: > here is the initial release of xmlresume2x which "converts an xml resume to various output formats"! [...] > Currently there is only a .tgz and .zip package available and an .rps >file for directly installing via the rpa tool (not yet in the RPA - >Mauricio?) by using: > > # rpa install http://rubyforge.org/frs/download.php/2010/xmlresume2x-0.1.0.rps Thank you for thinking about us, humble repackagers :-) I have uploaded xmlresume2x to the preliminary Ruby Production Archive, so it is now available with rpa install xmlresume2x That makes it port #152 ;) I did some minor changes (added a description and tried to install all the relevant docs) to the install script: require 'rpa/install' class Install_xmlresume2x < RPA::Install::FullInstaller name 'xmlresume2x' version '0.1.0-2' classification Application build do installdocs %w[COPYING ChangeLog TODO] installdocs "doc" # default, which was overriden by the above installrdoc %w[README] + Dir["lib/**/*.rb"] installdata end description <<-EOF Converts an XML resume to various output formats. xmlresume2x can convert CVs written in the XML R�sum� Library format (http://xmlresume.sourceforge.net), based on the 'standard' European Curriculum Vitae format at http://www.cedefop.eu.int/transparency/cv.asp, to a number of formats, including LaTeX markup which uses the europecv (http://www.ctan.org/tex-archive/help/Catalogue/entries/europecv.html) class. EOF end Is the description OK? > It seems as if RubyGems do not support data dirs (/usr/share/...), >therefore there is no RubyGem file for xmlresume2x available. If someone >could point me at the right documentation on how to install files to >the data directory with RubyGems, it would be great! It is not possible to install under the standard datadir with RubyGems, by design. You'd have to change your code for RubyGems, using something like if defined?(Gem::Cache) gempath = Gem::Cache.from_installed_gems.search("xmlresume2x", "=#{MYVERSION}").last.full_gem_path datapath = File.join(gempath, "data") else datapath = File.join(Config::CONFIG["datadir"], "xmlresume2x") end in addition to the 'standard' # try the one in site_lib first begin require 'otherlibstuff' rescue LoadError raise if $".include "rubygems.rb" require 'rubygems' retry end or # try the RubyGems version first. begin require 'rubygems' rescue LoadError end require 'otherlibstuff' -- Hassle-free packages for Ruby? RPA is available from http://www.rubyarchive.org/