blob: 90425bfa8f51d6021c1526906258133c3b3aa1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flickr/flickr-1.0.2-r2.ebuild,v 1.1 2009/06/28 17:52:31 flameeyes Exp $
inherit ruby eutils
DESCRIPTION="An insanely easy interface to the Flickr photo-sharing service."
HOMEPAGE="http://rubyforge.org/projects/flickr/"
SRC_URI="mirror://gentoo/${P}-gentoo.tar.bz2"
S="${WORKDIR}/${P}-gentoo"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test doc"
# Tests fail for now, they don't seem to be designed to work just yet
RESTRICT="test"
RDEPEND="dev-ruby/xml-simple"
DEPEND="
test? ( dev-ruby/rake
dev-ruby/rubygems )
doc? ( dev-ruby/rake
dev-ruby/rubygems )"
USE_RUBY="ruby18"
src_unpack() {
unpack ${A}
cd "${S}"/lib
epatch "${FILESDIR}/${P}-fix.patch"
epatch "${FILESDIR}/${P}-typo.patch"
}
src_compile() {
if use doc; then
rake rdoc || die "rake rdoc failed"
fi
}
src_install() {
cd "${S}"/lib
doruby -r * || die "doruby failed"
if use doc; then
dohtml -r "${S}"/doc/* || die "dohtml failed"
fi
dohtml "${S}"/index.html || die "dohtml failed"
insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')/../gems/1.8/specifications
doins "${S}"/${P}.gemspec || die "Unable to install fake gemspec"
}
|