/[gentoo-x86]/app-misc/alexandria/alexandria-0.6.6-r2.ebuild
Gentoo

Contents of /app-misc/alexandria/alexandria-0.6.6-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 4 23:03:31 2012 UTC (2 years, 8 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
clean up

(Portage version: 2.1.10.41/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/alexandria/alexandria-0.6.6-r2.ebuild,v 1.1 2010/08/02 18:26:25 graaff Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18"
7
8 inherit gnome2 ruby-ng
9
10 DESCRIPTION="A GNOME application to help you manage your book collection"
11 HOMEPAGE="http://alexandria.rubyforge.org/"
12 SRC_URI="mirror://rubyforge/${PN}/${PN}-${PV}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ppc ~x86"
17 IUSE="evo"
18
19 DOCS="ChangeLog README TODO doc/BUGS doc/cuecat_support.rdoc doc/FAQ doc/HACKING doc/NEWS"
20
21 ruby_add_rdepend "
22 >=dev-ruby/ruby-gettext-0.6.1
23 >=dev-ruby/ruby-gnome2-0.16.0
24 >=dev-ruby/ruby-libglade2-0.12.0
25 >=dev-ruby/ruby-gconf2-0.12.0
26 >=dev-ruby/imagesize-0.1.1
27 dev-ruby/hpricot
28 evo? ( >=dev-ruby/revolution-0.5 )"
29
30 ruby_add_bdepend "dev-ruby/rake"
31
32 DEPEND="${DEPEND} app-text/scrollkeeper"
33
34 RUBY_PATCHES=(
35 "${FILESDIR}/${P}-Rakefile.patch"
36 )
37
38 each_ruby_compile() {
39 ${RUBY} -S rake || die
40 }
41
42 each_ruby_install() {
43 export DESTDIR="${D}" PREFIX=/usr
44 rake install_package_staging || die
45 }
46
47 all_ruby_install() {
48 [ -n "${DOCS}" ] && dodoc ${DOCS} || die "Failed to install documentation"
49 }
50
51 pkg_postinst() {
52 unset PREFIX
53
54 gnome2_gconf_install
55
56 # For the next line see bug #76726
57 "${ROOT}/usr/bin/gconftool-2" --shutdown
58
59 echo
60 elog "To enable some book providers you will need to emerge"
61 elog "additional packages:"
62 echo
63 elog " For the Deastore book provider:"
64 elog " dev-ruby/htmlentities"
65 echo
66 elog " For Z39.50 support and the Library of Congress and"
67 elog " British Library book proviers:"
68 elog " dev-ruby/ruby-zoom"
69 }

  ViewVC Help
Powered by ViewVC 1.1.20