pkgsrc/sysutils/salt-docs/Makefile
2019-04-25 07:32:34 +00:00

34 lines
872 B
Makefile

# $NetBSD: Makefile,v 1.22 2019/04/25 07:33:21 maya Exp $
DISTNAME= salt-2019.2.0
PKGNAME= ${DISTNAME:S/-/-docs-/}
PKGREVISION= 1
CATEGORIES= sysutils python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/salt/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://saltstack.org/
COMMENT= Documentation for salt
LICENSE= apache-2.0
USE_TOOLS+= gmake pax
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.2.3nb1*:../../textproc/py-sphinx
NO_CONFIGURE= yes
BUILD_DIRS= doc
BUILD_TARGET= html
MAKE_FLAGS+= SPHINXBUILD=${PREFIX}/bin/sphinx-build${PYVERSSUFFIX}
HTMLDIR= share/doc/salt
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
INSTALLATION_DIRS= ${HTMLDIR}
do-install:
cd ${WRKSRC}/doc/_build/html && pax -rw -pp . ${DESTDIR}${PREFIX}/${HTMLDIR}
cd ${DESTDIR}${PREFIX} && ${FIND} ${HTMLDIR} -type f -print >>${PLIST_SRC}
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"