pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-ghcide devel/hs-ghcide: Generate shell comple...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97b67a47914d
branches:  trunk
changeset: 374764:97b67a47914d
user:      pho <pho%pkgsrc.org@localhost>
date:      Sat Feb 26 08:53:55 2022 +0000

description:
devel/hs-ghcide: Generate shell completion scripts with optparse-applicative

Although it is no longer recommended to invoke ghcide directly, that
doesn't mean we shouldn't generate completion scripts for it.

diffstat:

 devel/hs-ghcide/Makefile |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r baf7d60434df -r 97b67a47914d devel/hs-ghcide/Makefile
--- a/devel/hs-ghcide/Makefile  Sat Feb 26 08:41:28 2022 +0000
+++ b/devel/hs-ghcide/Makefile  Sat Feb 26 08:53:55 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2022/02/26 03:57:56 pho Exp $
+# $NetBSD: Makefile,v 1.3 2022/02/26 08:53:55 pho Exp $
 
 DISTNAME=      ghcide-1.6.0.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -11,6 +11,12 @@
 CONFIGURE_ARGS+=       -f-test-exe
 CONFIGURE_ARGS+=       -f-bench-exe
 
+# purs is built with optparse-applicative, and can generate shell
+# completion scripts automatically.
+OPTPARSE_APPLICATIVE_EXECUTABLES+=     ghcide
+.include "../../devel/hs-optparse-applicative/application.mk"
+
+# lib:ghcide
 .include "../../converters/hs-aeson/buildlink3.mk"
 .include "../../converters/hs-aeson-pretty/buildlink3.mk"
 .include "../../devel/hs-async/buildlink3.mk"
@@ -33,6 +39,7 @@
 .include "../../textproc/hs-Glob/buildlink3.mk"
 .include "../../textproc/hs-haddock-library/buildlink3.mk"
 .include "../../devel/hs-hashable/buildlink3.mk"
+.include "../../devel/hs-heapsize/buildlink3.mk"
 .include "../../devel/hs-hie-bios/buildlink3.mk"
 .include "../../devel/hs-hie-compat/buildlink3.mk"
 .include "../../devel/hs-hiedb/buildlink3.mk"
@@ -67,7 +74,9 @@
 .include "../../devel/hs-utf8-string/buildlink3.mk"
 .include "../../devel/hs-vector/buildlink3.mk"
 .include "../../devel/hs-vector-algorithms/buildlink3.mk"
+
+# exe:ghcide
 .include "../../devel/hs-gitrev/buildlink3.mk"
-.include "../../devel/hs-heapsize/buildlink3.mk"
+
 .include "../../mk/haskell.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index