Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2008 02:33:05 +0200
From:      "Martin Tournoij" <carpetsmoker@rwxrwxrwx.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/123719: [NEW PORT] sysutils/ack - grep-like tool
Message-ID:  <20080516003050.1A8FB6D4AD@mail.rwxrwxrwx.net>
Resent-Message-ID: <200805160050.m4G0o1iY034399@freefall.freebsd.org>

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

>Number:         123719
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/ack - grep-like tool
>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 May 16 00:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Martin Tournoij
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
FreeBSD phong.rwxrwxrwx.net 7.0-STABLE FreeBSD 7.0-STABLE #0: Fri Mar 21 20:18:47 CET 2008     carpetsmoker@phong.rwxrwxrwx.net:/usr/obj/usr/src/sys/PHONG  i386

>Description:
ack is a tool like grep, aimed at programmers with large trees of
heterogeneous source code. 
ack is written purely in Perl, and takes advantage of the power of
Perl's regular expressions.

Reasons to use ack instead of grep.
o It's blazingly fast because it only searches the stuff you want searched.
o Searches recursively through directories by default, while ignoring .svn, CVS
  and other VCS directories.
o ack ignores most of the crap you don't want to search .
o Ignoring .svn directories means that ack is faster than grep for searching
  through trees.
o Lets you specify file types to search, as in --perl or --nohtml. 
o Color highlighting of search results. 
o Uses real Perl regular expressions, not a GNU subset. 
o Allows you to specify output using Perl's special variables.
o Many command-line switches are the same as in GNU grep.
o Command name is 25% fewer characters to type! Save days of free-time! Heck,
  it's 50% shorter compared to grep -r.

WWW: http://petdance.com/ack/


>How-To-Repeat:

>Fix:

--- ack.shar begins here ---
# 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:
#
#	sysutils/ack/Makefile
#	sysutils/ack/pkg-descr
#	sysutils/ack/distinfo
#	sysutils/ack/pkg-plist
#
echo x - sysutils/ack/Makefile
sed 's/^X//' >sysutils/ack/Makefile << 'END-of-sysutils/ack/Makefile'
X# New ports collection makefile for:	sysutils/ack
X# Date created:				16 May 2008
X# Whom:					Martin Tournoij <carpetsmoker@xs4all.nl>
X#
X# $Carpetsmoker: ports/sysutils/ack/Makefile,v 1.1 2008/05/16 00:28:54 carpetsmoker Exp $
X# $FreeBSD$
X#
X
XPORTNAME=	ack
XPORTVERSION=	1.82
XCATEGORIES=	sysutils perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	App
X
XMAINTAINER=	carpetsmoker@xs4all.nl
XCOMMENT=	A tool like grep, aimed at programmers with large trees of source code
X
XBUILD_DEPENDS=	${SITE_PERL}/Test/Harness.pm:${PORTSDIR}/devel/p5-Test-Harness \
X		${SITE_PERL}/Term/ANSIColor.pm:${PORTSDIR}/devel/p5-Term-ANSIColor \
X		${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
X		${SITE_PERL}/File/Next.pm:${PORTSDIR}/sysutils/p5-File-Next
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
XMAN1=		ack.1
XMAN3=		Ack.3
XMANCOMPRESSED=	no
X
X.include <bsd.port.mk>
END-of-sysutils/ack/Makefile
echo x - sysutils/ack/pkg-descr
sed 's/^X//' >sysutils/ack/pkg-descr << 'END-of-sysutils/ack/pkg-descr'
Xack is a tool like grep, aimed at programmers with large trees of
Xheterogeneous source code. 
Xack is written purely in Perl, and takes advantage of the power of
XPerl's regular expressions.
X
XReasons to use ack instead of grep.
Xo It's blazingly fast because it only searches the stuff you want searched.
Xo Searches recursively through directories by default, while ignoring .svn, CVS
X  and other VCS directories.
Xo ack ignores most of the crap you don't want to search .
Xo Ignoring .svn directories means that ack is faster than grep for searching
X  through trees.
Xo Lets you specify file types to search, as in --perl or --nohtml. 
Xo Color highlighting of search results. 
Xo Uses real Perl regular expressions, not a GNU subset. 
Xo Allows you to specify output using Perl's special variables.
Xo Many command-line switches are the same as in GNU grep.
Xo Command name is 25% fewer characters to type! Save days of free-time! Heck,
X  it's 50% shorter compared to grep -r.
X
XWWW: http://petdance.com/ack/
END-of-sysutils/ack/pkg-descr
echo x - sysutils/ack/distinfo
sed 's/^X//' >sysutils/ack/distinfo << 'END-of-sysutils/ack/distinfo'
XMD5 (ack-1.82.tar.gz) = f764497b977f2056d1974b93970a0cbf
XSHA256 (ack-1.82.tar.gz) = 343de2faa2e483a83e2838f606ab9ef687202a80d46a4b789dbf7abe78dd9aba
XSIZE (ack-1.82.tar.gz) = 80628
END-of-sysutils/ack/distinfo
echo x - sysutils/ack/pkg-plist
sed 's/^X//' >sysutils/ack/pkg-plist << 'END-of-sysutils/ack/pkg-plist'
Xbin/ack
X%%SITE_PERL%%/App/Ack.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/ack/.packlist
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/ack
X@dirrmtry %%SITE_PERL/App
END-of-sysutils/ack/pkg-plist
exit
--- ack.shar ends here ---

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



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