diff --git a/Formula/d/dvr-scan.rb b/Formula/d/dvr-scan.rb index 5c0bf6a815b8..f97cca3ea10a 100644 --- a/Formula/d/dvr-scan.rb +++ b/Formula/d/dvr-scan.rb @@ -3,24 +3,19 @@ class DvrScan < Formula desc "Extract scenes with motion from videos" homepage "https://www.dvr-scan.com/" - url "https://github.com/Breakthrough/DVR-Scan/archive/refs/tags/v1.7.0.1-release.tar.gz" - sha256 "c0bdb1d1963a1df38d30ba6ded04bc37013b143c551360a177fdde4fe33e7fc9" + url "https://files.pythonhosted.org/packages/8c/9e/b4772f3c942a00a1ea7cce8055958e503292d314bff51feda1429a271f7a/dvr_scan-1.7.tar.gz" + version "1.7.0.1" + sha256 "f7036f8e679cd14bb61417266b1f8cff4f365a00227bff3d6ed75200f33e5c53" license "BSD-2-Clause" - - # All release versions end with `-release` suffix - livecheck do - url :stable - regex(/^v?(\d+(?:\.\d+)+)-release$/i) - end - - no_autobump! because: :requires_manual_review + head "https://github.com/Breakthrough/DVR-Scan.git", branch: "main" bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "986102fcac41135a62884a15d909914ae48e9f2a5932164386800763dad551a1" - sha256 cellar: :any_skip_relocation, arm64_ventura: "8b3b52d9b93bfd31ab99d6cc94d335c4b06449aeb32dc2e592b629d76e658979" - sha256 cellar: :any_skip_relocation, sonoma: "a8225c786db4e4b76944d871a97872d1f69cddc5dd81d6fb8e3458697f227a44" - sha256 cellar: :any_skip_relocation, ventura: "f9455478612e42c382db2216da511f8b680eb5304c4cfddd87ccb7698aec9949" - sha256 cellar: :any_skip_relocation, x86_64_linux: "aeece253f4474e20ffa1b16386bf88b76b7cd0aa2862dfa83e1f88e4768a8b53" + rebuild 1 + sha256 cellar: :any_skip_relocation, arm64_sonoma: "d2aa5464002c26e0b4afe47e2b09dfcdbfd2a25422c3e98c232b8d7a8dfcd4aa" + sha256 cellar: :any_skip_relocation, arm64_ventura: "70f057f3106aa1de405c48923ea9d8b2c225a72bf45d3f58cc58a3fe0c7a2851" + sha256 cellar: :any_skip_relocation, sonoma: "eea7a60068ab2dacd603c5f2ed9f96913006511e1fdd7a2482c2a69e67278f6c" + sha256 cellar: :any_skip_relocation, ventura: "5b1bd609001d48e7ba57651cb155476a83c69af8f770e1d2a6479101d0884345" + sha256 cellar: :any_skip_relocation, x86_64_linux: "948e7ef0ca0180ec176c543082969dcc247ecb3d6df91bf1b456f59a86478175" end depends_on "cmake" => :build @@ -31,30 +26,32 @@ class DvrScan < Formula depends_on "python@3.13" on_macos do - resource "pyobjc-core" do - url "https://files.pythonhosted.org/packages/5d/07/2b3d63c0349fe4cf34d787a52a22faa156225808db2d1531fe58fabd779d/pyobjc_core-10.3.2.tar.gz" - sha256 "dbf1475d864ce594288ce03e94e3a98dc7f0e4639971eb1e312bdf6661c21e0e" - end - - resource "pyobjc-framework-cocoa" do - url "https://files.pythonhosted.org/packages/39/41/4f09a5e9a6769b4dafb293ea597ed693cc0def0e07867ad0a42664f530b6/pyobjc_framework_cocoa-10.3.2.tar.gz" - sha256 "673968e5435845bef969bfe374f31a1a6dc660c98608d2b84d5cae6eafa5c39d" - end + depends_on "llvm" => :build if DevelopmentTools.clang_build_version <= 1699 end resource "click" do - url "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz" - sha256 "ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a" + url "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz" + sha256 "27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202" end resource "cython" do - url "https://files.pythonhosted.org/packages/5a/25/886e197c97a4b8e254173002cdc141441e878ff29aaa7d9ba560cd6e4866/cython-3.0.12.tar.gz" - sha256 "b988bb297ce76c671e28c97d017b95411010f7c77fa6623dd0bb47eed1aee1bc" + url "https://files.pythonhosted.org/packages/18/40/7b17cd866158238db704965da1b5849af261dbad393ea3ac966f934b2d39/cython-3.1.2.tar.gz" + sha256 "6bbf7a953fa6762dfecdec015e3b054ba51c0121a45ad851fa130f63f5331381" end resource "platformdirs" do - url "https://files.pythonhosted.org/packages/b6/2d/7d512a3913d60623e7eb945c6d1b4f0bddf1d0b7ada5225274c87e5b53d1/platformdirs-4.3.7.tar.gz" - sha256 "eb437d586b6a0986388f0d6f74aa0cde27b48d0e3d66843640bfb6bdcdb6e351" + url "https://files.pythonhosted.org/packages/fe/8b/3c73abc9c759ecd3f1f7ceff6685840859e8070c4d947c93fae71f6a0bf2/platformdirs-4.3.8.tar.gz" + sha256 "3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc" + end + + resource "pyobjc-core" do + url "https://files.pythonhosted.org/packages/e8/e9/0b85c81e2b441267bca707b5d89f56c2f02578ef8f3eafddf0e0c0b8848c/pyobjc_core-11.1.tar.gz" + sha256 "b63d4d90c5df7e762f34739b39cc55bc63dbcf9fb2fb3f2671e528488c7a87fe" + end + + resource "pyobjc-framework-cocoa" do + url "https://files.pythonhosted.org/packages/4b/c5/7a866d24bc026f79239b74d05e2cf3088b03263da66d53d1b4cf5207f5ae/pyobjc_framework_cocoa-11.1.tar.gz" + sha256 "87df76b9b73e7ca699a828ff112564b59251bb9bbe72e610e670a4dc9940d038" end resource "scenedetect" do @@ -75,8 +72,11 @@ class DvrScan < Formula def install # Help `pyobjc-framework-cocoa` pick correct SDK after removing -isysroot from Python formula ENV.append_to_cflags "-isysroot #{MacOS.sdk_path}" if OS.mac? + # pyobjc-core uses "-fdisable-block-signature-string" introduced in clang 17 + ENV.llvm_clang if DevelopmentTools.clang_build_version <= 1699 - virtualenv_install_with_resources + without = %w[pyobjc-core pyobjc-framework-cocoa] unless OS.mac? + virtualenv_install_with_resources without: end test do diff --git a/pypi_formula_mappings.json b/pypi_formula_mappings.json index d3bc32f9bd5b..b07b5047de93 100644 --- a/pypi_formula_mappings.json +++ b/pypi_formula_mappings.json @@ -302,7 +302,8 @@ "exclude_packages": ["certifi", "cryptography", "numpy", "pygit2"] }, "dvr-scan": { - "exclude_packages": ["numpy"] + "exclude_packages": ["numpy"], + "extra_packages": ["pyobjc-framework-cocoa"] }, "dxpy": { "exclude_packages": ["cryptography", "certifi"]