git: 4fb194ad52fb - main - mail/py-pymilter: patch some incorrect version number references

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Thu, 08 May 2025 16:11:39 UTC
The branch main has been updated by matthew:

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

commit 4fb194ad52fbef38b667227df0599f704de11fd0
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2025-05-08 16:08:15 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2025-05-08 16:11:37 +0000

    mail/py-pymilter: patch some incorrect version number references
    
    Looks like upstream's attempt to release version 1.0.6 didn't quite go
    all the way.  There are other refences to 1.0.5 still in the source
    tarball, but those aren't involved in building the pkg, so ignored.
    
    Reported by:    Herbert J Shukra
---
 mail/py-pymilter/Makefile                           |  1 +
 mail/py-pymilter/files/patch-Milter_____init____.py | 11 +++++++++++
 mail/py-pymilter/files/patch-setup.py               | 11 +++++++++++
 3 files changed, 23 insertions(+)

diff --git a/mail/py-pymilter/Makefile b/mail/py-pymilter/Makefile
index 9678f0a167d5..46973576c7ca 100644
--- a/mail/py-pymilter/Makefile
+++ b/mail/py-pymilter/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pymilter
 DISTVERSION=	1.0.6
+PORTREVISION=	1
 DISTVERSIONPREFIX=	${GH_PROJECT}-
 CATEGORIES=	mail python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/mail/py-pymilter/files/patch-Milter_____init____.py b/mail/py-pymilter/files/patch-Milter_____init____.py
new file mode 100644
index 000000000000..6fef8bd3f886
--- /dev/null
+++ b/mail/py-pymilter/files/patch-Milter_____init____.py
@@ -0,0 +1,11 @@
+--- Milter/__init__.py.orig	2025-05-08 14:18:12 UTC
++++ Milter/__init__.py
+@@ -9,7 +9,7 @@ from __future__ import print_function
+ # This code is under the GNU General Public License.  See COPYING for details.
+ 
+ from __future__ import print_function
+-__version__ = '1.0.5'
++__version__ = '1.0.6'
+ 
+ import os
+ import re
diff --git a/mail/py-pymilter/files/patch-setup.py b/mail/py-pymilter/files/patch-setup.py
new file mode 100644
index 000000000000..3c8cca25e588
--- /dev/null
+++ b/mail/py-pymilter/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2025-05-08 14:17:14 UTC
++++ setup.py
+@@ -17,7 +17,7 @@ modules = ["mime"]
+ modules = ["mime"]
+ 
+ # NOTE: importing Milter to obtain version fails when milter.so not built
+-setup(name = "pymilter", version = '1.0.5',
++setup(name = "pymilter", version = '1.0.6',
+ 	description="Python interface to sendmail milter API",
+ 	long_description=long_description,
+     long_description_content_type='text/markdown',