summaryrefslogtreecommitdiff
path: root/devel/py-p4python
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-p4python')
-rw-r--r--devel/py-p4python/Makefile2
-rw-r--r--devel/py-p4python/distinfo6
-rw-r--r--devel/py-p4python/files/patch-P4API.cpp20
-rw-r--r--devel/py-p4python/files/patch-setup.py49
4 files changed, 11 insertions, 66 deletions
diff --git a/devel/py-p4python/Makefile b/devel/py-p4python/Makefile
index 1e7bc7c62888..9cb3b0c8f99c 100644
--- a/devel/py-p4python/Makefile
+++ b/devel/py-p4python/Makefile
@@ -1,5 +1,5 @@
PORTNAME= p4python
-PORTVERSION= 2024.2.2682690
+PORTVERSION= 2025.1.2767466
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
diff --git a/devel/py-p4python/distinfo b/devel/py-p4python/distinfo
index 8bde5e16aa23..dfbf12b062b6 100644
--- a/devel/py-p4python/distinfo
+++ b/devel/py-p4python/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1735417252
-SHA256 (p4python-2024.2.2682690.tar.gz) = 4206dd31bf77e8ec7e41d19367363dd749b96864e463e0e028fedd607988de6f
-SIZE (p4python-2024.2.2682690.tar.gz) = 85503
+TIMESTAMP = 1750264399
+SHA256 (p4python-2025.1.2767466.tar.gz) = 9e8dac74306df9dfa5e600bb0593c7bbc280c6d74b910e5e722ae853002cc369
+SIZE (p4python-2025.1.2767466.tar.gz) = 84958
diff --git a/devel/py-p4python/files/patch-P4API.cpp b/devel/py-p4python/files/patch-P4API.cpp
deleted file mode 100644
index 54c391b0f08a..000000000000
--- a/devel/py-p4python/files/patch-P4API.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
---- P4API.cpp.orig 2024-12-28 20:29:18 UTC
-+++ P4API.cpp
-@@ -338,7 +338,7 @@ static PyObject * P4API_dvcs_init(P4Adapter * self, Py
- return NULL;
-
-
-- auto_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );
-+ unique_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );
-
- if( personalServer.get() == NULL)
- return NULL;
-@@ -400,7 +400,7 @@ static PyObject * P4API_dvcs_clone(P4Adapter * self, P
- &progress))
- return NULL;
-
-- auto_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );
-+ unique_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );
-
- if( personalServer.get() == NULL)
- return NULL;
diff --git a/devel/py-p4python/files/patch-setup.py b/devel/py-p4python/files/patch-setup.py
index cf207601a273..a3905f716708 100644
--- a/devel/py-p4python/files/patch-setup.py
+++ b/devel/py-p4python/files/patch-setup.py
@@ -1,15 +1,6 @@
---- setup.py.orig 2024-12-30 02:45:50 UTC
+--- setup.py.orig 2025-06-27 04:06:21 UTC
+++ setup.py
-@@ -245,7 +245,7 @@ class p4build_ext(build_ext_module):
- pathToFile = os.path.join(p, "openssl")
- if os.path.exists(pathToFile) and os.access(pathToFile, os.X_OK):
- entry = subprocess.check_output("ldd {0} | grep libssl".format(pathToFile),
-- executable="/bin/bash", shell="True")
-+ executable="/bin/sh", shell="True")
- if entry is not False:
- libpath = os.path.dirname(entry.split()[2])
-
-@@ -277,23 +277,10 @@ class p4build_ext(build_ext_module):
+@@ -305,7 +305,7 @@ class p4build_ext(build_ext_module):
ssl_ver = ""
if not p4_ssl_dir:
@@ -18,23 +9,7 @@
# check for a version of SSL already installed via 'openssl version'
self.ssl, ssl_ver = self.check_installed_ssl() # return libpath or None
-- # we only support 1.0.2 or 1.1.1 using 2019.1 p4api
-- if not (("1.0.2" in ssl_ver) or ("1.1.1" in ssl_ver) or ("3.0" in ssl_ver)):
-- self.ssl = ""
--
-- if not self.ssl:
-- # try downloading and building ssl
-- if self.is_super():
-- (self.ssl, ssl_src, ssl_tarball, loaded_ssl_from_ftp) = self.build_ssl_lib(ssl_ver)
-- p4_ssl_dir = self.ssl
-- p4_ssl_ver = ssl_ver
-- else:
-- print("must be root to build and install SSL")
--
- if not self.ssl:
- print("***********************************************", file=sys.stderr)
- print("** Cannot build P4Python without SSL support **", file=sys.stderr)
-@@ -315,7 +302,7 @@ class p4build_ext(build_ext_module):
+@@ -346,7 +346,7 @@ class p4build_ext(build_ext_module):
p4_api_dir = self.apidir
try:
@@ -43,28 +18,18 @@
releaseVersion = VersionInfo(".")
except IOError:
print("Cannot find Version file in API dir {0}.".format(p4_api_dir))
-@@ -336,9 +323,18 @@ class p4build_ext(build_ext_module):
+@@ -367,8 +367,8 @@ class p4build_ext(build_ext_module):
#spawn._nt_quote_args = monkey_nt_quote_args
# add the paths for p4 headers and library
- inc_path = [str(os.path.join(p4_api_dir, "include", "p4"))]
- lib_path = [str(os.path.join(p4_api_dir, "lib")), str(p4_ssl_dir)]
-+ inc_dir = os.path.join(p4_api_dir, "include", "p4")
-+ if not os.path.exists(inc_dir):
-+ inc_dir = os.path.join(p4_api_dir, "include", "perforce")
++ inc_path = [str(os.path.join(p4_api_dir, "include", "perforce"))]
++ lib_path = [str(os.path.join(p4_api_dir, "lib", "perforce")), str(p4_ssl_dir)]
-+ lib_dir = os.path.join(p4_api_dir, "lib", "perforce")
-+ if not os.path.exists(lib_dir):
-+ lib_dir = os.path.join(p4_api_dir, "lib")
-+
-+ inc_path = [p4_api_dir, inc_dir]
-+ lib_path = [p4_api_dir, lib_dir]
-+
-+
# check if the interpreter is mayapy.exe
namedir = os.path.dirname(os.path.dirname(sys.executable))
- if "maya" in namedir.lower():
-@@ -471,7 +467,7 @@ def cleanup_api(api_dir, tarball):
+@@ -502,7 +502,7 @@ def cleanup_api(api_dir, tarball):
# declare some evil globals