From owner-svn-ports-all@freebsd.org Thu Dec 27 23:04:01 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06FCE1426053; Thu, 27 Dec 2018 23:04:01 +0000 (UTC) (envelope-from gblach@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8349D8FF3A; Thu, 27 Dec 2018 23:04:00 +0000 (UTC) (envelope-from gblach@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6D6631A6E0; Thu, 27 Dec 2018 23:04:00 +0000 (UTC) (envelope-from gblach@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBRN40Oa003121; Thu, 27 Dec 2018 23:04:00 GMT (envelope-from gblach@FreeBSD.org) Received: (from gblach@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBRN405o003120; Thu, 27 Dec 2018 23:04:00 GMT (envelope-from gblach@FreeBSD.org) Message-Id: <201812272304.wBRN405o003120@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gblach set sender to gblach@FreeBSD.org using -f From: Grzegorz Blach Date: Thu, 27 Dec 2018 23:04:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r488579 - head/devel/ninja X-SVN-Group: ports-head X-SVN-Commit-Author: gblach X-SVN-Commit-Paths: head/devel/ninja X-SVN-Commit-Revision: 488579 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8349D8FF3A X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.960,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2018 23:04:01 -0000 Author: gblach Date: Thu Dec 27 23:03:59 2018 New Revision: 488579 URL: https://svnweb.freebsd.org/changeset/ports/488579 Log: Install zsh and bash completion files PR: 234407 Submitted by: Greg V Modified: head/devel/ninja/Makefile Modified: head/devel/ninja/Makefile ============================================================================== --- head/devel/ninja/Makefile Thu Dec 27 22:55:51 2018 (r488578) +++ head/devel/ninja/Makefile Thu Dec 27 23:03:59 2018 (r488579) @@ -4,6 +4,7 @@ PORTNAME= ninja PORTVERSION= 1.8.2 DISTVERSIONPREFIX= v +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= devel @@ -22,8 +23,12 @@ USES= python PLIST_FILES= bin/ninja PORTDOCS= HACKING.md README manual.asciidoc -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS BASH ZSH +OPTIONS_DEFAULT= BASH ZSH +BASH_PLIST_FILES= share/bash-completion/completions/ninja +ZSH_PLIST_FILES= share/zsh/site-functions/_ninja + post-patch: @${REINPLACE_CMD} "s/'-g', //" ${WRKSRC}/configure.py @@ -37,6 +42,16 @@ do-install: (cd ${WRKSRC} && \ ${INSTALL_DATA} HACKING.md README doc/manual.asciidoc \ ${STAGEDIR}${DOCSDIR}) + +do-install-BASH-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/ + ${INSTALL_DATA} ${WRKSRC}/misc/bash-completion \ + ${STAGEDIR}${PREFIX}/share/bash-completion/completions/ninja + +do-install-ZSH-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/misc/zsh-completion \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_ninja do-test: build cd ${WRKSRC} && ./ninja ninja_test && ./ninja_test