Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2024 13:27:49 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 82049bff7845 - main - textproc/py-mdx_wikilink_plus: New port
Message-ID:  <202409171327.48HDRnVg008694@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=82049bff78458eff806741082b77dc0da3b8dc9f

commit 82049bff78458eff806741082b77dc0da3b8dc9f
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-09-17 13:25:49 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-09-17 13:27:43 +0000

    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
---
 textproc/Makefile                       |  1 +
 textproc/py-mdx_wikilink_plus/Makefile  | 21 +++++++++++++++++++++
 textproc/py-mdx_wikilink_plus/distinfo  |  3 +++
 textproc/py-mdx_wikilink_plus/pkg-descr |  7 +++++++
 4 files changed, 32 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409171327.48HDRnVg008694>