mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-02-08 01:07:30 -08:00
45 lines
913 B
Bash
45 lines
913 B
Bash
# Copyright 1999-2016 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
USE_RUBY="ruby20 ruby21 ruby22"
|
|
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
|
RUBY_FAKEGEM_EXTRADOC="ChangeLog README"
|
|
|
|
inherit ruby-fakegem
|
|
|
|
GITHUB_USER="feed2imap"
|
|
|
|
DESCRIPTION="Ruby library to parse ATOM/RSS feeds"
|
|
HOMEPAGE="https://github.com/feed2imap/ruby-feedparser"
|
|
SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/${P//-/_}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
KEYWORDS="~amd64"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
RUBY_S="${PN}-${P//-/_}"
|
|
|
|
ruby_add_rdepend "dev-ruby/magic"
|
|
|
|
ruby_add_bdepend "dev-ruby/magic
|
|
test? ( dev-ruby/mocha )"
|
|
|
|
all_ruby_prepare() {
|
|
sed -i -e 's/::Config/::RbConfig/' setup.rb || die
|
|
}
|
|
|
|
each_ruby_prepare() {
|
|
sed -i -e '/PKG_VERSION/ s:ruby:'${RUBY}':' Rakefile || die
|
|
}
|
|
|
|
each_ruby_configure() {
|
|
${RUBY} setup.rb config || die
|
|
}
|
|
|
|
each_ruby_install() {
|
|
${RUBY} setup.rb install --prefix="${D}" || die
|
|
}
|