1 |
# Copyright 1999-2008 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.2.ebuild,v 1.1 2008/03/09 10:23:12 graaff Exp $ |
4 |
|
5 |
inherit ruby gnome2 eutils |
6 |
|
7 |
IUSE="" |
8 |
|
9 |
DESCRIPTION="A GNOME application to help you manage your book collection" |
10 |
HOMEPAGE="http://alexandria.rubyforge.org/" |
11 |
SRC_URI="http://rubyforge.org/frs/download.php/29501/${P}.tar.gz" |
12 |
|
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~ppc ~x86" |
16 |
|
17 |
USE_RUBY="ruby18" |
18 |
|
19 |
DOCS="COPYING ChangeLog README TODO" |
20 |
|
21 |
RDEPEND=">=dev-lang/ruby-1.8.0 |
22 |
>=dev-ruby/ruby-gettext-0.6.1 |
23 |
>=dev-ruby/ruby-gnome2-0.14.0 |
24 |
>=dev-ruby/ruby-libglade2-0.12.0 |
25 |
>=dev-ruby/ruby-gconf2-0.12.0 |
26 |
>=dev-ruby/ruby-gdkpixbuf2-0.12.0 |
27 |
>=dev-ruby/ruby-amazon-0.8.3 |
28 |
>=dev-ruby/ruby-zoom-0.2.0" |
29 |
|
30 |
DEPEND="${RDEPEND} |
31 |
app-text/scrollkeeper |
32 |
dev-ruby/rake" |
33 |
|
34 |
src_unpack() { |
35 |
unpack "${A}" |
36 |
cd "${S}" |
37 |
|
38 |
epatch "${FILESDIR}/${PN}-rakefile.patch" |
39 |
epatch "${FILESDIR}/${P}-rake-0.8.1.patch" |
40 |
} |
41 |
|
42 |
src_compile() { |
43 |
rake || die |
44 |
} |
45 |
|
46 |
src_install() { |
47 |
export PREFIX="${D}/usr" |
48 |
rake install || die |
49 |
|
50 |
[ -n "${DOCS}" ] && dodoc ${DOCS} |
51 |
|
52 |
# Move the installed docs to the gentoo standard directory |
53 |
for doc in "${D}/usr/share/doc/alexandria/*" |
54 |
do |
55 |
dodoc $doc |
56 |
done |
57 |
rm -rf "${D}/usr/share/doc/alexandria" |
58 |
} |
59 |
|
60 |
pkg_postinst() { |
61 |
unset PREFIX |
62 |
|
63 |
gnome2_gconf_install |
64 |
|
65 |
# For the next line see bug #76726 |
66 |
"${ROOT}/usr/bin/gconftool-2" --shutdown |
67 |
} |