commit:     826a3584c482b971f17a0555d638d3fb7ea0d1dd
Author:     Hans de Graaff <hans <AT> degraaff <DOT> org>
AuthorDate: Wed Sep 21 05:09:38 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Sep 21 05:09:38 2016 +0000
URL:        https://gitweb.gentoo.org/dev/graaff.git/commit/?id=826a3584

dev-ruby/polymer-rails: initial import

Package-Manager: portage-2.2.28

 dev-ruby/polymer-rails/Manifest                    |  1 +
 dev-ruby/polymer-rails/metadata.xml                |  5 +++
 .../polymer-rails/polymer-rails-1.2.4.1.ebuild     | 45 ++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/dev-ruby/polymer-rails/Manifest b/dev-ruby/polymer-rails/Manifest
new file mode 100644
index 0000000..a484a68
--- /dev/null
+++ b/dev-ruby/polymer-rails/Manifest
@@ -0,0 +1 @@
+DIST polymer-rails-1.2.4.1.tar.gz 116293 SHA256 
04329c4ef5281a809718e7ebdb10b2a60b50cedc5862ccbf6e06efc13e68cf10 SHA512 
4c588bf9e042fb7c20a018b0d908d9526f09b52f960395368fa2381fbe10cbb1849808a73f7b07abf9d4d586f9586494ddf58d231ea39b551ba33c3fd3f05ee8
 WHIRLPOOL 
ac22d64e120b530d4323c9086d993b790f9e09251fcd055e680c321f9fdc97b9aa345c747187d779e6df7755a91e0c89f590599cb79ea2033937e7e270921fa2

diff --git a/dev-ruby/polymer-rails/metadata.xml 
b/dev-ruby/polymer-rails/metadata.xml
new file mode 100644
index 0000000..f977299
--- /dev/null
+++ b/dev-ruby/polymer-rails/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer><email>gra...@gentoo.org</email></maintainer>
+</pkgmetadata>

diff --git a/dev-ruby/polymer-rails/polymer-rails-1.2.4.1.ebuild 
b/dev-ruby/polymer-rails/polymer-rails-1.2.4.1.ebuild
new file mode 100644
index 0000000..9c1be4a
--- /dev/null
+++ b/dev-ruby/polymer-rails/polymer-rails-1.2.4.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Use of web components and polymer-project in Ruby on Rails 
projects"
+HOMEPAGE="https://github.com/alchapone/polymer-rails";
+SRC_URI="https://github.com/alchapone/polymer-rails/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="1"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+       >=dev-ruby/nokogiri-1.6
+       >=dev-ruby/nokogumbo-1.4.2
+       >=dev-ruby/rails-3.1.0:*
+       dev-ruby/sprockets:3
+"
+
+all_ruby_prepare() {
+       # Gem locks to nokogumbo 1.4.2 due to bugs in 1.4.3. We no longer have 
these old versions so let's try 1.4.9.
+       sed -i -e '/nokogumbo/ s/1.4.2/~> 1.4.2/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_prepare() {
+       case ${RUBY} in
+               *ruby21)
+                       # Fails due to ordering issues
+                       sed -i -e '/generates html import tag/ s:it:pending:' 
spec/asset_tag_helper_spec.rb || die
+                       ;;
+       esac
+}

Reply via email to