From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8DE661381F3 for ; Tue, 25 Jun 2013 06:30:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FD7CE0A10; Tue, 25 Jun 2013 06:30:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9CCA7E0A10 for ; Tue, 25 Jun 2013 06:30:38 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 86FA233E3EE for ; Tue, 25 Jun 2013 06:30:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 1BACDE468F for ; Tue, 25 Jun 2013 06:30:36 +0000 (UTC) From: "Tiziano Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tiziano Müller" Message-ID: <1372141833.f5343d3b1777f6737b26b5482787ee9cdce845f1.dev-zero@gentoo> Subject: [gentoo-commits] dev/dev-zero:master commit in: dev-ruby/slim/files/, dev-ruby/slim/ X-VCS-Repository: dev/dev-zero X-VCS-Files: dev-ruby/slim/Manifest dev-ruby/slim/files/2.0.0-remove-bundler-and-sinatra.patch dev-ruby/slim/slim-2.0.0.ebuild X-VCS-Directories: dev-ruby/slim/files/ dev-ruby/slim/ X-VCS-Committer: dev-zero X-VCS-Committer-Name: Tiziano Müller X-VCS-Revision: f5343d3b1777f6737b26b5482787ee9cdce845f1 X-VCS-Branch: master Date: Tue, 25 Jun 2013 06:30:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6cabad8e-0c90-44c4-a043-73bf12aededc X-Archives-Hash: 143ff1c222e00564c2f9973ae8bf882f commit: f5343d3b1777f6737b26b5482787ee9cdce845f1 Author: Tiziano Müller dev-zero ch> AuthorDate: Tue Jun 25 06:30:33 2013 +0000 Commit: Tiziano Müller gentoo 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" +}