1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

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
This commit is contained in:
Nicola Vitale 2024-09-13 10:53:50 +02:00
parent fadfc614aa
commit 97f4659b8c
No known key found for this signature in database
GPG Key ID: A51E190C4C0808D0
4 changed files with 39 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1726214620
SHA256 (urlscan-1.0.3.tar.gz) = 9df791861f0baea1d9c7254f9f98ed23fc193219bbd4edd1c4fcfce7d14ef7d7
SIZE (urlscan-1.0.3.tar.gz) = 35771

View File

@ -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.