Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jul 2011 22:14:58 GMT
From:      Loic Pefferkorn <loic-freebsd@loicp.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/158747: New port: textproc/rubygem-heredoc_unindent : Removes common margin from indented strings
Message-ID:  <201107082214.p68MEwZY048416@red.freebsd.org>
Resent-Message-ID: <201107082220.p68MK6QT034687@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         158747
>Category:       ports
>Synopsis:       New port: textproc/rubygem-heredoc_unindent : Removes common margin from indented strings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 08 22:20:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Loic Pefferkorn
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD tic.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r221242M: Wed Jun 29 21:22:44 CEST 2011     root@tic.local:/usr/obj/usr/src/sys/LP  amd64
>Description:
Hello,

Here the shar file for this new port.

Thanks !

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. 

http://rubygems.org/gems/heredoc_unindent
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rubygem-heredoc_unindent
#	rubygem-heredoc_unindent/pkg-descr
#	rubygem-heredoc_unindent/distinfo
#	rubygem-heredoc_unindent/Makefile
#
echo c - rubygem-heredoc_unindent
mkdir -p rubygem-heredoc_unindent > /dev/null 2>&1
echo x - rubygem-heredoc_unindent/pkg-descr
sed 's/^X//' >rubygem-heredoc_unindent/pkg-descr << 'dcb4fde110b5f678e1a13c1d699806f6'
XThis gem removes common margin from indented strings, such as the ones produced 
Xby indented heredocs.  In other words, it strips out leading whitespace chars 
Xat the beggining of each line, but only as much as the line with the 
Xsmallest margin. 
X
XWWW: http://rubygems.org/gems/heredoc_unindent
dcb4fde110b5f678e1a13c1d699806f6
echo x - rubygem-heredoc_unindent/distinfo
sed 's/^X//' >rubygem-heredoc_unindent/distinfo << 'f8a88d45e8eee074414782882fec0a4d'
XSHA256 (rubygem/heredoc_unindent-1.1.2.gem) = 698fea6db6d871f34f94498da8bf6e29330792a4f114f87136579fc63586f5ed
XSIZE (rubygem/heredoc_unindent-1.1.2.gem) = 11776
f8a88d45e8eee074414782882fec0a4d
echo x - rubygem-heredoc_unindent/Makefile
sed 's/^X//' >rubygem-heredoc_unindent/Makefile << 'fcaeff19a0db314165282ec3d61cd5dc'
X# New ports collection makefile for:	rubygem-heredoc_unindent
X# Date created:		2011-07-08
X# Whom:			Loic Pefferkorn <loic-freebsd@loicp.eu>
X#
X# $FreeBSD$
X
XPORTNAME=	heredoc_unindent
XPORTVERSION=	1.1.2
XCATEGORIES=	textproc rubygems
XMASTER_SITES=	RG
X
XMAINTAINER=	loic-freebsd@loicp.eu
XCOMMENT=	Removes common margin from indented strings
X
XLICENSE=	MIT
X
XRUN_DEPENDS=	rubygem-hoe>=2.9.6:${PORTSDIR}/devel/rubygem-hoe
X
XUSE_RUBY=	yes
XUSE_RUBYGEMS=	yes
XRUBYGEM_AUTOPLIST=	yes
X
X.include <bsd.port.mk>
fcaeff19a0db314165282ec3d61cd5dc
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107082214.p68MEwZY048416>