git: ddbe2018485e - main - devel/py-extremes: Fix build with setuptools 58.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:49:58 UTC
The branch main has been updated by sunpoet:

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

commit ddbe2018485e4fa108ecc5c05c55f32ed6858d0d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 13:32:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:38:08 +0000

    devel/py-extremes: Fix build with setuptools 58.0.0+
    
    With hat:       python
---
 devel/py-extremes/files/patch-2to3     | 11 +++++++++++
 devel/py-extremes/files/patch-setup.py |  4 ++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/devel/py-extremes/files/patch-2to3 b/devel/py-extremes/files/patch-2to3
new file mode 100644
index 000000000000..20f6e6b77e18
--- /dev/null
+++ b/devel/py-extremes/files/patch-2to3
@@ -0,0 +1,11 @@
+--- peak/util/extremes.py.orig	2007-11-21 06:50:24 UTC
++++ peak/util/extremes.py
+@@ -32,7 +32,7 @@ class Extreme(object):     # Courtesy of PEP 326
+         return self.__cmp__(other)>=0
+ 
+     def __ne__(self,other):
+-        return self.__cmp__(other)<>0
++        return self.__cmp__(other)!=0
+ 
+ Max = Extreme(1, "Max")
+ Min = Extreme(-1, "Min")
diff --git a/devel/py-extremes/files/patch-setup.py b/devel/py-extremes/files/patch-setup.py
index 3b52e1471503..709c3bf3954d 100644
--- a/devel/py-extremes/files/patch-setup.py
+++ b/devel/py-extremes/files/patch-setup.py
@@ -1,5 +1,5 @@
---- setup.py.orig	Wed Nov 21 14:25:46 2007
-+++ setup.py	Tue Jan 22 11:28:34 2008
+--- setup.py.orig	2009-02-05 04:14:48 UTC
++++ setup.py
 @@ -1,8 +1,6 @@
  #!/usr/bin/env python
  """Distutils setup file"""