# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils gnome2 ruby DESCRIPTION="A GNOME application to help you manage your book collection" HOMEPAGE="http://alexandria.rubyforge.org/" SRC_URI="http://rubyforge.org/frs/download.php/29501/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="aws zoom mechanize" RDEPEND="dev-ruby/ruby-gtk2 >=dev-ruby/ruby-gnome2-0.16.0 dev-ruby/ruby-libglade2 dev-ruby/ruby-gconf2 dev-ruby/ruby-pango dev-ruby/ruby-gettext aws? ( dev-ruby/ruby-amazon ) zoom? ( dev-ruby/ruby-zoom ) mechanize? ( dev-ruby/mechanize )" DEPEND="${RDEPEND} dev-ruby/rake sys-devel/gettext dev-util/intltool" DOC="README INSTALL COPYING TODO doc/AUTHORS doc/BUGS doc/FAQ doc/cuecat_support.rdoc" USE_RUBY="ruby18" src_install() { rake pre_install PREFIX=${D}/usr rake install_files [[ -n "${DOCS}" ]] && dodoc ${DOCS} # Move the installed docs to the gentoo standard directory for doc in ${D}/usr/share/doc/alexandria/* do dodoc $doc done rm -rf ${D}/usr/share/doc/alexandria }