You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/flickr/flickr-1.0.2-r3.ebuild

39 lines
909 B

# Copyright 1999-2011 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-r3.ebuild,v 1.2 2011/10/20 17:46:12 graaff Exp $
EAPI=2
USE_RUBY="ruby18 jruby"
inherit ruby-fakegem
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=""
# Tests fail for now, they don't seem to be designed to work just yet
RESTRICT="test"
ruby_add_rdepend dev-ruby/xml-simple
all_ruby_prepare() {
cd "${S}"/lib
epatch "${FILESDIR}/${P}-fix.patch"
epatch "${FILESDIR}/${P}-typo.patch"
}
all_ruby_install() {
if use doc; then
dohtml -r "${S}"/doc/* || die "dohtml failed"
fi
dohtml "${S}"/index.html || die "dohtml failed"
}