khal: update to 0.9.8nb1.

Build and install the man page.
This commit is contained in:
wiz 2018-04-14 20:32:06 +00:00
parent c063ba56e5
commit eddcb8d67e
2 changed files with 12 additions and 11 deletions

View file

@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.23 2017/10/05 22:39:05 wiz Exp $
# $NetBSD: Makefile,v 1.24 2018/04/14 20:32:06 wiz Exp $
DISTNAME= khal-0.9.8
PKGREVISION= 1
CATEGORIES= time net
MASTER_SITES= ${MASTER_SITE_PYPI:=k/khal/}
@ -24,27 +25,26 @@ DEPENDS+= ${PYPKGPREFIX}-vdirsyncer>=0.5.2:../../time/py-vdirsyncer
DEPENDS+= ${PYPKGPREFIX}-xdg>=0.17:../../devel/py-xdg
# not needed, but recommended, so let's just depend on it
DEPENDS+= ${PYPKGPREFIX}-setproctitle-[0-9]*:../../sysutils/py-setproctitle
# for the man page, needs khal installed though, see
# https://github.com/pimutils/khal/issues/598
#USE_TOOLS+= gmake
#BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
#BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinxcontrib-newsfeed-[0-9]*:../../textproc/py-sphinxcontrib-newsfeed
# for the man page
USE_TOOLS+= gmake
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinxcontrib-newsfeed-[0-9]*:../../textproc/py-sphinxcontrib-newsfeed
# TEST_DEPENDS
BUILD_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
PYTHON_VERSIONS_INCOMPATIBLE= 27 # not supported as of 0.8.0
INSTALLATION_DIRS= share/doc/khal
INSTALLATION_DIRS= share/doc/khal ${PKGMANDIR}/man1
REPLACE_PYTHON+= khal/*/*.py
REPLACE_PYTHON+= khal/*.py
# man page generation, see above
#post-build:
# cd ${WRKSRC}/doc && gmake SPHINXBUILD=sphinx-build${PYVERSSUFFIX} man
post-build:
cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} PYTHONPATH=${WRKSRC} ${GMAKE} man SPHINXBUILD=sphinx-build${PYVERSSUFFIX}
post-install:
${INSTALL_DATA} ${WRKSRC}/khal.conf.sample ${DESTDIR}${PREFIX}/share/doc/khal
${INSTALL_MAN} ${WRKSRC}/doc/build/man/khal.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX} tests

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.9 2017/04/04 13:10:58 wiz Exp $
@comment $NetBSD: PLIST,v 1.10 2018/04/14 20:32:06 wiz Exp $
bin/ikhal
bin/khal
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@ -93,4 +93,5 @@ ${PYSITELIB}/khal/utils.pyo
${PYSITELIB}/khal/version.py
${PYSITELIB}/khal/version.pyc
${PYSITELIB}/khal/version.pyo
man/man1/khal.1
share/doc/khal/khal.conf.sample