From d32d08c006812c78e8d4945d1e4dfa60e34756a0 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Sun, 31 Jul 2011 14:11:28 +0000 Subject: [PATCH] This gem removes common margin from indented strings, such as the ones produced by indented heredocs. In other words, it strips out leading whitespace chars at the beggining of each line, but only as much as the line with the smallest margin. WWW: http://rubygems.org/gems/heredoc_unindent PR: ports/158747 Submitted by: Loic Pefferkorn --- textproc/Makefile | 1 + textproc/rubygem-heredoc_unindent/Makefile | 23 +++++++++++++++++++++ textproc/rubygem-heredoc_unindent/distinfo | 2 ++ textproc/rubygem-heredoc_unindent/pkg-descr | 6 ++++++ 4 files changed, 32 insertions(+) create mode 100644 textproc/rubygem-heredoc_unindent/Makefile create mode 100644 textproc/rubygem-heredoc_unindent/distinfo create mode 100644 textproc/rubygem-heredoc_unindent/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index 3c2724322b45..e66721a6ab8b 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1191,6 +1191,7 @@ SUBDIR += rubygem-ezamar SUBDIR += rubygem-ferret SUBDIR += rubygem-formosa + SUBDIR += rubygem-heredoc_unindent SUBDIR += rubygem-htmlentities SUBDIR += rubygem-htmltools SUBDIR += rubygem-ini diff --git a/textproc/rubygem-heredoc_unindent/Makefile b/textproc/rubygem-heredoc_unindent/Makefile new file mode 100644 index 000000000000..bedd4209c865 --- /dev/null +++ b/textproc/rubygem-heredoc_unindent/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: rubygem-heredoc_unindent +# Date created: 2011-07-08 +# Whom: Loic Pefferkorn +# +# $FreeBSD$ + +PORTNAME= heredoc_unindent +PORTVERSION= 1.1.2 +CATEGORIES= textproc rubygems +MASTER_SITES= RG + +MAINTAINER= loic-freebsd@loicp.eu +COMMENT= Removes common margin from indented strings + +LICENSE= MIT + +RUN_DEPENDS= rubygem-hoe>=2.9.6:${PORTSDIR}/devel/rubygem-hoe + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +.include diff --git a/textproc/rubygem-heredoc_unindent/distinfo b/textproc/rubygem-heredoc_unindent/distinfo new file mode 100644 index 000000000000..b01703baae1d --- /dev/null +++ b/textproc/rubygem-heredoc_unindent/distinfo @@ -0,0 +1,2 @@ +SHA256 (rubygem/heredoc_unindent-1.1.2.gem) = 698fea6db6d871f34f94498da8bf6e29330792a4f114f87136579fc63586f5ed +SIZE (rubygem/heredoc_unindent-1.1.2.gem) = 11776 diff --git a/textproc/rubygem-heredoc_unindent/pkg-descr b/textproc/rubygem-heredoc_unindent/pkg-descr new file mode 100644 index 000000000000..4f90a9592fcf --- /dev/null +++ b/textproc/rubygem-heredoc_unindent/pkg-descr @@ -0,0 +1,6 @@ +This gem removes common margin from indented strings, such as the ones produced +by indented heredocs. In other words, it strips out leading whitespace chars +at the beggining of each line, but only as much as the line with the +smallest margin. + +WWW: http://rubygems.org/gems/heredoc_unindent