diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2013-11-18 02:25:28 +0000 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2013-11-18 02:25:28 +0000 |
commit | b5a8e941d0fd4d141a381b795092117c4f0fe69b (patch) | |
tree | 85fafe681281257f46a2bd26e7d312bb7904019f /dev-ruby/css_parser | |
parent | Version bump. (diff) | |
download | gentoo-2-b5a8e941d0fd4d141a381b795092117c4f0fe69b.tar.gz gentoo-2-b5a8e941d0fd4d141a381b795092117c4f0fe69b.tar.bz2 gentoo-2-b5a8e941d0fd4d141a381b795092117c4f0fe69b.zip |
Version bump. Add ruby20.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'dev-ruby/css_parser')
-rw-r--r-- | dev-ruby/css_parser/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/css_parser/css_parser-1.3.5.ebuild | 48 |
2 files changed, 54 insertions, 2 deletions
diff --git a/dev-ruby/css_parser/ChangeLog b/dev-ruby/css_parser/ChangeLog index 19f09c5161b1..ede765cab0b2 100644 --- a/dev-ruby/css_parser/ChangeLog +++ b/dev-ruby/css_parser/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ruby/css_parser # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/css_parser/ChangeLog,v 1.3 2013/02/10 08:59:29 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/css_parser/ChangeLog,v 1.4 2013/11/18 02:25:28 mrueg Exp $ + +*css_parser-1.3.5 (18 Nov 2013) + + 18 Nov 2013; Manuel Rüger <mrueg@gentoo.org> +css_parser-1.3.5.ebuild: + Version bump. Add ruby20. 10 Feb 2013; Hans de Graaff <graaff@gentoo.org> css_parser-1.2.6.ebuild: Avoid a test requiring the network to be active, bug 455608. @@ -13,4 +18,3 @@ 20 Feb 2012; Diego E. Pettenò <flameeyes@gentoo.org> +css_parser-1.2.6.ebuild, +metadata.xml: Initial import (required for testing compass). - diff --git a/dev-ruby/css_parser/css_parser-1.3.5.ebuild b/dev-ruby/css_parser/css_parser-1.3.5.ebuild new file mode 100644 index 000000000000..51173a061a61 --- /dev/null +++ b/dev-ruby/css_parser/css_parser-1.3.5.ebuild @@ -0,0 +1,48 @@ +# 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.3.5.ebuild,v 1.1 2013/11/18 02:25:28 mrueg Exp $ + +EAPI=5 +USE_RUBY="ruby18 ruby19 ruby20 jruby" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_DOC_DIR="doc" +RUBY_FAKEGEM_EXTRADOC="Readme.md" +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +GITHUB_USER="premailer" +GITHUB_PROJECT="${PN}" +inherit ruby-fakegem + +DESCRIPTION="Sass-based Stylesheet Framework" +HOMEPAGE="http://compass-style.org/" +LICENSE="MIT" + +SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/v${PV}.tar.gz -> ${GITHUB_PROJECT}-${PV}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" + +ruby_add_rdepend "dev-ruby/addressable + virtual/ruby-ssl" + +all_ruby_prepare() { + # get rid of bundler usage + rm Gemfile || die + sed -i -e '/bundler/d' -e '/bump/d' Rakefile || 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 +} + +each_ruby_test() { + ${RUBY} -Ilib test/*.rb || die +} |