Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2021 15:19:38 GMT
From:      Neel Chauhan <nc@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 39926f897fca - main - New port: textproc/py-markdown3: Python implementation of Markdown
Message-ID:  <202104201519.13KFJcdd092746@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=39926f897fcaab93c2e5ec13d596cced68267cd5

commit 39926f897fcaab93c2e5ec13d596cced68267cd5
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2021-04-20 15:18:38 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2021-04-20 15:18:38 +0000

    New port: textproc/py-markdown3: Python implementation of Markdown
    
    Differential Revision:  https://reviews.freebsd.org/D29803
---
 textproc/Makefile                          |  1 +
 textproc/py-markdown/Makefile              |  2 ++
 textproc/py-markdown3/Makefile             | 31 ++++++++++++++++++++++++++++++
 textproc/py-markdown3/distinfo             |  3 +++
 textproc/py-markdown3/files/patch-setup.py | 10 ++++++++++
 textproc/py-markdown3/pkg-descr            | 13 +++++++++++++
 6 files changed, 60 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index eec612bc6bb2..4c3de1f85211 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1318,6 +1318,7 @@
     SUBDIR += py-markdown-it-py
     SUBDIR += py-markdown-math
     SUBDIR += py-markdown2
+    SUBDIR += py-markdown3
     SUBDIR += py-markuppy
     SUBDIR += py-markups
     SUBDIR += py-markupsafe
diff --git a/textproc/py-markdown/Makefile b/textproc/py-markdown/Makefile
index b61b28ce370d..09c15a57682d 100644
--- a/textproc/py-markdown/Makefile
+++ b/textproc/py-markdown/Makefile
@@ -23,6 +23,8 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
 USES=		python:3.6+
 USE_PYTHON=	distutils concurrent autoplist
 
+CONFLICTS=	${PYTHON_PKGNAMEPREFIX}markdown
+
 NO_ARCH=	yes
 
 do-test:
diff --git a/textproc/py-markdown3/Makefile b/textproc/py-markdown3/Makefile
new file mode 100644
index 000000000000..31cb9c80c796
--- /dev/null
+++ b/textproc/py-markdown3/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	markdown
+PORTVERSION=	3.3.4
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	3
+DISTNAME=	Markdown-${PORTVERSION}
+
+MAINTAINER=	nc@FreeBSD.org
+COMMENT=	Python implementation of Markdown
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytidylib>0:textproc/py-pytidylib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	distutils concurrent autoplist
+
+CONFLICTS=	${PYTHON_PKGNAMEPREFIX}markdown
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
diff --git a/textproc/py-markdown3/distinfo b/textproc/py-markdown3/distinfo
new file mode 100644
index 000000000000..149882e34f05
--- /dev/null
+++ b/textproc/py-markdown3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1618638255
+SHA256 (Markdown-3.3.4.tar.gz) = 31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49
+SIZE (Markdown-3.3.4.tar.gz) = 322192
diff --git a/textproc/py-markdown3/files/patch-setup.py b/textproc/py-markdown3/files/patch-setup.py
new file mode 100644
index 000000000000..49128bf88917
--- /dev/null
+++ b/textproc/py-markdown3/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig	2021-02-24 19:57:42 UTC
++++ setup.py
+@@ -129,5 +129,6 @@ setup(
+         'Topic :: Text Processing :: Filters',
+         'Topic :: Text Processing :: Markup :: HTML',
+         'Topic :: Text Processing :: Markup :: Markdown'
+-    ]
++    ],
++    test_suite='nose.collector',
+ )
diff --git a/textproc/py-markdown3/pkg-descr b/textproc/py-markdown3/pkg-descr
new file mode 100644
index 000000000000..51d400b926cc
--- /dev/null
+++ b/textproc/py-markdown3/pkg-descr
@@ -0,0 +1,13 @@
+This is a Python implementation of John Gruber's Markdown. It is almost
+completely compliant with the reference implementation, though there are a
+few very minor differences.
+
+Features:
+
+  * International Input
+  * Extensions
+  * Output Formats
+  * "Safe Modes"
+  * Command Line Interface
+
+WWW: https://pythonhosted.org/Markdown/



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