git: 97f4659b8c44 - main - textproc/py-urlscan: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Sep 2024 08:58:48 UTC
The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=97f4659b8c4434200efc8d0c51b9272b61e2ccd3 commit 97f4659b8c4434200efc8d0c51b9272b61e2ccd3 Author: Nicola Vitale <nivit@FreeBSD.org> AuthorDate: 2024-09-13 08:53:50 +0000 Commit: Nicola Vitale <nivit@FreeBSD.org> CommitDate: 2024-09-13 08:53:50 +0000 textproc/py-urlscan: Add new port Urlscan parses an email message or file and scans it for URLs and email addresses. It then displays the URLs and their context within the message, and allows you to choose one or more URLs to send to your Web browser. Alternatively, it send a list of all URLs to stdout. https://github.com/firecat53/urlscan --- textproc/Makefile | 1 + textproc/py-urlscan/Makefile | 31 +++++++++++++++++++++++++++++++ textproc/py-urlscan/distinfo | 3 +++ textproc/py-urlscan/pkg-descr | 4 ++++ 4 files changed, 39 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index a00f74288f9f..bb53bba40754 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1670,6 +1670,7 @@ SUBDIR += py-ufal.udpipe SUBDIR += py-unicodeitplus SUBDIR += py-untangle + SUBDIR += py-urlscan SUBDIR += py-wasabi SUBDIR += py-wavedrom SUBDIR += py-wcmatch diff --git a/textproc/py-urlscan/Makefile b/textproc/py-urlscan/Makefile new file mode 100644 index 000000000000..7aba60e9e0ae --- /dev/null +++ b/textproc/py-urlscan/Makefile @@ -0,0 +1,31 @@ +PORTNAME= urlscan +DISTVERSION= 1.0.3 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Mutt and terminal url selector (similar to urlview) +WWW= https://github.com/firecat53/urlscan + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.4.0:devel/py-hatch-vcs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>=1.25:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urwid>=1.2.1:devel/py-urwid@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +OPTIONS_DEFINE= DOCS + +post-patch: + ${REINPLACE_CMD} \ + -e '/^LICENSE =/d' ${WRKSRC}/pyproject.toml + +post-patch-DOCS-off: + ${REINPLACE_CMD} \ + -e '/^"README.md" =/d' ${WRKSRC}/pyproject.toml + +.include <bsd.port.mk> diff --git a/textproc/py-urlscan/distinfo b/textproc/py-urlscan/distinfo new file mode 100644 index 000000000000..c5eb65f62241 --- /dev/null +++ b/textproc/py-urlscan/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1726214620 +SHA256 (urlscan-1.0.3.tar.gz) = 9df791861f0baea1d9c7254f9f98ed23fc193219bbd4edd1c4fcfce7d14ef7d7 +SIZE (urlscan-1.0.3.tar.gz) = 35771 diff --git a/textproc/py-urlscan/pkg-descr b/textproc/py-urlscan/pkg-descr new file mode 100644 index 000000000000..1d2177ec7ab0 --- /dev/null +++ b/textproc/py-urlscan/pkg-descr @@ -0,0 +1,4 @@ +Urlscan parses an email message or file and scans it for URLs and email +addresses. It then displays the URLs and their context within the message, +and allows you to choose one or more URLs to send to your Web browser. +Alternatively, it send a list of all URLs to stdout.