blob: 8f52f0e0b97d15a60abd7fc6c7066f1ccaa6c35b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.30 2022/11/14 16:41:10 wiz Exp $
.include "../../sysutils/salt/Makefile.common"
PKGNAME= ${DISTNAME:S/-/-docs-/}
COMMENT= Documentation for salt
USE_TOOLS+= gmake pax
BUILD_DEPENDS+= salt-[0-9]*:../../sysutils/salt
TOOL_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.2.3nb1:../../textproc/py-sphinx
TOOL_DEPENDS+= ${PYPKGPREFIX}-sqlite3>=1.2.3nb1:../../databases/py-sqlite3
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}
PYTHON_VERSIONS_INCOMPATIBLE= 27
# Contains hardcoded paths that may refer to paths used during the build, for
# example /opt/tools on SmartOS.
CHECK_WRKREF_SKIP+= */*.html */*.txt
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"
|