From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 21 22:10:09 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D86991065697 for ; Wed, 21 Dec 2011 22:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B32358FC2B for ; Wed, 21 Dec 2011 22:10:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBLMA9Gn074580 for ; Wed, 21 Dec 2011 22:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBLMA9xC074579; Wed, 21 Dec 2011 22:10:09 GMT (envelope-from gnats) Resent-Date: Wed, 21 Dec 2011 22:10:09 GMT Resent-Message-Id: <201112212210.pBLMA9xC074579@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Adam Weinberger Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E29FE106566B for ; Wed, 21 Dec 2011 22:04:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CE15A8FC1D for ; Wed, 21 Dec 2011 22:04:09 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBLM49Vk071594 for ; Wed, 21 Dec 2011 22:04:09 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pBLM49pl071582; Wed, 21 Dec 2011 22:04:09 GMT (envelope-from nobody) Message-Id: <201112212204.pBLM49pl071582@red.freebsd.org> Date: Wed, 21 Dec 2011 22:04:09 GMT From: Adam Weinberger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/163517: [patch]: textproc/p5-ack: install bash completion plugin X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2011 22:10:10 -0000 >Number: 163517 >Category: ports >Synopsis: [patch]: textproc/p5-ack: install bash completion plugin >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: Wed Dec 21 22:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Adam Weinberger >Release: >Organization: >Environment: >Description: p5-ack comes with a plugin for bash shell completion (shells/bash_completion). This patch installs the plugin if the bash completion system is installed. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/textproc/p5-ack/Makefile,v retrieving revision 1.31 diff -u -d -p -r1.31 Makefile --- Makefile 19 Sep 2011 15:03:48 -0000 1.31 +++ Makefile 21 Dec 2011 22:00:41 -0000 @@ -7,6 +7,7 @@ PORTNAME= ack PORTVERSION= 1.96 +PORTREVISION= 1 CATEGORIES= textproc perl5 sysutils MASTER_SITES= CPAN MASTER_SITE_SUBDIR= App @@ -22,4 +23,17 @@ PERL_CONFIGURE= yes MAN1= ack.1 -.include + +.include + +COMPLETION_DIR= ${PREFIX}/etc/bash_completion.d +.if exists(${COMPLETION_DIR}) +RUN_DEPENDS+= ${COMPLETION_DIR}:${PORTSDIR}/shells/bash-completion +PLIST_SUB+= BASH="" +post-install: + ${INSTALL_DATA} ${WRKSRC}/etc/ack.bash_completion.sh ${COMPLETION_DIR} +.else +PLIST_SUB+= BASH="@comment " +.endif + +.include Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/textproc/p5-ack/pkg-plist,v retrieving revision 1.2 diff -u -d -p -r1.2 pkg-plist --- pkg-plist 23 Mar 2009 18:50:32 -0000 1.2 +++ pkg-plist 21 Dec 2011 22:00:41 -0000 @@ -1,4 +1,5 @@ bin/ack +%%BASH%%etc/bash_completion.d/ack.bash_completion.sh %%SITE_PERL%%/App/Ack.pm %%SITE_PERL%%/App/Ack/Plugin/Basic.pm %%SITE_PERL%%/App/Ack/Plugin.pm >Release-Note: >Audit-Trail: >Unformatted: