git: 2333238c92da - main - textproc/py-furo: Install missing static assets (generated by webpack)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 00:31:55 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2333238c92da0b66cc7fbb6f1b9e0c9cc4167df1

commit 2333238c92da0b66cc7fbb6f1b9e0c9cc4167df1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-25 00:31:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-25 00:31:18 +0000

    textproc/py-furo: Install missing static assets (generated by webpack)
    
    - Bump PORTREVISION for package change
    
    Reported by:    antoine
---
 textproc/py-furo/Makefile  | 9 ++++++++-
 textproc/py-furo/distinfo  | 4 +++-
 textproc/py-furo/pkg-plist | 8 ++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/textproc/py-furo/Makefile b/textproc/py-furo/Makefile
index ad78af741d9f..57ff251490b4 100644
--- a/textproc/py-furo/Makefile
+++ b/textproc/py-furo/Makefile
@@ -2,9 +2,13 @@
 
 PORTNAME=	furo
 PORTVERSION=	2022.1.2
+PORTREVISION=	1
 CATEGORIES=	textproc python
-MASTER_SITES=	CHEESESHOP
+MASTER_SITES=	CHEESESHOP \
+		LOCAL/sunpoet:static
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
+		${DISTNAME}-static${EXTRACT_SUFX}:static
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Clean customizable Sphinx documentation theme
@@ -24,4 +28,7 @@ NO_ARCH=	yes
 post-patch:
 	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
 
+post-install:
+	cd ${WRKDIR}/static/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/furo/theme/furo/static/
+
 .include <bsd.port.mk>
diff --git a/textproc/py-furo/distinfo b/textproc/py-furo/distinfo
index 40489b8a13b1..789926199cb3 100644
--- a/textproc/py-furo/distinfo
+++ b/textproc/py-furo/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1642102353
+TIMESTAMP = 1643045828
 SHA256 (furo-2022.1.2.tar.gz) = b217f218cbcd423ffbfe69baa79389d4ecebf2d86f0d593c44ef31da7b5aed30
 SIZE (furo-2022.1.2.tar.gz) = 1659274
+SHA256 (furo-2022.1.2-static.tar.gz) = f6aa4ae25f7c4a8e91856c1312dab5c4fc4d25caea85f5c00827731aff5c0d64
+SIZE (furo-2022.1.2-static.tar.gz) = 38236
diff --git a/textproc/py-furo/pkg-plist b/textproc/py-furo/pkg-plist
new file mode 100644
index 000000000000..4cb3f5bf9cfe
--- /dev/null
+++ b/textproc/py-furo/pkg-plist
@@ -0,0 +1,8 @@
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/scripts/furo-extensions.js
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/scripts/furo.js
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/scripts/furo.js.LICENSE.txt
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/scripts/furo.js.map
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/styles/furo-extensions.css
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/styles/furo-extensions.css.map
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/styles/furo.css
+%%PYTHON_SITELIBDIR%%/furo/theme/furo/static/styles/furo.css.map