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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jan 4 23:03:31 2012 UTC (3 years, 3 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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-r1.ebuild,v 1.2 2010/06/28 11:40:00 fauli 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"
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}
49
50 # Move the installed docs to the gentoo standard directory
51 for doc in "${D}/usr/share/doc/alexandria/*"
52 do
53 dodoc $doc
54 done
55 rm -rf "${D}/usr/share/doc/alexandria"
56 }
57
58 pkg_postinst() {
59 unset PREFIX
60
61 gnome2_gconf_install
62
63 # For the next line see bug #76726
64 "${ROOT}/usr/bin/gconftool-2" --shutdown
65
66 echo
67 elog "To enable some book providers you will need to emerge"
68 elog "additional packages:"
69 echo
70 elog " For the Deastore book provider:"
71 elog " dev-ruby/htmlentities"
72 echo
73 elog " For Z39.50 support and the Library of Congress and"
74 elog " British Library book proviers:"
75 elog " dev-ruby/ruby-zoom"
76 }

  ViewVC Help
Powered by ViewVC 1.1.20