Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 25 additions & 26 deletions Formula/d/dvr-scan.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
class DvrScan < Formula
include Language::Python::Virtualenv

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"
Expand All @@ -31,30 +25,32 @@
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
Expand All @@ -75,8 +71,11 @@
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
Expand Down
3 changes: 2 additions & 1 deletion pypi_formula_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Loading