-
Notifications
You must be signed in to change notification settings - Fork 14
/
vrecord.rb
77 lines (72 loc) · 3.04 KB
/
vrecord.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
class Vrecord < Formula
desc "Capturing a video signal and turning it into a digital file"
homepage "https://github.com/amiaopensource/vrecord"
url "https://github.com/amiaopensource/vrecord/archive/refs/tags/v2024-10-18.tar.gz"
version "2024-10-18"
sha256 "f2c0a3bc9ad36686f07d8fba7364f296be9253aac7e6dfcad0320b85da628517"
head "https://github.com/amiaopensource/vrecord.git", branch: "main"
depends_on "amiaopensource/amiaos/ffmpegdecklink"
depends_on "amiaopensource/amiaos/gtkdialog"
depends_on "cowsay"
on_macos do
depends_on "amiaopensource/amiaos/deckcontrol"
depends_on "bash"
depends_on "gnuplot" unless MacOS.version < :mojave
depends_on "mediaarea/mediaarea/dvrescue"
depends_on "mediaconch"
depends_on "mkvtoolnix" unless MacOS.version < :mojave
depends_on "mpv" unless MacOS.version < :mojave
depends_on "qcli" unless MacOS.version < :mojave
depends_on "xmlstarlet"
if MacOS.version < :mojave
def caveats
<<~EOS
** IMPORTANT FOR macOS INSTALL **
Additional install steps are necessary for a fully functioning Vrecord
install on macOS. Vrecord uses gnuplot, mkvtoolnix, mpv, and qcli for
some optional (though sometimes recommeded) features steps such as
embedding logs into Matroska files and generating QCTools reports.
These programs are automatically installed via homebrew if the Mac OS
is Mojave or greater, else we recommend finding supported installers
(for example mkvtoolnix via
https://mkvtoolnix.download/macos/MKVToolNix-46.0.0.dmg) or consider
updating your version of macOS.
EOS
end
end
end
on_linux do
def caveats
<<~EOS
** IMPORTANT FOR LINUX INSTALL **
Additional install steps are necessary for a fully functioning Vrecord
install on Linux. This includes using the standard package manager to
install gnuplot, xmlstarlet, mkvtoolnix and mediaconch. Additionally,
it often is necessary to remove the Homebrew installed version of SDL2
to prevent conflicts. For more information please see:
https://github.com/amiaopensource/vrecord/blob/master/Resources/Documentation/linux_installation.md
EOS
end
end
def install
bin.install "vrecord"
bin.install "vtest"
prefix.install "Resources/audio_mode.gif"
prefix.install "Resources/dvrecord.png"
prefix.install "Resources/qcview.lua"
prefix.install "Resources/vrecord_functions"
prefix.install "Resources/vrecord_policy_ffv1.xml"
prefix.install "Resources/vrecord_policy_uncompressed.xml"
prefix.install "Resources/vrecord_logo.png"
prefix.install "Resources/vrecord_logo_playback.png"
prefix.install "Resources/vrecord_logo_audio.png"
prefix.install "Resources/vrecord_logo_edit.png"
prefix.install "Resources/vrecord_logo_help.png"
prefix.install "Resources/vrecord_logo_documentation.png"
man1.install "vrecord.1"
man1.install "vtest.1"
end
test do
system "#{bin}/vrecord", "-h"
end
end