diff --git a/misc/py-powerline-status/Makefile b/misc/py-powerline-status/Makefile index b48ff4f4bd54..879919f02b7d 100644 --- a/misc/py-powerline-status/Makefile +++ b/misc/py-powerline-status/Makefile @@ -1,45 +1,51 @@ PORTNAME= powerline-status -PORTVERSION= 2.8.1 -PORTREVISION= 1 +PORTVERSION= 2.8.2 CATEGORIES= misc python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= swills@FreeBSD.org COMMENT= Statusline plugin for vim, zsh, bash, and more LICENSE= MIT LICENSE_FILE= ${WRKSRC}/docs/source/license-and-credits.rst +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=3.2.0:sysutils/py-psutil@${PY_FLAVOR} + USES= python:3.6+ shebangfix OPTIONS_DEFINE= DOCS USE_PYTHON= autoplist distutils DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>=0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} SHEBANG_FILES= powerline/bindings/awesome/powerline-awesome.py \ powerline/bindings/bar/powerline-bar.py \ powerline/bindings/i3/powerline-i3.py \ powerline/bindings/lemonbar/powerline-lemonbar.py USE_GITHUB= yes GH_ACCOUNT= powerline GH_PROJECT= powerline PORTDOCS= * +SPHINX_BUILD_CMD= sphinx-build-${PYTHON_VER} + +post-patch: + @${REINPLACE_CMD} -e 's/%%SPHINXBUILD%%/${SPHINX_BUILD_CMD}/g' ${WRKSRC}/docs/Makefile + do-build-DOCS-on: @make -C ${WRKSRC}/docs man html do-install-DOCS-on: .for file in powerline.1 powerline-daemon.1 powerline-lint.1 powerline-config.1 ${INSTALL_DATA} ${WRKSRC}/docs/_build/man/${file} ${STAGEDIR}${MAN1PREFIX}/man/man1 .endfor cd ${WRKSRC}/docs/_build/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} '! -name .buildinfo' post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/powerline .include diff --git a/misc/py-powerline-status/distinfo b/misc/py-powerline-status/distinfo index 73a3f41656fc..5ec30bf075f3 100644 --- a/misc/py-powerline-status/distinfo +++ b/misc/py-powerline-status/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1609304473 -SHA256 (powerline-powerline-2.8.1_GH0.tar.gz) = a4f36ad9d88a6c90b82427d574c8b5518b3c8b11b6eaf38acf2336064c63565d -SIZE (powerline-powerline-2.8.1_GH0.tar.gz) = 363814 +TIMESTAMP = 1621521899 +SHA256 (powerline-powerline-2.8.2_GH0.tar.gz) = ea4ca0df45b8ea3870ff135cd3c4623ba4b785630be81db7f13bf5e94b3753c7 +SIZE (powerline-powerline-2.8.2_GH0.tar.gz) = 366573 diff --git a/misc/py-powerline-status/files/patch-docs_Makefile b/misc/py-powerline-status/files/patch-docs_Makefile new file mode 100644 index 000000000000..74af56747a57 --- /dev/null +++ b/misc/py-powerline-status/files/patch-docs_Makefile @@ -0,0 +1,10 @@ +--- docs/Makefile.orig 2021-05-20 16:12:08 UTC ++++ docs/Makefile +@@ -1,6 +1,6 @@ + # Makefile for Sphinx documentation + SPHINXOPTS = +-SPHINXBUILD = sphinx-build ++SPHINXBUILD = %%SPHINXBUILD%% + PAPER = + BUILDDIR = _build + diff --git a/misc/py-powerline-status/files/patch-powerline_version.py b/misc/py-powerline-status/files/patch-powerline_version.py deleted file mode 100644 index 5d7be852116b..000000000000 --- a/misc/py-powerline-status/files/patch-powerline_version.py +++ /dev/null @@ -1,13 +0,0 @@ ---- powerline/version.py.orig 2021-01-17 14:39:35 UTC -+++ powerline/version.py -@@ -7,9 +7,5 @@ from traceback import print_exc - __version__ = "2.8.1" - - def get_version(): -- try: -- return __version__ + '.dev9999+git.' + str(subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()) -- except Exception: -- print_exc() -- return __version__ -+ return __version__ - diff --git a/misc/py-powerline-status/pkg-message b/misc/py-powerline-status/pkg-message index 5c4029d44045..e40dcf8b70e3 100644 --- a/misc/py-powerline-status/pkg-message +++ b/misc/py-powerline-status/pkg-message @@ -1,32 +1,32 @@ [ { type: install message: <