svn commit: r474969 - head/devel/arcanist

Mateusz Piotrowski 0mp at FreeBSD.org
Thu Jul 19 16:17:48 UTC 2018


Author: 0mp
Date: Thu Jul 19 16:17:47 2018
New Revision: 474969
URL: https://svnweb.freebsd.org/changeset/ports/474969

Log:
  Enable Bash completion.
  
  Arcanist is shipped with a Bash completion script. The script isn't installed
  in the directories of the bash-completion library so it's never activated.
  
  This patch creates a symbolic link to the script in the directories of the
  bash-completion library so that the library is able to pick up the completion
  script for arc when a user requests a command completion for the first time.
  
  Reviewed by:	grembo (maintainer), mat (mentor)
  Approved by:	mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D16345

Modified:
  head/devel/arcanist/Makefile
  head/devel/arcanist/pkg-plist

Modified: head/devel/arcanist/Makefile
==============================================================================
--- head/devel/arcanist/Makefile	Thu Jul 19 16:03:22 2018	(r474968)
+++ head/devel/arcanist/Makefile	Thu Jul 19 16:17:47 2018	(r474969)
@@ -2,6 +2,7 @@
 
 PORTNAME=	arcanist
 PORTVERSION=	20180420
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
 
@@ -34,5 +35,7 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}
 	cd ${WRKSRC} ; ${PAX} -rw * ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}
 	${LN} -sf ../${PHP_DESTDIR}/scripts/arcanist.php ${STAGEDIR}${PREFIX}/bin/arc
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/
+	${RLN} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/resources/shell/bash-completion ${STAGEDIR}${PREFIX}/share/bash-completion/completions/arc
 
 .include <bsd.port.mk>

Modified: head/devel/arcanist/pkg-plist
==============================================================================
--- head/devel/arcanist/pkg-plist	Thu Jul 19 16:03:22 2018	(r474968)
+++ head/devel/arcanist/pkg-plist	Thu Jul 19 16:17:47 2018	(r474969)
@@ -921,3 +921,4 @@ lib/php/arcanist/src/workflow/ArcanistWhichWorkflow.ph
 lib/php/arcanist/src/workflow/ArcanistWorkflow.php
 lib/php/arcanist/src/workflow/exception/ArcanistCapabilityNotSupportedException.php
 lib/php/arcanist/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
+share/bash-completion/completions/arc


More information about the svn-ports-all mailing list