summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-09-17 15:25:49 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-09-17 15:27:43 +0200
commit82049bff78458eff806741082b77dc0da3b8dc9f (patch)
treea111db80e6989b9b45adea94603840ecc84f018f
parentwww/tomcat9: 9.0.94 → 9.0.95 (diff)
textproc/py-mdx_wikilink_plus: New port
Converts wikilinks ([[wikilink]]) to relative links, including support for GitHub image variant. Absolute links are kept as is (with an automatic label made from the file path part in the URL if label is not given explicitly). You must not use this extension with markdown.extensions.wikilinks. This extension is designed to provide the functionalities of markdown.extensions.wikilinks with some extra features. Choose either one. WWW: https://github.com/neurobin/mdx_wikilink_plus
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-mdx_wikilink_plus/Makefile21
-rw-r--r--textproc/py-mdx_wikilink_plus/distinfo3
-rw-r--r--textproc/py-mdx_wikilink_plus/pkg-descr7
4 files changed, 32 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index bb53bba40754..d987df8fc1d7 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1445,6 +1445,7 @@
SUBDIR += py-mdformat
SUBDIR += py-mdit-py-plugins
SUBDIR += py-mdurl
+ SUBDIR += py-mdx_wikilink_plus
SUBDIR += py-merge3
SUBDIR += py-mike
SUBDIR += py-misaka
diff --git a/textproc/py-mdx_wikilink_plus/Makefile b/textproc/py-mdx_wikilink_plus/Makefile
new file mode 100644
index 000000000000..b699f6667636
--- /dev/null
+++ b/textproc/py-mdx_wikilink_plus/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= mdx_wikilink_plus
+DISTVERSION= 1.4.1
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= Converts wikilinks to relative links
+WWW= https://github.com/neurobin/mdx_wikilink_plus
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}markdown>=2.6:textproc/py-markdown@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist distutils unittest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-mdx_wikilink_plus/distinfo b/textproc/py-mdx_wikilink_plus/distinfo
new file mode 100644
index 000000000000..bbab7b3915d1
--- /dev/null
+++ b/textproc/py-mdx_wikilink_plus/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1726579294
+SHA256 (mdx_wikilink_plus-1.4.1.tar.gz) = b82446c00a49a57a5ccab48e6053168397f6ed818d2183a8a0f7472aa0e8e3ca
+SIZE (mdx_wikilink_plus-1.4.1.tar.gz) = 9896
diff --git a/textproc/py-mdx_wikilink_plus/pkg-descr b/textproc/py-mdx_wikilink_plus/pkg-descr
new file mode 100644
index 000000000000..19702769c5b9
--- /dev/null
+++ b/textproc/py-mdx_wikilink_plus/pkg-descr
@@ -0,0 +1,7 @@
+Converts wikilinks ([[wikilink]]) to relative links, including support for
+GitHub image variant. Absolute links are kept as is (with an automatic label
+made from the file path part in the URL if label is not given explicitly).
+
+You must not use this extension with markdown.extensions.wikilinks. This
+extension is designed to provide the functionalities of
+markdown.extensions.wikilinks with some extra features. Choose either one.