diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2013-01-25 20:50:24 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2013-01-25 20:50:24 +0000 |
commit | e069115ed9d8f966421050225b52c7530b730128 (patch) | |
tree | b0550d6cc5f0f1b0d3ead5e3c11643613c67251a /dev-ruby | |
parent | Add menu desktop file and icons, bug #453920 (diff) | |
download | gentoo-2-e069115ed9d8f966421050225b52c7530b730128.tar.gz gentoo-2-e069115ed9d8f966421050225b52c7530b730128.tar.bz2 gentoo-2-e069115ed9d8f966421050225b52c7530b730128.zip |
Initial import of rails_autolink from graaff's overlay. This version only supports Ruby 1.9 (as the testsuite fails on 1.8), spots a fix for the testsuite and the schemes, and support doc building.
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rails_autolink/ChangeLog | 12 | ||||
-rw-r--r-- | dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch | 32 | ||||
-rw-r--r-- | dev-ruby/rails_autolink/metadata.xml | 5 | ||||
-rw-r--r-- | dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild | 29 |
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-ruby/rails_autolink/ChangeLog b/dev-ruby/rails_autolink/ChangeLog new file mode 100644 index 000000000000..491630368430 --- /dev/null +++ b/dev-ruby/rails_autolink/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-ruby/rails_autolink +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails_autolink/ChangeLog,v 1.1 2013/01/25 20:50:24 flameeyes Exp $ + +*rails_autolink-1.0.9 (25 Jan 2013) + + 25 Jan 2013; Diego E. Pettenò <flameeyes@gentoo.org> + +files/rails_autolink-1.0.9-fixes.patch, +metadata.xml, + +rails_autolink-1.0.9.ebuild: + Initial import of rails_autolink from graaff's overlay. This version only + supports Ruby 1.9 (as the testsuite fails on 1.8), spots a fix for the + testsuite and the schemes, and support doc building. diff --git a/dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch b/dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch new file mode 100644 index 000000000000..a1a0a8a11dac --- /dev/null +++ b/dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch @@ -0,0 +1,32 @@ +From 9bc8ce3c5bd1919df87ac7039b41de18e70bc64d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu> +Date: Fri, 25 Jan 2013 12:29:21 -0800 +Subject: [PATCH] lib: add to the whitelist the protocol schemes that are + tested for. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Without this commit, the testsuite will simply fail. + +Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> +--- + lib/rails_autolink/helpers.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/rails_autolink/helpers.rb b/lib/rails_autolink/helpers.rb +index 4f6cd8d..bec82c6 100644 +--- a/lib/rails_autolink/helpers.rb ++++ b/lib/rails_autolink/helpers.rb +@@ -71,7 +71,7 @@ module RailsAutolink + private + + AUTO_LINK_RE = %r{ +- (?: ((?:ed2k|ftp|http|https|irc|mailto|news|gopher|nntp|telnet|webcal|xmpp|callto|feed|svn|urn|aim|rsync|tag|ssh|sftp|rtsp|afs):)// | www\. ) ++ (?: ((?:ed2k|ftp|http|https|irc|mailto|news|gopher|nntp|telnet|webcal|xmpp|callto|feed|svn|urn|aim|rsync|tag|ssh|sftp|rtsp|afs|file|z39.50r|chrome|view-source:http):)// | www\. ) + [^\s<]+ + }x + +-- +1.8.1.1 + diff --git a/dev-ruby/rails_autolink/metadata.xml b/dev-ruby/rails_autolink/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/rails_autolink/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ruby</herd> +</pkgmetadata> diff --git a/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild b/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild new file mode 100644 index 000000000000..38fb3223f950 --- /dev/null +++ b/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild,v 1.1 2013/01/25 20:50:24 flameeyes Exp $ + +EAPI=5 +USE_RUBY="ruby19" + +RUBY_FAKEGEM_RECIPE_TEST="none" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" + +inherit ruby-fakegem + +DESCRIPTION="This is an extraction of the auto_link method from rails." +HOMEPAGE="http://github.com/tenderlove/rails_autolink" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RUBY_PATCHES=( ${P}-fixes.patch ) + +ruby_add_bdepend "test? ( dev-ruby/minitest )" + +ruby_add_rdepend ">=dev-ruby/rails-3.1" + +each_ruby_test() { + ${RUBY} -Ilib test/test_*.rb || die "tests failed" +} |