Sun Dec 2 07:06:20 2018 UTC ()
bash-completion: install pkgconfig file in pkgsrc standard location.

Use OWN_DIRS to create directory.

Bump PKGREVISION.


(wiz)
diff -r1.10 -r1.11 pkgsrc/shells/bash-completion/Makefile
diff -r1.5 -r1.6 pkgsrc/shells/bash-completion/PLIST

cvs diff -r1.10 -r1.11 pkgsrc/shells/bash-completion/Makefile (expand / switch to context diff)
--- pkgsrc/shells/bash-completion/Makefile 2018/10/19 20:28:25 1.10
+++ pkgsrc/shells/bash-completion/Makefile 2018/12/02 07:06:20 1.11
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2018/10/19 20:28:25 leot Exp $
+# $NetBSD: Makefile,v 1.11 2018/12/02 07:06:20 wiz Exp $
 #
 # Note to packagers:
 # packages installing additional completion files should drop
@@ -6,6 +6,7 @@
 # with the name of the package as file name.
 
 DISTNAME=	bash-completion-2.8
+PKGREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	${MASTER_SITE_GITHUB:=scop/}
 GITHUB_RELEASE= ${PKGVERSION_NOREV}
@@ -18,6 +19,8 @@
 
 USE_TOOLS+=	bash:run gmake
 
+OWN_DIRS+=	share/bash-completion.d
+
 USE_LANGUAGES=	# none
 GNU_CONFIGURE=	yes
 
@@ -27,5 +30,11 @@
 SUBST_STAGE.path=	pre-build
 SUBST_FILES.path+=	README
 SUBST_MESSAGE.path=	Fixing path to completion files.
+
+INSTALLATION_DIRS=	lib/pkgconfig
+
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/share/pkgconfig/bash-completion.pc \
+		${DESTDIR}${PREFIX}/lib/pkgconfig/bash-completion.pc
 
 .include "../../mk/bsd.pkg.mk"

cvs diff -r1.5 -r1.6 pkgsrc/shells/bash-completion/PLIST (expand / switch to context diff)
--- pkgsrc/shells/bash-completion/PLIST 2018/10/19 20:28:25 1.5
+++ pkgsrc/shells/bash-completion/PLIST 2018/12/02 07:06:20 1.6
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.5 2018/10/19 20:28:25 leot Exp $
+@comment $NetBSD: PLIST,v 1.6 2018/12/02 07:06:20 wiz Exp $
 etc/profile.d/bash_completion.sh
+lib/pkgconfig/bash-completion.pc
 share/bash-completion/bash_completion
 share/bash-completion/completions/2to3
 share/bash-completion/completions/7z
@@ -659,5 +660,3 @@
 share/bash-completion/helpers/python
 share/cmake/bash-completion/bash-completion-config-version.cmake
 share/cmake/bash-completion/bash-completion-config.cmake
-share/pkgconfig/bash-completion.pc
-@pkgdir share/bash-completion.d