pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/khard khard: build and install man page.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff9068bc83a9
branches:  trunk
changeset: 336741:ff9068bc83a9
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jul 21 21:11:37 2019 +0000

description:
khard: build and install man page.

Bump PKGREVISION.

diffstat:

 misc/khard/Makefile |  12 +++++++++---
 misc/khard/PLIST    |   3 ++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (51 lines):

diff -r e9db4a1ae33a -r ff9068bc83a9 misc/khard/Makefile
--- a/misc/khard/Makefile       Sun Jul 21 20:45:09 2019 +0000
+++ b/misc/khard/Makefile       Sun Jul 21 21:11:37 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2019/07/21 08:50:44 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2019/07/21 21:11:37 wiz Exp $
 
 DISTNAME=              khard-0.14.0
+PKGREVISION=           1
 CATEGORIES=            misc net
 # 0.14.0 is missing on pypi: https://github.com/scheibler/khard/issues/215
 #MASTER_SITES=         ${MASTER_SITE_PYPI:=k/khard/}
@@ -17,16 +18,21 @@
 DEPENDS+=              ${PYPKGPREFIX}-ruamel-yaml-[0-9]*:../../devel/py-ruamel-yaml
 DEPENDS+=              ${PYPKGPREFIX}-Unidecode-[0-9]*:../../textproc/py-Unidecode
 DEPENDS+=              ${PYPKGPREFIX}-vobject>=0.9.4:../../textproc/py-vobject
-#TOOL_DEPENDS+=                ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
+TOOL_DEPENDS+=         ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27 # does not support python-2.x any longer
 
-INSTALLATION_DIRS=     share/examples/khard
+INSTALLATION_DIRS=     share/examples/khard ${PKGMANDIR}/man1
 REPLACE_PYTHON+=       */*.py
+USE_TOOLS+=            gmake
+
+pre-build:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} -C doc SPHINXBUILD=sphinx-build${PYVERSSUFFIX} man
 
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/misc/khard/khard.conf.example ${DESTDIR}${PREFIX}/share/examples/khard
        cd ${DESTDIR}${PREFIX}/bin && ${MV} khard khard-${PYVERSSUFFIX}
+       ${INSTALL_DATA} ${WRKSRC}/doc/build/man/khard.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
diff -r e9db4a1ae33a -r ff9068bc83a9 misc/khard/PLIST
--- a/misc/khard/PLIST  Sun Jul 21 20:45:09 2019 +0000
+++ b/misc/khard/PLIST  Sun Jul 21 21:11:37 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2016/08/27 15:50:47 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2019/07/21 21:11:37 wiz Exp $
 bin/khard-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -36,4 +36,5 @@
 ${PYSITELIB}/khard/version.py
 ${PYSITELIB}/khard/version.pyc
 ${PYSITELIB}/khard/version.pyo
+man/man1/khard.1
 share/examples/khard/khard.conf.example



Home | Main Index | Thread Index | Old Index