git: dad718c47631 - 2022Q1 - textproc/py-mkdocs-material-extensions: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Jan 2022 20:51:57 UTC
The branch 2022Q1 has been updated by kai:
URL: https://cgit.FreeBSD.org/ports/commit/?id=dad718c47631930b69a8a2e403671fa0d114cb47
commit dad718c47631930b69a8a2e403671fa0d114cb47
Author: Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-01-09 19:14:11 +0000
Commit: Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-01-12 20:39:16 +0000
textproc/py-mkdocs-material-extensions: New port
MkDocs Material provides numerous icons from Material, FontAwesome, and
Octicons, but it does so by inlining the SVG icons into the source.
Currently there is no easy way access these icons and arbitrarily insert
them into Markdown content. Users must include the icon fonts
themselves and do it with HTML.
This module allows you to use PyMdown Extensions' Emoji extension to
enable easy insertion of MkDocs Material's SVG assets using
simple :emoji-syntax:.
This is done by creating our own emoji index and emoji generator. The
custom index provides a modified version of the Emoji extensions Twemoji
index.
WWW: https://github.com/facelessuser/mkdocs-material-extensions
(cherry picked from commit 3e3092c4d0d42fb97c6dfd210c74fbb51f5456e8)
Approved by: fluffy, riggs (ports-secteam)
---
textproc/Makefile | 1 +
textproc/py-mkdocs-material-extensions/Makefile | 18 ++++++++++++++++++
textproc/py-mkdocs-material-extensions/distinfo | 3 +++
textproc/py-mkdocs-material-extensions/pkg-descr | 13 +++++++++++++
4 files changed, 35 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 9ec205cf7cd1..de86643fdf56 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1368,6 +1368,7 @@
SUBDIR += py-misaka
SUBDIR += py-mistune
SUBDIR += py-mkdocs
+ SUBDIR += py-mkdocs-material-extensions
SUBDIR += py-mkdocs-nature
SUBDIR += py-mwparserfromhell
SUBDIR += py-myst-parser
diff --git a/textproc/py-mkdocs-material-extensions/Makefile b/textproc/py-mkdocs-material-extensions/Makefile
new file mode 100644
index 000000000000..f1f0e3d2124d
--- /dev/null
+++ b/textproc/py-mkdocs-material-extensions/Makefile
@@ -0,0 +1,18 @@
+PORTNAME= mkdocs-material-extensions
+DISTVERSION= 1.0.3
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Markdown extension resources for MkDocs for Material
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+USES= python:3.6+
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-mkdocs-material-extensions/distinfo b/textproc/py-mkdocs-material-extensions/distinfo
new file mode 100644
index 000000000000..1c24aa70d0ef
--- /dev/null
+++ b/textproc/py-mkdocs-material-extensions/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1641745761
+SHA256 (mkdocs-material-extensions-1.0.3.tar.gz) = bfd24dfdef7b41c312ede42648f9eb83476ea168ec163b613f9abd12bbfddba2
+SIZE (mkdocs-material-extensions-1.0.3.tar.gz) = 11722
diff --git a/textproc/py-mkdocs-material-extensions/pkg-descr b/textproc/py-mkdocs-material-extensions/pkg-descr
new file mode 100644
index 000000000000..4753b26d6b8b
--- /dev/null
+++ b/textproc/py-mkdocs-material-extensions/pkg-descr
@@ -0,0 +1,13 @@
+MkDocs Material provides numerous icons from Material, FontAwesome, and
+Octicons, but it does so by inlining the SVG icons into the source. Currently
+there is no easy way access these icons and arbitrarily insert them into
+Markdown content. Users must include the icon fonts themselves and do it with
+HTML.
+
+This module allows you to use PyMdown Extensions' Emoji extension to enable
+easy insertion of MkDocs Material's SVG assets using simple :emoji-syntax:.
+
+This is done by creating our own emoji index and emoji generator. The custom
+index provides a modified version of the Emoji extensions Twemoji index.
+
+WWW: https://github.com/facelessuser/mkdocs-material-extensions