| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flickr/flickr-1.0.2-r3.ebuild,v 1.1 2009/12/15 15:31:07 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
USE_RUBY="ruby18 ruby19 jruby"
|
| 7 |
|
| 8 |
inherit ruby-fakegem
|
| 9 |
|
| 10 |
DESCRIPTION="An insanely easy interface to the Flickr photo-sharing service."
|
| 11 |
HOMEPAGE="http://rubyforge.org/projects/flickr/"
|
| 12 |
SRC_URI="mirror://gentoo/${P}-gentoo.tar.bz2"
|
| 13 |
|
| 14 |
S="${WORKDIR}/${P}-gentoo"
|
| 15 |
|
| 16 |
LICENSE="MIT"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="~amd64"
|
| 19 |
IUSE=""
|
| 20 |
|
| 21 |
# Tests fail for now, they don't seem to be designed to work just yet
|
| 22 |
RESTRICT="test"
|
| 23 |
|
| 24 |
ruby_add_rdepend dev-ruby/xml-simple
|
| 25 |
|
| 26 |
all_ruby_prepare() {
|
| 27 |
cd "${S}"/lib
|
| 28 |
epatch "${FILESDIR}/${P}-fix.patch"
|
| 29 |
epatch "${FILESDIR}/${P}-typo.patch"
|
| 30 |
}
|
| 31 |
|
| 32 |
all_ruby_install() {
|
| 33 |
if use doc; then
|
| 34 |
dohtml -r "${S}"/doc/* || die "dohtml failed"
|
| 35 |
fi
|
| 36 |
|
| 37 |
dohtml "${S}"/index.html || die "dohtml failed"
|
| 38 |
}
|