git: b32e04acf371 - main - textproc/txt2tags: Adopt/Update to 3.8

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Wed, 15 Mar 2023 08:45:27 UTC
The branch main has been updated by eduardo:

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

commit b32e04acf37101648de204a99bd70068c1224b61
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-03-15 08:32:33 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-03-15 08:45:11 +0000

    textproc/txt2tags: Adopt/Update to 3.8
    
    - Switch to DISTVERSION
    - Use MASTER_SITES=PYPI
    
    ChangeLog: https://github.com/txt2tags/txt2tags/releases/tag/3.8
---
 textproc/txt2tags/Makefile  | 38 +++++++++-----------------------------
 textproc/txt2tags/distinfo  |  6 +++---
 textproc/txt2tags/pkg-descr | 12 +++++++++++-
 3 files changed, 23 insertions(+), 33 deletions(-)

diff --git a/textproc/txt2tags/Makefile b/textproc/txt2tags/Makefile
index a351bd66fb9d..14c421878e83 100644
--- a/textproc/txt2tags/Makefile
+++ b/textproc/txt2tags/Makefile
@@ -1,39 +1,19 @@
 PORTNAME=	txt2tags
-PORTVERSION=	3.7
-CATEGORIES=	textproc
+DISTVERSION=	3.8
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Convert simply formatted text into markup (e.g., HTML)
+MAINTAINER=	eduardo@FreeBSD.org
+COMMENT=	Convert plain text into many markup languages
 WWW=		https://txt2tags.org/
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		python:3.6+ shebangfix
-SHEBANG_FILES=	txt2tags.py
-USE_GITHUB=	yes
-NO_BUILD=	yes
-NO_ARCH=	yes
-
-PLIST_FILES=	bin/${PORTNAME}
-PORTDOCS=	*
-PORTEXAMPLES=	*
-
-OPTIONS_DEFINE=	DOCS EXAMPLES
+USES=		python
+USE_PYTHON=	autoplist distutils
 
-do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/txt2tags.py ${STAGEDIR}${PREFIX}/bin/txt2tags
-
-do-install-EXAMPLES-on:
-	@cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} extras ${STAGEDIR}${EXAMPLESDIR}
-
-do-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/CHANGELOG.md ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-.for doc in markup rules userguide
-	@cd ${WRKSRC}/docs/${doc} && ${WRKSRC}/txt2tags.py ${doc}.t2t
-	${INSTALL_DATA} ${WRKSRC}/docs/${doc}/${doc}.html ${STAGEDIR}${DOCSDIR}
-.endfor
+NO_ARCH=	yes
 
 .include <bsd.port.mk>
diff --git a/textproc/txt2tags/distinfo b/textproc/txt2tags/distinfo
index e57b8f0886da..fb32dbe0ea45 100644
--- a/textproc/txt2tags/distinfo
+++ b/textproc/txt2tags/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1613155353
-SHA256 (txt2tags-txt2tags-3.7_GH0.tar.gz) = ba745fc1aa98996578afadeb325173f7032a40f161dc4f6f7a7aa08848d11d03
-SIZE (txt2tags-txt2tags-3.7_GH0.tar.gz) = 248392
+TIMESTAMP = 1678867941
+SHA256 (txt2tags-3.8.tar.gz) = 379869e866ed85225181ac65583827781a166c907de8bb40a9f3daf7b16c3483
+SIZE (txt2tags-3.8.tar.gz) = 51692
diff --git a/textproc/txt2tags/pkg-descr b/textproc/txt2tags/pkg-descr
index 2f50fd46b459..61cceb1954ef 100644
--- a/textproc/txt2tags/pkg-descr
+++ b/textproc/txt2tags/pkg-descr
@@ -1 +1,11 @@
-txt2tags is a utility to turn simply formatted text into markup (e.g., HTML).
+txt2tags reads a text file with minimal markup such as **bold** and //italic//
+and converts it to many formats, such as:
+
+- AsciiDoc
+- DocBook
+- HTML
+- LaTeX
+- MoinMoin
+- UNIX man page
+- Wikipedia/MediaWiki
+- and many others.