Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2023 08:18:52 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f58017fbbf3f - main - textproc/py-markdown2: Update to 2.4.10
Message-ID:  <202309030818.3838IqIL082086@gitrepo.freebsd.org>

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

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

commit f58017fbbf3f23ae9073f0202fb3758ec5d0f0a5
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-09-03 07:59:25 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-09-03 07:59:25 +0000

    textproc/py-markdown2: Update to 2.4.10
    
    * Introduce SYNTAX and WAVEDROM options to reflect the settings in
      setup.py accordingly.
    
    * Make the port concurrent safe as it installs a script outside of
      Python's site-lib directory.
    
    * Update WWW as the repository has moved to a new location.
    
    * Hook up the test suite.
    
    Changelog since 2.3.6:
    
    https://github.com/trentm/python-markdown2/compare/2.3.6...2.4.10
    
    PR:             273513, 270923 [1]
    Reported by:    Hubert Tournier [1]
    Approved by:    wen (maintainer)
    MFH:            2023Q3
    Security:       c9b3324f-8e03-4ae3-89ce-8098cdc5bfa9 [1]
                    cf6f3465-e996-4672-9458-ce803f29fdb7 [1]
---
 textproc/py-markdown2/Makefile | 25 +++++++++++++++++++++----
 textproc/py-markdown2/distinfo |  6 +++---
 2 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/textproc/py-markdown2/Makefile b/textproc/py-markdown2/Makefile
index e22c892650b5..99199b7f9ee0 100644
--- a/textproc/py-markdown2/Makefile
+++ b/textproc/py-markdown2/Makefile
@@ -1,18 +1,35 @@
 PORTNAME=	markdown2
-PORTVERSION=	2.3.6
+PORTVERSION=	2.4.10
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	wen@FreeBSD.org
 COMMENT=	Fast and complete Python implementation of Markdown
-WWW=		https://code.google.com/p/python-markdown2/
+WWW=		https://github.com/trentm/python-markdown2
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-USES=		python zip
-USE_PYTHON=	autoplist distutils
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=		SYNTAX WAVEDROM
+OPTIONS_DEFAULT=	SYNTAX WAVEDROM
+
+SYNTAX_DESC=		Code syntax highlighting support
+WAVEDROM_DESC=		WaveDrom support
+
+SYNTAX_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pygments>=2.7.3:textproc/py-pygments@${PY_FLAVOR}
+WAVEDROM_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wavedrom>0:textproc/py-wavedrom@${PY_FLAVOR}
+
+# One test (= markdown2/tm/issue52_hang) always results in an error which
+# is a known failure.
+do-test:
+	cd ${WRKSRC}/test && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test.py
+
 .include <bsd.port.mk>
diff --git a/textproc/py-markdown2/distinfo b/textproc/py-markdown2/distinfo
index a26cf43380b7..69426697a5b6 100644
--- a/textproc/py-markdown2/distinfo
+++ b/textproc/py-markdown2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1538136347
-SHA256 (markdown2-2.3.6.zip) = 08a124043aa0ad36ba2136239547d5011a2b770278abb11a5609611e0040ea05
-SIZE (markdown2-2.3.6.zip) = 166114
+TIMESTAMP = 1693485468
+SHA256 (markdown2-2.4.10.tar.gz) = cdba126d90dc3aef6f4070ac342f974d63f415678959329cc7909f96cc235d72
+SIZE (markdown2-2.4.10.tar.gz) = 123813



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