public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/dev-zero:master commit in: dev-ruby/slim/files/, dev-ruby/slim/
@ 2013-06-25  6:30 Tiziano Müller
  0 siblings, 0 replies; only message in thread
From: Tiziano Müller @ 2013-06-25  6:30 UTC (permalink / raw
  To: gentoo-commits

commit:     f5343d3b1777f6737b26b5482787ee9cdce845f1
Author:     Tiziano Müller <tm <AT> dev-zero <DOT> ch>
AuthorDate: Tue Jun 25 06:30:33 2013 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Tue Jun 25 06:30:33 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=f5343d3b

Yet another dep for gitlab.

---
 dev-ruby/slim/Manifest                             |  3 ++
 .../files/2.0.0-remove-bundler-and-sinatra.patch   | 39 ++++++++++++++++++
 dev-ruby/slim/slim-2.0.0.ebuild                    | 46 ++++++++++++++++++++++
 3 files changed, 88 insertions(+)

diff --git a/dev-ruby/slim/Manifest b/dev-ruby/slim/Manifest
new file mode 100644
index 0000000..ccc3351
--- /dev/null
+++ b/dev-ruby/slim/Manifest
@@ -0,0 +1,3 @@
+AUX 2.0.0-remove-bundler-and-sinatra.patch 879 SHA256 d23c9d75e8b03ceb1cdf548d12878c10eaff6db3f966f8f597f926023809312e SHA512 1e92033f6c6103e81d09159b8053c59ab496baa5f2345e954bbc62ed956fe3b59d5f79671f01eb33fc40624bfdc1d1a624fd5bc80e9c8244db90a7ee830c816f WHIRLPOOL 35cf13448ece9e8147c38cd90b742d8646520d50b4125fc9b9d1831d00c7f5dd39b6deb6e1d85ecbcc714b119df1b2379562af853d7fc537c1b49827047fec24
+DIST slim-2.0.0.tar.gz 61900 SHA256 86648e1a32cdea89ca98c223b3e46b9074b340ab4ea000f57202d01cce57588e SHA512 ffa2d5f41a458e0b3d2c419cb8099571bded2bc04e0a0c008a4704b704fffda4b30e546eb550e9e5ebcc0558548791fcf4cf0b3e321da6ed6fcc507c6661e602 WHIRLPOOL b15a43068028f00b8f60b5c93da75c0f8e4dd75328c24c49b1523d9516f907b51fcee16fb00bac16581fa86da6c95a6b69b79a0fa0fa6cb68f2d5248e9b8a2bf
+EBUILD slim-2.0.0.ebuild 1186 SHA256 01ef4d2405ddbe5365cfae7e56bf49d1284f4372cb26230001637984b2c04bef SHA512 21681f6033b983c85516180e653ef1b7808b5d066ef52c41c79759acd182acdfdf2bbf9e2c13baa1c9f7cb46fa4f7433a365cdeaeb76357e8f2160680866c57c WHIRLPOOL ce96a4d2047790b21c9809d4e00c5a05900193d42e843e59d173d57f8fa1879c02804e879706e5e2366934ee63787a5190414a43ce149f0f730cde7902b4523d

diff --git a/dev-ruby/slim/files/2.0.0-remove-bundler-and-sinatra.patch b/dev-ruby/slim/files/2.0.0-remove-bundler-and-sinatra.patch
new file mode 100644
index 0000000..2af9610
--- /dev/null
+++ b/dev-ruby/slim/files/2.0.0-remove-bundler-and-sinatra.patch
@@ -0,0 +1,39 @@
+diff --git a/Rakefile b/Rakefile
+index a9346c5..fe3353b 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -1,8 +1,3 @@
+-begin
+-  require 'bundler'
+-  Bundler::GemHelper.install_tasks
+-rescue Exception
+-end
+ 
+ require 'rake/testtask'
+ 
+@@ -47,25 +42,6 @@ namespace 'test' do
+     t.verbose = true
+   end
+ 
+-  begin
+-    require 'sinatra'
+-    spec = Gem::Specification.find_by_name('sinatra')
+-    Rake::TestTask.new('sinatra') do |t|
+-      # FIXME: Rename deprecated attribute
+-      file = "#{spec.gem_dir}/test/slim_test.rb"
+-      code = File.read(file)
+-      code.gsub!('attr_wrapper', 'attr_quote')
+-      File.open(file, 'w') {|out| out.write(code) }
+-
+-      # Run Slim integration test in Sinatra
+-      t.test_files = FileList[file]
+-      t.verbose = true
+-    end
+-  rescue LoadError
+-    task :sinatra do
+-      abort 'Sinatra is not available'
+-    end
+-  end
+ end
+ 
+ begin

diff --git a/dev-ruby/slim/slim-2.0.0.ebuild b/dev-ruby/slim/slim-2.0.0.ebuild
new file mode 100644
index 0000000..053afbf
--- /dev/null
+++ b/dev-ruby/slim/slim-2.0.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+USE_RUBY="ruby18 ruby19"
+
+RUBY_FAKEGEM_RECIPE_TEST="rake"
+RUBY_FAKEGEM_TASK_DOC="doc"
+RUBY_FAKEGEM_EXTRADOC="CHANGES README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Template language whose goal is reduce the syntax to the essential parts without becoming cryptic."
+HOMEPAGE="https://github.com/slim-template/slim"
+SRC_URI="https://github.com/slim-template/slim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+	>=dev-ruby/temple-0.6.5
+	>=dev-ruby/tilt-1.3.3"
+ruby_add_bdepend "test? (
+		dev-ruby/sinatra
+		dev-ruby/wikicloth
+		dev-ruby/rails
+		virtual/ruby-minitest
+		dev-ruby/actionpack
+		dev-ruby/activemodel
+		)
+	doc? ( dev-ruby/yard )"
+
+RESTRICT="test"
+# requires
+# .. wikicloth, creole .. shouldn't they be deps of tilt?
+# .. asciidoc .. shouldn't this be a dep of temple or tilt?
+# .. that sinatra has slim_test.rb installed (patched out, but still)
+
+RUBY_PATCHES=( ${PV}-remove-bundler-and-sinatra.patch )
+
+all_ruby_prepare() {
+	sed -i -e '/git ls-files/d' ${PN}.gemspec || die "sed failed"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-25  6:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25  6:30 [gentoo-commits] dev/dev-zero:master commit in: dev-ruby/slim/files/, dev-ruby/slim/ Tiziano Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox