git: 534806429fa4 - main - www/manpageblog: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Nov 2023 16:44:00 UTC
The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=534806429fa4f0e3eb182533ae73e6ae67086b4b commit 534806429fa4f0e3eb182533ae73e6ae67086b4b Author: Stefan Eßer <se@FreeBSD.org> AuthorDate: 2023-11-12 16:41:40 +0000 Commit: Stefan Eßer <se@FreeBSD.org> CommitDate: 2023-11-12 16:41:40 +0000 www/manpageblog: add new port This is a simple blog generator written in Python, which generates a page layout that resembles a man-page (when using the default template). It is trivial to set-up, highly customizable, and needs very little resources. --- www/Makefile | 1 + www/manpageblog/Makefile | 34 ++++++++++++++++++++++++++++++++++ www/manpageblog/distinfo | 3 +++ www/manpageblog/pkg-descr | 15 +++++++++++++++ www/manpageblog/pkg-plist | 15 +++++++++++++++ 5 files changed, 68 insertions(+) diff --git a/www/Makefile b/www/Makefile index f63eec28662f..0992a48e4d5c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -350,6 +350,7 @@ SUBDIR += lzr SUBDIR += madsonic SUBDIR += man2web + SUBDIR += manpageblog SUBDIR += mathjax SUBDIR += mathjax3 SUBDIR += mathopd diff --git a/www/manpageblog/Makefile b/www/manpageblog/Makefile new file mode 100644 index 000000000000..64047215578c --- /dev/null +++ b/www/manpageblog/Makefile @@ -0,0 +1,34 @@ +PORTNAME= manpageblog +DISTVERSION= 1.0 +CATEGORIES= www +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= se@FreeBSD.org +COMMENT= Simple and static blog generator in manpage design +WWW= https://github.com/gyptazy/manpageblog + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +USES= python shebangfix +USE_GITHUB= yes +GH_ACCOUNT= gyptazy + +SHEBANG_FILES= ${WRKSRC}/manpageblog + +NO_ARCH= yes +NO_BUILD= yes + +OPTIONS_DEFINE= EXAMPLES DOCS + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/blog.conf ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} content ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} _assets ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} _templates ${STAGEDIR}${EXAMPLESDIR} + +.include <bsd.port.mk> diff --git a/www/manpageblog/distinfo b/www/manpageblog/distinfo new file mode 100644 index 000000000000..8231cbf9e113 --- /dev/null +++ b/www/manpageblog/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1699804356 +SHA256 (gyptazy-manpageblog-1.0_GH0.tar.gz) = d31372b6a9ef8e6e2ceaba301e646ec2ace392fb2860233c0c325ff160c8e18b +SIZE (gyptazy-manpageblog-1.0_GH0.tar.gz) = 10956 diff --git a/www/manpageblog/pkg-descr b/www/manpageblog/pkg-descr new file mode 100644 index 000000000000..477cc3627b9a --- /dev/null +++ b/www/manpageblog/pkg-descr @@ -0,0 +1,15 @@ +manpageblog is a small, lightweight blog engine written in Python and +offers several advantages. Firstly, it provides simplicity and ease +of use, making it accessible even for users with limited technical +knowledge. The lightweight nature ensures quick installation and minimal +resource consumption, making it suitable for various hosting environments. +No database is needed at all. + +The blog engine is highly customizable, see the examples director for a +complete set of configuration and template files and some sample content.. + +After installation, you can create a "blog.conf" file based on the one +in the examples directory of this port with "base_path" adjusted to the +document root of your blog and then start a simple HTTP server using the +command "manpageblog -m http.server". The server URL can be changed in +"blog.conf", too. The default value is: "http://localhost:8000". diff --git a/www/manpageblog/pkg-plist b/www/manpageblog/pkg-plist new file mode 100644 index 000000000000..9bf176ad3d01 --- /dev/null +++ b/www/manpageblog/pkg-plist @@ -0,0 +1,15 @@ +bin/manpageblog +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_assets/css/dark.css +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_assets/css/light.css +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_templates/feed.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_templates/item.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_templates/item.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_templates/list.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_templates/page.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/_templates/post.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/blog.conf +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/content/_index.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/content/about.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/content/blog/2023-11-11-manpageblog-release-1.0.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/content/contact.html