-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
/
Copy pathcppman.rb
78 lines (63 loc) · 3.69 KB
/
cppman.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
78
class Cppman < Formula
include Language::Python::Virtualenv
desc "C++ 98/11/14/17/20 manual pages from cplusplus.com and cppreference.com"
homepage "https://github.com/aitjcize/cppman"
url "https://files.pythonhosted.org/packages/f7/ec/3965a47a4bfb8426037061ab429320cc306c229827db1c213eda52fe4a4d/cppman-0.5.9.tar.gz"
sha256 "15a4e40ab025b4dcec5a73a50df26b7ddaef7c148fcb197940fff2484f9e9903"
license "GPL-3.0-or-later"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "e7edded6fb04088da0b36108353bc082e82481dd5d6ba603e4313f926c63a8c8"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ef7dc14b3e716c606d544ca2602786015dadcae34900798e5848df1b5481eb4b"
sha256 cellar: :any_skip_relocation, arm64_ventura: "a8850c52d49794b7386b0465fa3be10e8b48d2fbd6dd0ab5243f1e22172b7790"
sha256 cellar: :any_skip_relocation, sonoma: "b53e16784003384fae92a99dea19f97ae79844da5c8f420db45e990534f6ac18"
sha256 cellar: :any_skip_relocation, ventura: "ff6009f665c229db982f2bd5d6241536da69fc60840ef600b7f27483769d050e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3bdb4b1df81dcbf31ee521271f510c565492921d31ce2d3d1070e1a708f53715"
end
depends_on "[email protected]"
uses_from_macos "libxml2", since: :ventura
uses_from_macos "libxslt"
on_system :linux, macos: :ventura_or_newer do
depends_on "groff"
end
resource "beautifulsoup4" do
url "https://files.pythonhosted.org/packages/f0/3c/adaf39ce1fb4afdd21b611e3d530b183bb7759c9b673d60db0e347fd4439/beautifulsoup4-4.13.3.tar.gz"
sha256 "1bd32405dacc920b42b83ba01644747ed77456a65760e285fbc47633ceddaf8b"
end
resource "bs4" do
url "https://files.pythonhosted.org/packages/c9/aa/4acaf814ff901145da37332e05bb510452ebed97bc9602695059dd46ef39/bs4-0.0.2.tar.gz"
sha256 "a48685c58f50fe127722417bae83fe6badf500d54b55f7e39ffe43b798653925"
end
resource "html5lib" do
url "https://files.pythonhosted.org/packages/ac/b6/b55c3f49042f1df3dcd422b7f224f939892ee94f22abcf503a9b7339eaf2/html5lib-1.1.tar.gz"
sha256 "b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f"
end
resource "lxml" do
url "https://files.pythonhosted.org/packages/80/61/d3dc048cd6c7be6fe45b80cedcbdd4326ba4d550375f266d9f4246d0f4bc/lxml-5.3.2.tar.gz"
sha256 "773947d0ed809ddad824b7b14467e1a481b8976e87278ac4a730c2f7c7fcddc1"
end
resource "six" do
url "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz"
sha256 "ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"
end
resource "soupsieve" do
url "https://files.pythonhosted.org/packages/d7/ce/fbaeed4f9fb8b2daa961f90591662df6a86c1abf25c548329a86920aedfb/soupsieve-2.6.tar.gz"
sha256 "e2e68417777af359ec65daac1057404a3c8a5455bb8abc36f1a9866ab1a51abb"
end
resource "typing-extensions" do
url "https://files.pythonhosted.org/packages/76/ad/cd3e3465232ec2416ae9b983f27b9e94dc8171d56ac99b345319a9475967/typing_extensions-4.13.1.tar.gz"
sha256 "98795af00fb9640edec5b8e31fc647597b4691f099ad75f469a2616be1a76dff"
end
resource "webencodings" do
url "https://files.pythonhosted.org/packages/0b/02/ae6ceac1baeda530866a85075641cec12989bd8d31af6d5ab4a3e8c92f47/webencodings-0.5.1.tar.gz"
sha256 "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
end
def install
virtualenv_install_with_resources
# NOTE: Excluding bash completion which uses GNU xargs so has issues on macOS
fish_completion.install_symlink libexec/"share/fish/vendor_completions.d/cppman.fish"
zsh_completion.install_symlink libexec/"share/zsh/vendor-completions/_cppman"
end
test do
assert_match "std::extent", shell_output("#{bin}/cppman -f :extent")
end
end