Skip to content

Commit

Permalink
Merge pull request #202095 from Homebrew/codevis
Browse files Browse the repository at this point in the history
codevis 0.8.4 (new formula)
  • Loading branch information
BrewTestBot authored Dec 22, 2024
2 parents 5824a36 + 59932c2 commit 8e35597
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ codec2
codelimit
coder
codespell
codevis
cog
coin3d
coinutils
Expand Down
41 changes: 41 additions & 0 deletions Formula/c/codevis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
class Codevis < Formula
desc "Turns your code into one large image"
homepage "https://github.com/sloganking/codevis"
url "https://github.com/sloganking/codevis/archive/refs/tags/v0.8.4.tar.gz"
sha256 "a4578a1218fc82be8866defe49db4ce6a23088446c18ca3494d3ebc16f931d3f"
license "MIT"
head "https://github.com/sloganking/codevis.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_sequoia: "809aab83526ed594b872942f4edb8cdae2530d7f9abb37fcf148690bf37adbe0"
sha256 cellar: :any, arm64_sonoma: "51ea40fc3d8a3ec373285257f809f4b3eb034b1ca70fd8929600c71df31ae06e"
sha256 cellar: :any, arm64_ventura: "ea1a0d87b40ef80b9703fd13aea536c990a22486e29ffd3da58fe69d358d67ff"
sha256 cellar: :any, sonoma: "fb7c8b97b77b706314852bd71838810c67e783903409ce94edf69b00ad1a36a4"
sha256 cellar: :any, ventura: "acc82b560737c762384696f71560573a66d2327f827265819ebf99c52851bdb2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "de3939e0b77b99e6d62c786955215be6273d5cedae6ccc7e63c3b9a775f7c2cd"
end

depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "oniguruma"

def install
ENV["RUSTONIG_DYNAMIC_LIBONIG"] = "1"
ENV["RUSTONIG_SYSTEM_LIBONIG"] = "1"

system "cargo", "install", *std_cargo_args
end

test do
assert_match version.to_s, shell_output("#{bin}/codevis --version")

(testpath/"main.c").write <<~C
#include <stdio.h>
int main() { printf("Hello, World!\\n"); return 0; }
C

output = shell_output("#{bin}/codevis --input-dir #{testpath} 2>&1")
assert_match "search unicode files done 2 files", output
assert_path_exists testpath/"output.png"
end
end
1 change: 1 addition & 0 deletions audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"aws-crt-cpp": "all",
"codevis": "all",
"get-flash-videos": "1.25.99.03",
"gitless": "0.8.8",
"grt": "0.2.4",
Expand Down

0 comments on commit 8e35597

Please sign in to comment.