50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/css_parser/css_parser-1.2.6.ebuild,v 1.3 2013/02/10 08:59:29 graaff Exp $
|
|
|
|
EAPI=4
|
|
USE_RUBY="ruby18 ruby19 ree18 jruby"
|
|
|
|
RUBY_FAKEGEM_TASK_DOC="rdoc"
|
|
RUBY_FAKEGEM_DOC_DIR="doc"
|
|
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
|
|
|
|
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
|
|
|
GITHUB_USER="alexdunae"
|
|
GITHUB_PROJECT="${PN}"
|
|
RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
|
|
|
|
inherit ruby-fakegem
|
|
|
|
DESCRIPTION="Sass-based Stylesheet Framework"
|
|
HOMEPAGE="http://compass-style.org/"
|
|
LICENSE="MIT"
|
|
|
|
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz"
|
|
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="doc test"
|
|
|
|
ruby_add_rdepend "dev-ruby/addressable
|
|
virtual/ruby-ssl"
|
|
|
|
all_ruby_prepare() {
|
|
# fix wrong runtime dependency over rdoc
|
|
sed -i -e '/rdoc/s:add_dep:add_development_dep:' "${RUBY_FAKEGEM_GEMSPEC}" || die
|
|
|
|
# get rid of bundler usage
|
|
rm Gemfile || die
|
|
sed -i -e '/bundler/d' rakefile.rb || die
|
|
|
|
# Avoid tests using the network.
|
|
sed -i -e '/test_loading_a_remote_file_over_ssl/,/end/ s:^:#:' test/test_css_parser_loading.rb || die
|
|
|
|
}
|
|
|
|
each_ruby_prepare() {
|
|
if [[ ${RUBY} == */jruby ]]; then
|
|
sed -i -e '/add_development_dependency/i s.add_dependency("jruby-openssl")' "${RUBY_FAKEGEM_GEMSPEC}" || die
|
|
fi
|
|
}
|