Date: Wed, 26 Apr 2023 20:37:44 GMT From: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 89d71d7e16ce - main - x11/py-pyscreeze: New port: cross-platform screenshot module for python Message-ID: <202304262037.33QKbiph013882@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=89d71d7e16cebde85f652d366147496e171148e8 commit 89d71d7e16cebde85f652d366147496e171148e8 Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2023-04-26 20:36:41 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2023-04-26 20:36:41 +0000 x11/py-pyscreeze: New port: cross-platform screenshot module for python PyScreeze can take screenshots, save them to files, and locate images within the screen. This is useful if you have a small image of, say, a button that needs to be clicked and want to locate it on the screen. Screenshot functionality requires the Pillow module. OS X uses the screencapture command, which comes with the operating system. Linux/FreeBSD uses the scrot command. --- x11/Makefile | 1 + x11/py-pyscreeze/Makefile | 23 +++++++++++++++++++++++ x11/py-pyscreeze/distinfo | 3 +++ x11/py-pyscreeze/pkg-descr | 7 +++++++ 4 files changed, 34 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index bdc7ab03f1fe..d948980fb968 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -314,6 +314,7 @@ SUBDIR += py-mouseinfo SUBDIR += py-pynput SUBDIR += py-pyscreenshot + SUBDIR += py-pyscreeze SUBDIR += py-python-xapp SUBDIR += py-pyvirtualdisplay SUBDIR += py-screeninfo diff --git a/x11/py-pyscreeze/Makefile b/x11/py-pyscreeze/Makefile new file mode 100644 index 000000000000..5594119b63c4 --- /dev/null +++ b/x11/py-pyscreeze/Makefile @@ -0,0 +1,23 @@ +PORTNAME= pyscreeze +DISTVERSION= 0.1.28 +CATEGORIES= x11 python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= PyScreeze-${DISTVERSION} + +MAINTAINER= acm@FreeBSD.org +COMMENT= cross-platform screenshot module for python +WWW= https://github.com/asweigart/pyscreeze + +LICENSE= BSD3CLAUSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} + +USES= dos2unix python:3.6+ +USE_PYTHON= autoplist distutils + +DOS2UNIX_GLOB= *.py + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/x11/py-pyscreeze/distinfo b/x11/py-pyscreeze/distinfo new file mode 100644 index 000000000000..42a1959fc685 --- /dev/null +++ b/x11/py-pyscreeze/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1682524999 +SHA256 (PyScreeze-0.1.28.tar.gz) = 4428600ed19b30cd3f4b5d83767d198fc1dbae7439eecf9bd795445c009b67ae +SIZE (PyScreeze-0.1.28.tar.gz) = 25547 diff --git a/x11/py-pyscreeze/pkg-descr b/x11/py-pyscreeze/pkg-descr new file mode 100644 index 000000000000..d8b29a89c44b --- /dev/null +++ b/x11/py-pyscreeze/pkg-descr @@ -0,0 +1,7 @@ +PyScreeze can take screenshots, save them to files, and locate images within +the screen. This is useful if you have a small image of, say, a button that +needs to be clicked and want to locate it on the screen. + +Screenshot functionality requires the Pillow module. OS X uses the +screencapture command, which comes with the operating system. Linux/FreeBSD +uses the scrot command.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304262037.33QKbiph013882>