pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/coyim coyim: Fixed missing version number in the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b6cd7ea447ab
branches:  trunk
changeset: 334682:b6cd7ea447ab
user:      fox <fox%pkgsrc.org@localhost>
date:      Sun Jun 02 13:41:31 2019 +0000

description:
coyim: Fixed missing version number in the "About" dialog.

1. Added steps to generate the version number file, so that the
   about dialog now displays the version number correctly.

2. Bump PKGREVISION

diffstat:

 chat/coyim/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 34470293d94c -r b6cd7ea447ab chat/coyim/Makefile
--- a/chat/coyim/Makefile       Sun Jun 02 09:48:29 2019 +0000
+++ b/chat/coyim/Makefile       Sun Jun 02 13:41:31 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2019/05/27 15:18:17 bsiegert Exp $
+# $NetBSD: Makefile,v 1.3 2019/06/02 13:41:31 fox Exp $
 
 DISTNAME=      coyim-0.3.11
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=coyim/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    chat
 GITHUB_TAG=    v${PKGVERSION_NOREV}
 EXTRACT_USING= bsdtar
@@ -28,9 +28,12 @@
 COYIM_ICON=            coyim.png
 COYIM_ICON_SRC=                ${WRKSRC}/build/mac-bundle/coy.iconset/icon_32x32%2x.png@localhost
 COYIM_DESKTOP=         ${WRKSRC}/build/coyim.desktop
+COYIM_VERSION_FILE=    ${WRKSRC}/gen_version_file.sh
 
 INSTALLATION_DIRS+=    share/applications share/pixmaps
 
+REPLACE_SH+=           gen_version_file.sh
+
 SUBST_CLASSES+=                        desktop-entry
 SUBST_STAGE.desktop-entry=     post-build
 SUBST_MESSAGE.desktop-entry=   Create desktop entry.
@@ -42,6 +45,9 @@
 
 CHECK_RELRO_SKIP=      bin/coyim
 
+pre-build:
+       ${RUN} cd ${WRKSRC} && ${COYIM_VERSION_FILE} ${GITHUB_TAG}
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKDIR}/bin/coyim ${DESTDIR}${PREFIX}/bin
        ${INSTALL_DATA} ${COYIM_DESKTOP} ${DESTDIR}${PREFIX}/share/applications/



Home | Main Index | Thread Index | Old Index