aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2011-07-31 22:11:28 +0800
committerswills <swills@FreeBSD.org>2011-07-31 22:11:28 +0800
commit6bfc9b045a723a20e71151ff7de05c055c4bb298 (patch)
tree19fbcc1e456a1190c01735d9799d4d24c1bf7861 /textproc
parent0599ad9b14b1aa300f4870c2ce550bf95e940712 (diff)
downloadfreebsd-ports-gnome-6bfc9b045a723a20e71151ff7de05c055c4bb298.tar.gz
freebsd-ports-gnome-6bfc9b045a723a20e71151ff7de05c055c4bb298.tar.zst
freebsd-ports-gnome-6bfc9b045a723a20e71151ff7de05c055c4bb298.zip
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 <loic-freebsd at loicp.eu>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/rubygem-heredoc_unindent/Makefile23
-rw-r--r--textproc/rubygem-heredoc_unindent/distinfo2
-rw-r--r--textproc/rubygem-heredoc_unindent/pkg-descr6
4 files changed, 32 insertions, 0 deletions
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 <loic-freebsd@loicp.eu>
+#
+# $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 <bsd.port.mk>
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