/[gentoo-x86]/app-misc/alexandria/alexandria-0.6.4_beta1.ebuild
Gentoo

Contents of /app-misc/alexandria/alexandria-0.6.4_beta1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 24 19:25:17 2009 UTC (5 years, 5 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
version bump to 0.6.4.1 final and clean up of old ebuilds
(Portage version: 2.1.6.7/cvs/Linux i686)

1 # Copyright 1999-2009 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.4_beta1.ebuild,v 1.1 2009/03/12 08:34:06 fauli Exp $
4
5 inherit gnome2 ruby
6
7 MY_PV=${PV//_beta/b}
8
9 DESCRIPTION="A GNOME application to help you manage your book collection"
10 HOMEPAGE="http://alexandria.rubyforge.org/"
11 SRC_URI="mirror://rubyforge/${PN}/${PN}-${MY_PV}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE="evo"
17
18 DOCS="ChangeLog README TODO"
19
20 RDEPEND=">=dev-lang/ruby-1.8.0
21 >=dev-ruby/ruby-gettext-0.6.1
22 >=dev-ruby/ruby-gnome2-0.16.0
23 >=dev-ruby/ruby-libglade2-0.12.0
24 >=dev-ruby/ruby-gconf2-0.12.0
25 >=dev-ruby/imagesize-0.1.1
26 evo? ( >=dev-ruby/revolution-0.5 )"
27
28 DEPEND=">=dev-lang/ruby-1.8.0
29 app-text/scrollkeeper
30 dev-ruby/rake"
31
32 S=${WORKDIR}/${PN}-${MY_PV}
33
34 PATCHES=(
35 "${FILESDIR}/${PN}-rakefile.patch"
36 )
37
38 src_compile() {
39 rake || die
40 }
41
42 src_install() {
43 export PREFIX="${D}/usr"
44 rake install || die
45
46 [ -n "${DOCS}" ] && dodoc ${DOCS}
47
48 # Move the installed docs to the gentoo standard directory
49 for doc in "${D}/usr/share/doc/alexandria/*"
50 do
51 dodoc $doc
52 done
53 rm -rf "${D}/usr/share/doc/alexandria"
54 }
55
56 pkg_postinst() {
57 unset PREFIX
58
59 gnome2_gconf_install
60
61 # For the next line see bug #76726
62 "${ROOT}/usr/bin/gconftool-2" --shutdown
63
64 echo
65 elog "To enable some book providers you will need to emerge"
66 elog "additional packages:"
67 echo
68 elog " For the Deastore book provider:"
69 elog " dev-ruby/htmlentities"
70 echo
71 elog " For Z39.50 support and the Library of Congress and"
72 elog " British Library book proviers:"
73 elog " dev-ruby/ruby-zoom"
74 echo
75 elog " For the Amazon book provider:"
76 elog " dev-ruby/hpricot"
77 echo
78 }

  ViewVC Help
Powered by ViewVC 1.1.20