Tue Jul 4 15:49:57 2023 UTC ()
shells/oh-my-posh: restore version output

Restore output of 'oh-my-posh version' command.


(pin)
diff -r1.37 -r1.38 pkgsrc/shells/oh-my-posh/Makefile

cvs diff -r1.37 -r1.38 pkgsrc/shells/oh-my-posh/Makefile (expand / switch to unified diff)

--- pkgsrc/shells/oh-my-posh/Makefile 2023/07/04 01:36:59 1.37
+++ pkgsrc/shells/oh-my-posh/Makefile 2023/07/04 15:49:57 1.38
@@ -1,30 +1,32 @@ @@ -1,30 +1,32 @@
1# $NetBSD: Makefile,v 1.37 2023/07/04 01:36:59 schmonz Exp $ 1# $NetBSD: Makefile,v 1.38 2023/07/04 15:49:57 pin Exp $
2 2
3DISTNAME= oh-my-posh-17.6.0 3DISTNAME= oh-my-posh-17.6.0
4CATEGORIES= shells 4CATEGORIES= shells
5MASTER_SITES= ${MASTER_SITE_GITHUB:=JanDeDobbeleer/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=JanDeDobbeleer/}
6GITHUB_TAG= v${PKGVERSION_NOREV} 6GITHUB_TAG= v${PKGVERSION_NOREV}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://ohmyposh.dev/ 9HOMEPAGE= https://ohmyposh.dev/
10COMMENT= Prompt theme engine for any shell 10COMMENT= Prompt theme engine for any shell
11LICENSE= mit 11LICENSE= mit
12 12
13WRKSRC= ${WRKDIR}/${DISTNAME}/src 13WRKSRC= ${WRKDIR}/${DISTNAME}/src
14 14
15USE_LANGUAGES= c 15USE_LANGUAGES= c
16 16
17INSTALLATION_DIRS= share/${PKGBASE} 17INSTALLATION_DIRS= share/${PKGBASE}
18 18
 19GO_BUILD_PATTERN= -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=${PKGVERSION_NOREV}'" ./...
 20
19post-build: 21post-build:
20 ${MV} ${WRKDIR}/.gopath/bin/src ${WRKDIR}/.gopath/bin/oh-my-posh 22 ${MV} ${WRKDIR}/.gopath/bin/src ${WRKDIR}/.gopath/bin/oh-my-posh
21 23
22post-install: 24post-install:
23 cd ${WRKDIR}/${DISTNAME}/themes && \ 25 cd ${WRKDIR}/${DISTNAME}/themes && \
24 for f in *.json *.yaml; do \ 26 for f in *.json *.yaml; do \
25 ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/${PKGBASE}; \ 27 ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/${PKGBASE}; \
26 done 28 done
27 29
28.include "go-modules.mk" 30.include "go-modules.mk"
29.include "../../lang/go/go-module.mk" 31.include "../../lang/go/go-module.mk"
30.include "../../mk/bsd.pkg.mk" 32.include "../../mk/bsd.pkg.mk"