summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/py-pywatchman/Makefile18
-rw-r--r--sysutils/py-pywatchman/distinfo6
-rw-r--r--sysutils/py-pywatchman/files/patch-setup.py11
-rw-r--r--sysutils/py-pywatchman/pkg-descr3
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.