From a546523872d7005f8a0ada7489d58a891db2c0ce Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Fri, 25 Jun 2010 21:30:09 +0000 Subject: Convert to ruby-ng. (Portage version: 2.1.8.3/cvs/Linux x86_64) --- app-misc/alexandria/ChangeLog | 8 ++- app-misc/alexandria/alexandria-0.6.6-r1.ebuild | 78 ++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 app-misc/alexandria/alexandria-0.6.6-r1.ebuild (limited to 'app-misc/alexandria') diff --git a/app-misc/alexandria/ChangeLog b/app-misc/alexandria/ChangeLog index f707209e0f4b..2312cedcd44e 100644 --- a/app-misc/alexandria/ChangeLog +++ b/app-misc/alexandria/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/alexandria # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/alexandria/ChangeLog,v 1.38 2010/06/25 08:38:12 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/alexandria/ChangeLog,v 1.39 2010/06/25 21:30:09 graaff Exp $ + +*alexandria-0.6.6-r1 (25 Jun 2010) + + 25 Jun 2010; Hans de Graaff + +alexandria-0.6.6-r1.ebuild: + Convert to ruby-ng. 25 Jun 2010; Christian Faulhammer alexandria-0.6.6.ebuild: diff --git a/app-misc/alexandria/alexandria-0.6.6-r1.ebuild b/app-misc/alexandria/alexandria-0.6.6-r1.ebuild new file mode 100644 index 000000000000..7b1c90f7b68a --- /dev/null +++ b/app-misc/alexandria/alexandria-0.6.6-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/alexandria/alexandria-0.6.6-r1.ebuild,v 1.1 2010/06/25 21:30:09 graaff Exp $ + +EAPI=2 +USE_RUBY="ruby18" + +inherit gnome2 ruby-ng + +DESCRIPTION="A GNOME application to help you manage your book collection" +HOMEPAGE="http://alexandria.rubyforge.org/" +SRC_URI="mirror://rubyforge/${PN}/${PN}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="evo" + +DOCS="ChangeLog README TODO" + +ruby_add_rdepend " + >=dev-ruby/ruby-gettext-0.6.1 + >=dev-ruby/ruby-gnome2-0.16.0 + >=dev-ruby/ruby-libglade2-0.12.0 + >=dev-ruby/ruby-gconf2-0.12.0 + >=dev-ruby/imagesize-0.1.1 + dev-ruby/hpricot + evo? ( >=dev-ruby/revolution-0.5 )" + +ruby_add_bdepend "dev-ruby/rake" + +DEPEND="${DEPEND} app-text/scrollkeeper" + +RUBY_PATCHES=( + "${FILESDIR}/${P}-Rakefile.patch" +) + +each_ruby_compile() { + ${RUBY} -S rake || die +} + +each_ruby_install() { + export PREFIX="${D}/usr" + # Prevent regeneration of config.rb with wrongly set path entries + sed -e 's:lib/alexandria/config.rb:tempfile:' -i Rakefile || die + ${RUBY} -S rake install || die +} + +all_ruby_install() { + [ -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" +} + +pkg_postinst() { + unset PREFIX + + gnome2_gconf_install + + # For the next line see bug #76726 + "${ROOT}/usr/bin/gconftool-2" --shutdown + + echo + elog "To enable some book providers you will need to emerge" + elog "additional packages:" + echo + elog " For the Deastore book provider:" + elog " dev-ruby/htmlentities" + echo + elog " For Z39.50 support and the Library of Congress and" + elog " British Library book proviers:" + elog " dev-ruby/ruby-zoom" +} -- cgit v1.2.3-65-gdbad