From nobody Wed Sep 27 03:48:54 2023 X-Original-To: dev-commits-ports-main@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 4RwMzV3gjPz4tq6n; Wed, 27 Sep 2023 03:48: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 4RwMzV3B2Tz4fNZ; Wed, 27 Sep 2023 03:48:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695786534; 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=riJRVunMBur+B28mLFgFPpxqBdzcWY93VvIGZzcATck=; b=IUxReTFQjEbYE1gZknTNSodt/SUO+UIKnz5q6q/9xqL+RwVt2aiOOTmQrBODp5oatYcOba slmYihF6N+DGKW5oPmhSMbTzOuNX6+OK6Q6XRah2PXSdLJl0IoMsBjDgBdvkNGNzlguczm WcD1uiru1beZ88Utm7bNxcWSBIJoDCywr9ueUGZPDEzh0YtJC350QEvbUy9/aaWM7Vi+S+ XLmapIcJoGa7YOb72v1n5vjW5zmlofIWqHkza+2rOGsYGrCpX7Id3aJypd1ZpX3MAKxbkG 7KeULg6fO3OOxQ34xwlu3WarTymrX2TrmdO9/UHDz9qW+OXeO2VDJqE5pFRB/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695786534; a=rsa-sha256; cv=none; b=ZyQk2pBMhbDG51PyakHaCRnS0Ejep1VtyJ8NuAg7O0Xh8/ZkZrmwJPYafU8vzePek47DWL sWUL0uYINyIL7s7TbdsKH+bW1umnSrQsHKlpxmIxsSa5Om3+15FvEn0dkEWFac3CJlIP+A WiRVxHs/Yq3kv49vltd5u8VpznLsVifvbwcZ5vuCH6RHcwSvek7geWD2813DPEAJ4d0ffF c9QqtKrweQiJBXSmnJs0S4wLL29tNFuqLDpMs8I6BlcadAsWxTTmpPLtIW0mr4/URmCVj9 ZtCqrSMVSJRAaq7OOFoLF8qkQ7OFi7tKzh5AiinM8IJ3Vab2XE+ATAV6qxst2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695786534; 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=riJRVunMBur+B28mLFgFPpxqBdzcWY93VvIGZzcATck=; b=JRp6o/BNqNtAewV53tpD+zFyRNSZE3YjsbIoT9m8E6YNFWIdN+MgOMpHubl4rlGUcoQAVl wWjnenbn2Av3yr29eYm4gVw9XE4T6/n9XkziAEVF+TEtdQLgjeVa/HM+TZNcncPpTDJ9/2 VokoZBqQ6wVxiqhefznf3ubCat+uk+/RB+grPes5LorpddNioHzJ0ZD3t/PWb8BI0BtLq2 Fp/QMLaVDJb4wPMz8sRCh5N8bOLXPt9H63N3H6fhR2vkjftczHcr90vkTY0gMSqH+pssxl Dh1+3TCkqy4yDaYZ7ZeLidXYWS+bF4yzOZRVYNfyk7xFC+/M13SorEEelzmalA== 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 4RwMzV2FYcz89k; Wed, 27 Sep 2023 03:48:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38R3msdt013779; Wed, 27 Sep 2023 03:48:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38R3msYc013777; Wed, 27 Sep 2023 03:48:54 GMT (envelope-from git) Date: Wed, 27 Sep 2023 03:48:54 GMT Message-Id: <202309270348.38R3msYc013777@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: 0b601c7a3719 - main - graphics/py-gphoto2: update the port to version 2.5.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org 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: 0b601c7a3719272e7fb1dd6698771acfe14d67ac Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=0b601c7a3719272e7fb1dd6698771acfe14d67ac commit 0b601c7a3719272e7fb1dd6698771acfe14d67ac Author: Alexey Dokuchaev AuthorDate: 2023-09-27 03:47:34 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-09-27 03:47:34 +0000 graphics/py-gphoto2: update the port to version 2.5.0 Remove no longer useful DOCS option, propagate EXAMPLES down to `setup.py', garbage-collect `post-patch' target. Reported by: portscout --- graphics/py-gphoto2/Makefile | 10 +++------- graphics/py-gphoto2/distinfo | 6 +++--- graphics/py-gphoto2/files/patch-setup.py | 22 ++++++++++++++++++++++ 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/graphics/py-gphoto2/Makefile b/graphics/py-gphoto2/Makefile index 45ddb99331f5..9467230dd7d6 100644 --- a/graphics/py-gphoto2/Makefile +++ b/graphics/py-gphoto2/Makefile @@ -1,5 +1,5 @@ PORTNAME= gphoto2 -PORTVERSION= 2.3.4 +PORTVERSION= 2.5.0 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -18,12 +18,8 @@ USES= pkgconfig python shebangfix USE_PYTHON= autoplist concurrent distutils SHEBANG_FILES= examples/*.py -OPTIONS_DEFINE= DOCS EXAMPLES +OPTIONS_DEFINE= EXAMPLES -post-patch: - @${REINPLACE_CMD} -e '/-O3/d' \ - -e 's|share/python-gphoto2/examples|${EXAMPLESDIR_REL}|' \ - -e 's|share/python-gphoto2|${DOCSDIR_REL}|' \ - ${WRKSRC}/setup.py +EXAMPLES_MAKE_ENV= WITH_EXAMPLES=yes .include diff --git a/graphics/py-gphoto2/distinfo b/graphics/py-gphoto2/distinfo index a0e1831d752a..d37d35e51e71 100644 --- a/graphics/py-gphoto2/distinfo +++ b/graphics/py-gphoto2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1657095211 -SHA256 (python-gphoto2/gphoto2-2.3.4.tar.gz) = 9846c5fdf3adc34714fdbc7b0e041c9a627fcaa6a5f07b3fd4a68b182ddee3f7 -SIZE (python-gphoto2/gphoto2-2.3.4.tar.gz) = 556634 +TIMESTAMP = 1693652752 +SHA256 (python-gphoto2/gphoto2-2.5.0.tar.gz) = 97d07a3c42067fcae4525600a4ecad5b6b3d3a181cc4c1d594381f411e599e80 +SIZE (python-gphoto2/gphoto2-2.5.0.tar.gz) = 497135 diff --git a/graphics/py-gphoto2/files/patch-setup.py b/graphics/py-gphoto2/files/patch-setup.py new file mode 100644 index 000000000000..f6b4d43f38b2 --- /dev/null +++ b/graphics/py-gphoto2/files/patch-setup.py @@ -0,0 +1,22 @@ +--- setup.py.orig 2023-08-22 09:51:12 UTC ++++ setup.py +@@ -25,7 +25,9 @@ import os + import subprocess + import sys + +-packages = ['gphoto2', 'gphoto2.examples'] ++packages = ['gphoto2'] ++if 'WITH_EXAMPLES' in os.environ: ++ packages.append('gphoto2.examples') + package_dir = {'gphoto2.examples': 'examples'} + package_data = {'gphoto2.examples': ['*']} + exclude_package_data = {'': ['*.c']} +@@ -141,7 +143,7 @@ mod_src_dir = os.path.join('src', mod_src_dir) + package_dir['gphoto2'] = mod_src_dir + + extra_compile_args = [ +- '-O3', '-Wno-unused-variable', '-Wno-unused-but-set-variable', ++ '-Wno-unused-variable', '-Wno-unused-but-set-variable', + '-Wno-unused-label', '-Wno-strict-prototypes'] + if 'PYTHON_GPHOTO2_STRICT' in os.environ: + extra_compile_args.append('-Werror')