git: 5706cc1f96d9 - main - mail/py-standard-mailcap: Add py-standard-mailcap 3.13.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Sep 2026 19:27:26 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5706cc1f96d9973adb3ec9857d7d914ed53765f8
commit 5706cc1f96d9973adb3ec9857d7d914ed53765f8
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-29 18:55:00 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-29 19:17:27 +0000
mail/py-standard-mailcap: Add py-standard-mailcap 3.13.0
The mailcap module from the Python standard library, redistributed as a
standalone package.
It provides support for reading mailcap files and determining how to handle
files based on their MIME types.
---
mail/Makefile | 1 +
mail/py-standard-mailcap/Makefile | 24 ++++++++++++++++++++++
mail/py-standard-mailcap/distinfo | 3 +++
.../py-standard-mailcap/files/patch-pyproject.toml | 9 ++++++++
mail/py-standard-mailcap/pkg-descr | 5 +++++
5 files changed, 42 insertions(+)
diff --git a/mail/Makefile b/mail/Makefile
index 31903cbf4ecf..2c1e1d2ced54 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -551,6 +551,7 @@
SUBDIR += py-resend
SUBDIR += py-rfc6555
SUBDIR += py-spf-engine
+ SUBDIR += py-standard-mailcap
SUBDIR += py-tlsrpt-reporter
SUBDIR += py-validate_email
SUBDIR += pymsgauth
diff --git a/mail/py-standard-mailcap/Makefile b/mail/py-standard-mailcap/Makefile
new file mode 100644
index 000000000000..8cc3ec486798
--- /dev/null
+++ b/mail/py-standard-mailcap/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= standard-mailcap
+PORTVERSION= 3.13.0
+CATEGORIES= mail python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= standard_mailcap-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Standard library mailcap redistribution
+WWW= https://github.com/youknowone/python-deadlib/tree/main/mailcap \
+ https://github.com/youknowone/python-deadlib
+
+LICENSE= PSFL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/mail/py-standard-mailcap/distinfo b/mail/py-standard-mailcap/distinfo
new file mode 100644
index 000000000000..2dce1520ece8
--- /dev/null
+++ b/mail/py-standard-mailcap/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1790435626
+SHA256 (standard_mailcap-3.13.0.tar.gz) = 19ed7955dbeaccb35e8bb05b2b5443ce55c1f932a8cbe7a5c13d42f9db4f499a
+SIZE (standard_mailcap-3.13.0.tar.gz) = 8797
diff --git a/mail/py-standard-mailcap/files/patch-pyproject.toml b/mail/py-standard-mailcap/files/patch-pyproject.toml
new file mode 100644
index 000000000000..4e2e7ee58b9c
--- /dev/null
+++ b/mail/py-standard-mailcap/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
+--- pyproject.toml.orig 2024-10-30 15:59:22 UTC
++++ pyproject.toml
+@@ -21,5 +21,5 @@ find = {include = ["mailcap*"]}
+ "Homepage" = "https://github.com/youknowone/python-deadlib"
+
+ [build-system]
+-requires = ["setuptools>=75.0"]
++requires = ["setuptools>=61"]
+ build-backend = "setuptools.build_meta"
diff --git a/mail/py-standard-mailcap/pkg-descr b/mail/py-standard-mailcap/pkg-descr
new file mode 100644
index 000000000000..1cf6cc541446
--- /dev/null
+++ b/mail/py-standard-mailcap/pkg-descr
@@ -0,0 +1,5 @@
+The mailcap module from the Python standard library, redistributed as a
+standalone package.
+
+It provides support for reading mailcap files and determining how to handle
+files based on their MIME types.