git: 7ca933a2d979 - main - sysutils/py-pywatchman: Update to v2023.04.24.00

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 28 Apr 2023 16:17:53 UTC
The branch main has been updated by fuz:

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

commit 7ca933a2d9794f6a988993d4311b8e36d54684bb
Author:     Seyed Pouria Mousavizadeh Tehrani <p.mousavizadeh@protonmail.com>
AuthorDate: 2023-04-24 22:54:10 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-04-28 16:13:37 +0000

    sysutils/py-pywatchman: Update to v2023.04.24.00
    
    Reordering done for portclippy.
    Add more description from upstream repo to pkg-descr for portlint.
    Lowering the first character of BROKEN message to portlint.
    Replacing the PORTVERSION with DISTVERSION.
    testing their weird versioning schema with pkg version.
    Also replaced the USES= python:3.6+ with USES= python.
    Patch setup.py file.
    Add watchman directory in WRKSRC_SUBDIR
    
    Submitter becomes maintainer.  Already maintainer of other ports.
    
    Changelog: https://github.com/facebook/watchman/releases/tag/v2023.04.24.00
    
    PR:             271056
---
 sysutils/py-pywatchman/Makefile             | 18 ++++++++----------
 sysutils/py-pywatchman/distinfo             |  6 +++---
 sysutils/py-pywatchman/files/patch-setup.py | 11 +++++++++++
 sysutils/py-pywatchman/pkg-descr            |  3 ++-
 4 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/sysutils/py-pywatchman/Makefile b/sysutils/py-pywatchman/Makefile
index a5d41e099a7e..116a1e10ca73 100644
--- a/sysutils/py-pywatchman/Makefile
+++ b/sysutils/py-pywatchman/Makefile
@@ -1,30 +1,28 @@
 PORTNAME=	pywatchman
-PORTVERSION=	4.9.0
-PORTREVISION=	1
 DISTVERSIONPREFIX=v
+DISTVERSION=	2023.04.24.00
 CATEGORIES=	sysutils python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	p.mousavizadeh@protonmail.com
 COMMENT=	Watchman client for Python
 WWW=		https://pypi.org/project/pywatchman/
 
 LICENSE=	BSD3CLAUSE MIT
 LICENSE_COMB=	multi
 
-RUN_DEPENDS=	watchman>=4:sysutils/watchman
+BROKEN_mips=	depends on watchman, which needs c++11-libs
+BROKEN_mips64=	depends on watchman, which needs c++11-libs
 
-USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+RUN_DEPENDS=	watchman>=4:sysutils/watchman
 
+USES=		python
 USE_GITHUB=	yes
 GH_ACCOUNT=	facebook
 GH_PROJECT=	watchman
+USE_PYTHON=	autoplist concurrent distutils
 
-BROKEN_mips=	Depends on watchman, which needs c++11-libs
-BROKEN_mips64=	Depends on watchman, which needs c++11-libs
-
-WRKSRC_SUBDIR=	python
+WRKSRC_SUBDIR=	watchman/python
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name "*.so" \
diff --git a/sysutils/py-pywatchman/distinfo b/sysutils/py-pywatchman/distinfo
index 8a778969e3ea..9f0f1b53b3bb 100644
--- a/sysutils/py-pywatchman/distinfo
+++ b/sysutils/py-pywatchman/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1536195383
-SHA256 (facebook-watchman-v4.9.0_GH0.tar.gz) = 1f6402dc70b1d056fffc3748f2fdcecff730d8843bb6936de395b3443ce05322
-SIZE (facebook-watchman-v4.9.0_GH0.tar.gz) = 3507999
+TIMESTAMP = 1682368791
+SHA256 (facebook-watchman-v2023.04.24.00_GH0.tar.gz) = 46633adc0eec8870e0cde420cc5b17834e196bdd760c1c977efc6d1eeb104b13
+SIZE (facebook-watchman-v2023.04.24.00_GH0.tar.gz) = 3963110
diff --git a/sysutils/py-pywatchman/files/patch-setup.py b/sysutils/py-pywatchman/files/patch-setup.py
new file mode 100644
index 000000000000..0d9c752979a4
--- /dev/null
+++ b/sysutils/py-pywatchman/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2023-04-24 22:23:26 UTC
++++ setup.py
+@@ -22,7 +22,7 @@ if watchman_src_dir is None:
+ # files. Otherwise it is impossible to obtain a relative path across different
+ # drives. However this has an implication that we will not be able to build this
+ # package outside the repository. Not great but it works.
+-py_dir = os.path.join(watchman_src_dir, "watchman", "python")
++py_dir = os.path.join(watchman_src_dir, "python")
+ if os.name == "nt":
+     os.chdir(py_dir)
+     py_dir = os.path.relpath(py_dir)
diff --git a/sysutils/py-pywatchman/pkg-descr b/sysutils/py-pywatchman/pkg-descr
index f2cc507bbfbd..0352ef194e08 100644
--- a/sysutils/py-pywatchman/pkg-descr
+++ b/sysutils/py-pywatchman/pkg-descr
@@ -1 +1,2 @@
-Connect and query Watchman to discover file changes.
+Watchman exists to watch files and record when they actually change.
+It can also trigger actions when matching files change.