textproc/py-sphinx-notfound-page: Add new port

Sphinx-notfound-page is a Sphinx extension to create custom 404 pages and help
you to generate proper resource links (js, css, images, etc) to render the page
properly.

This extension was originally developed to be used on Read the Docs but it can
be used in other hosting services as well.

https://sphinx-notfound-page.readthedocs.io/
This commit is contained in:
Nicola Vitale 2024-11-01 17:40:30 +01:00
parent 593150e23e
commit 96fae7c50d
No known key found for this signature in database
GPG key ID: A51E190C4C0808D0
4 changed files with 33 additions and 0 deletions

View file

@ -1612,6 +1612,7 @@
SUBDIR += py-sphinx-me SUBDIR += py-sphinx-me
SUBDIR += py-sphinx-multiversion SUBDIR += py-sphinx-multiversion
SUBDIR += py-sphinx-multiversion-zrepl SUBDIR += py-sphinx-multiversion-zrepl
SUBDIR += py-sphinx-notfound-page
SUBDIR += py-sphinx-sitemap SUBDIR += py-sphinx-sitemap
SUBDIR += py-sphinx-tabs SUBDIR += py-sphinx-tabs
SUBDIR += py-sphinx-theme-builder SUBDIR += py-sphinx-theme-builder

View file

@ -0,0 +1,23 @@
PORTNAME= sphinx-notfound-page
DISTVERSION= 1.0.4
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSIONFULL}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Generate 404 Not Found Pages Automatically for Sphinx Docs
WWW= https://sphinx-notfound-page.readthedocs.io/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.9.0:devel/py-flit-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=5:textproc/py-sphinx@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist pep517
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1730477793
SHA256 (sphinx_notfound_page-1.0.4.tar.gz) = 2a52f49cd367b5c4e64072de1591cc367714098500abf4ecb9a3ecb4fec25aae
SIZE (sphinx_notfound_page-1.0.4.tar.gz) = 519228

View file

@ -0,0 +1,6 @@
Sphinx-notfound-page is a Sphinx extension to create custom 404 pages and help
you to generate proper resource links (js, css, images, etc) to render the page
properly.
This extension was originally developed to be used on Read the Docs but it can
be used in other hosting services as well.