Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
www/py-django40: unbreak build for HTML docs (+)
Django40 require at least sphinx 4.5.0 to generate offline HTML docs.
Set version check for dependency

Another issue is gmake-style construction in docs/Makefile which caused
build errors with non-default python.
Force gmake usage for HTMLDOCS option to resolve build issue.

Pointyhat to:	wen (for skipped dependencies chech)
Approved by:	portmgr blanket (fix build)
  • Loading branch information
fluffykhv committed Jun 27, 2022
1 parent 943f17d commit 64b2298
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/py-django40/Makefile
Expand Up @@ -46,14 +46,15 @@ OPTIONS_GROUP_DATABASE= PGSQL MYSQL SQLITE
OPTIONS_DEFAULT=SQLITE
HTMLDOCS_DESC= Install HTML documentation (requires Sphinx)

HTMLDOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
HTMLDOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=4.5.0,1:textproc/py-sphinx@${PY_FLAVOR}
HTMLDOCS_IMPLIES= DOCS
HTMLDOCS_USES= gmake
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${PY_FLAVOR}
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=1.3.13:databases/py-mysqlclient@${PY_FLAVOR}
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}

post-build-HTMLDOCS-on:
cd ${WRKSRC}/docs && ${MAKE} html SPHINXBUILD=sphinx-build-${PYTHON_VER}
cd ${WRKSRC}/docs && ${GMAKE} html SPHINXBUILD=sphinx-build-${PYTHON_VER}

post-install:
${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}/${MAN1PREFIX}/man/man1
Expand Down

0 comments on commit 64b2298

Please sign in to comment.