pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ghc92 Install a bash completion script



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0cab0e0780c
branches:  trunk
changeset: 373259:d0cab0e0780c
user:      pho <pho%pkgsrc.org@localhost>
date:      Thu Feb 10 12:21:11 2022 +0000

description:
Install a bash completion script

diffstat:

 lang/ghc92/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3c8fb7b1d7bd -r d0cab0e0780c lang/ghc92/Makefile
--- a/lang/ghc92/Makefile       Thu Feb 10 11:35:21 2022 +0000
+++ b/lang/ghc92/Makefile       Thu Feb 10 12:21:11 2022 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2022/02/06 05:36:15 pho Exp $
+# $NetBSD: Makefile,v 1.2 2022/02/10 12:21:11 pho Exp $
 # -----------------------------------------------------------------------------
 # Package metadata
 #
 DISTNAME=      ghc-9.2.1-src
 PKGNAME=       ${DISTNAME:S/-src$//}
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz
@@ -190,8 +191,11 @@
 # Substitutions for INSTALL and DEINSTALL that handles package.cache.
 FILES_SUBST+=  GHC_VERSION=${PKGVERSION_NOREV}
 
+INSTALLATION_DIRS+=    share/bash-completion/completions
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/utils/completion/ghc.bash \
+               ${DESTDIR}${PREFIX}/share/bash-completion/completions/ghc
 # We don't want package.cache to be in the PLIST.
-post-install:
        ${RM} -f ${DESTDIR}${PREFIX}/lib/${PKGNAME_NOREV}/package.conf.d/package.cache
 
 



Home | Main Index | Thread Index | Old Index