From nobody Wed Apr 26 20:37:44 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q69fc2z32z47H4x; Wed, 26 Apr 2023 20:37:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q69fc2XCrz4P2R; Wed, 26 Apr 2023 20:37:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682541464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ugFEBADWFPF/w5BxTSAcb/GDhtHKlEebOVa/OueKVl0=; b=S7JU93vqbT+RHbUEJY/A40NHGwVIZ1N73ksFpfX3gwKfGCE2OosZjdf0sS3jg2G/aF+mqY OswzXco0WJXmvt+EBzcsNMM7dxeRdd26GfUG3YyvcVpXzrHvwR8Di7iohvax8B4B9TwjkA mPEqDHtMVZvC4XyDkQd10k340CCJfiYYIKr6P6O4i4ULG7AwSyL4wHklzRsb5spVdg6rH/ 8gjKtRNFjQ6l4xEgUtPHwwzG6sqGCZ8Fy/eUU0WX4fwu1lXVRSjzCFAQS8c3hnLF4RS2H5 WF8+zLnAfcF377c4KnXSeD+8L4brkOXQ+PbS+OdHkMDGKeiRJRVIkKv9SmATJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682541464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ugFEBADWFPF/w5BxTSAcb/GDhtHKlEebOVa/OueKVl0=; b=e1iOMbe0EkybK0E5p6jbH+ud4LiW0ng/mG9DFZ0SQp676RsZ7DotVDWDSFj3k+dnxjgoUK H3rnV9gC9PuF83+XVs4GwqdPFmcVCMYw9r3KSIlGlTzIUW2jHgLkUU7zgKBJi85piwlXCt 49BS9n2xcB7wjN1bGUoi0Up7cFklxq4ZJphHFFA4+q/WP7HYm8YmN0SKI29VLRyl2a3Hf1 y+hgcW+0LCfz5oszUA5q3iqVE5ztmrM2olfZZ9KS+jDiWaLm72wC1SkANdhmT68pOVXJ9x AlutQmoLxlrf/3nMooahjeKaxisAD9myRZbwxnHb+g9ZH6fxBppK9udz4q2jtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682541464; a=rsa-sha256; cv=none; b=IrcgACz3oM/6/aDX7AryvKeV3c8ZTK79Zy2GeKfjZTvBjqqMBXMVFmcNVvcOCMuHApYrON QsYHQgp5b3HInouLseeCqLCnbd5VxLd5SFSz7LbLdRlIok0efPFfoK7wHeP6G/ndsryaTR 6uTtoLBJxvJZ5JEzlFCQhmEU/lOhA9s3zMPYJNgZo6/r5c7W+E6l/6gYbpzdqiRBo+hFpo ZBx4OVsqBAkENLWx6MYDmT9a45HyHJgnXSsA5PRbM7T5PXgdY4U7ZPXY64CCgWA8/82pFT KsY3PDSPX/K4O5JzYk/Dk4QR4pgtirLPw/0e9FMVnQaJ1E6yzz//fWx4nd8tMQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q69fc1HhFzpTW; Wed, 26 Apr 2023 20:37:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33QKbi5c013883; Wed, 26 Apr 2023 20:37:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33QKbiph013882; Wed, 26 Apr 2023 20:37:44 GMT (envelope-from git) Date: Wed, 26 Apr 2023 20:37:44 GMT Message-Id: <202304262037.33QKbiph013882@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 89d71d7e16ce - main - x11/py-pyscreeze: New port: cross-platform screenshot module for python List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 89d71d7e16cebde85f652d366147496e171148e8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=89d71d7e16cebde85f652d366147496e171148e8 commit 89d71d7e16cebde85f652d366147496e171148e8 Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-04-26 20:36:41 +0000 Commit: Jose Alonso Cardenas Marquez 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 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.