From owner-dev-commits-ports-main@freebsd.org Sun Jul 4 07:36:54 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 21580660426; Sun, 4 Jul 2021 07:36:54 +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 4GHgcj5qKcz4dcc; Sun, 4 Jul 2021 07:36:53 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 ACF166D09; Sun, 4 Jul 2021 07:36:53 +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 1647arNB080378; Sun, 4 Jul 2021 07:36:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1647arsK080377; Sun, 4 Jul 2021 07:36:53 GMT (envelope-from git) Date: Sun, 4 Jul 2021 07:36:53 GMT Message-Id: <202107040736.1647arsK080377@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 262b774a5f64 - main - graphics/py-gphoto2: the port had been updated (+) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 262b774a5f64ad0eecbc510c5972a43d65c3c69d Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2021 07:36:54 -0000 The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=262b774a5f64ad0eecbc510c5972a43d65c3c69d commit 262b774a5f64ad0eecbc510c5972a43d65c3c69d Author: Alexey Dokuchaev AuthorDate: 2021-07-04 07:34:26 +0000 Commit: Alexey Dokuchaev CommitDate: 2021-07-04 07:34:29 +0000 graphics/py-gphoto2: the port had been updated (+) - Update to the latest version 2.2.4 - Simplify commit 2e9a47e964 and respect CFLAGS - Use EXAMPLESDIR_REL and DOCSDIR_REL variables - Amend the port description text while here --- graphics/py-gphoto2/Makefile | 18 ++++++------------ graphics/py-gphoto2/distinfo | 6 +++--- graphics/py-gphoto2/files/extra-patch-setup.py | 11 ----------- graphics/py-gphoto2/pkg-descr | 5 ++++- 4 files changed, 13 insertions(+), 27 deletions(-) diff --git a/graphics/py-gphoto2/Makefile b/graphics/py-gphoto2/Makefile index 6e9b27ffc4e8..cc373802acae 100644 --- a/graphics/py-gphoto2/Makefile +++ b/graphics/py-gphoto2/Makefile @@ -1,5 +1,5 @@ PORTNAME= gphoto2 -PORTVERSION= 2.0.0 +PORTVERSION= 2.2.4 CATEGORIES= graphics python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,22 +13,16 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libgphoto2.so:graphics/libgphoto2 -USES= compiler pkgconfig python:3.6+ shebangfix +USES= pkgconfig python:3.6+ shebangfix USE_PYTHON= autoplist concurrent distutils SHEBANG_FILES= examples/*.py OPTIONS_DEFINE= DOCS EXAMPLES post-patch: - ${REINPLACE_CMD} \ - -e 's|share/python-gphoto2/examples|${EXAMPLESDIR:S,${PREFIX}/,,}|' \ - -e 's|share/python-gphoto2|${DOCSDIR:S,${PREFIX}/,,}|' \ + @${REINPLACE_CMD} -e '/-O3/d' \ + -e 's|share/python-gphoto2/examples|${EXAMPLESDIR_REL}|' \ + -e 's|share/python-gphoto2|${DOCSDIR_REL}|' \ ${WRKSRC}/setup.py -.include - -.if ${CHOSEN_COMPILER_TYPE} == gcc -EXTRA_PATCHES= ${FILESDIR}/extra-patch-setup.py -.endif - -.include +.include diff --git a/graphics/py-gphoto2/distinfo b/graphics/py-gphoto2/distinfo index 146b054c3788..7de6935615b1 100644 --- a/graphics/py-gphoto2/distinfo +++ b/graphics/py-gphoto2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1576064452 -SHA256 (python-gphoto2/gphoto2-2.0.0.tar.gz) = 28294fce05114cd0389040105baa310b6e5082696242fd736aeefee2b55c6c07 -SIZE (python-gphoto2/gphoto2-2.0.0.tar.gz) = 7235515 +TIMESTAMP = 1604948179 +SHA256 (python-gphoto2/gphoto2-2.2.4.tar.gz) = 48b4c4ab70826d3ddaaf7440564d513c02d78680fa690994b0640d383ffb8a7d +SIZE (python-gphoto2/gphoto2-2.2.4.tar.gz) = 1807843 diff --git a/graphics/py-gphoto2/files/extra-patch-setup.py b/graphics/py-gphoto2/files/extra-patch-setup.py deleted file mode 100644 index 8ee48823122a..000000000000 --- a/graphics/py-gphoto2/files/extra-patch-setup.py +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.py.orig 2018-01-02 11:44:51 UTC -+++ setup.py -@@ -83,7 +83,7 @@ mod_src_dir = os.path.join( - 'src', mod_src_dir + '-gp' + '.'.join(map(str, best_match))) - - extra_compile_args = [ -- '-O3', '-Wno-unused-variable', '-Wno-unused-but-set-variable', -+ '-O3', '-Wno-unused-variable', - '-Wno-unused-label', '-Wno-strict-prototypes', - '-DGPHOTO2_VERSION=' + '0x{:02x}{:02x}{:02x}'.format(*gphoto2_version)] - if 'PYTHON_GPHOTO2_STRICT' in os.environ: diff --git a/graphics/py-gphoto2/pkg-descr b/graphics/py-gphoto2/pkg-descr index 6abcea21d994..6bc2278f5ccb 100644 --- a/graphics/py-gphoto2/pkg-descr +++ b/graphics/py-gphoto2/pkg-descr @@ -1,3 +1,6 @@ -python-gphoto2 provides Python interface to libgphoto2. +python-gphoto2 is a comprehensive Python interface (or binding) to +libgphoto2. It is built using SWIG to automatically generate the +interface code. This gives direct access to nearly all available +libgphoto2 functions, but sometimes in a rather un-Pythonic manner. WWW: https://pypi.org/project/gphoto2/