Skip to content

Commit 54b4135

Browse files
authored
Merge pull request #168374 from lemenkov/autotrace
autotrace 0.31.10 (new formula)
2 parents 70d8f16 + 5179a1c commit 54b4135

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

Formula/a/autotrace.rb

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
class Autotrace < Formula
2+
desc "Convert bitmap to vector graphics"
3+
homepage "https://autotrace.sourceforge.io"
4+
url "https://github.com/autotrace/autotrace/archive/refs/tags/0.31.10.tar.gz"
5+
sha256 "14627f93bb02fe14eeda0163434a7cb9b1f316c0f1727f0bdf6323a831ffe80d"
6+
license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"]
7+
head "https://github.com/autotrace/autotrace.git", branch: "master"
8+
9+
bottle do
10+
sha256 arm64_sonoma: "bb7e5e2c27bd3da06e535a8a06baa26600dd95e864e18bf8600a2aba988069ad"
11+
sha256 arm64_ventura: "d976e8f28196b677548bb11fee10be185632451b5cd5a8d1b0d4752d052118b3"
12+
sha256 arm64_monterey: "f75fb3dec8f93b6cd85ba5520010a28103a0c9259f0f4321691651f9b2f5da0f"
13+
sha256 sonoma: "309ada11b08e9bb6477127ba861acf1ea44e2a9c4e4ef366a614d418d7c8ef55"
14+
sha256 ventura: "1da418dcb2e3c56b24a46541728782d9e2853f9d9988f3146c151016dd7c86c6"
15+
sha256 monterey: "21cbef75c9802414f576566503a5d570e878fbaf0d2587d40ce5773371866ab0"
16+
sha256 x86_64_linux: "4aab08802d48a33cc4d89c858fbc7ecc61dddb7a8d1e6ec250cf8b2dda4b9f8f"
17+
end
18+
19+
depends_on "autoconf" => :build
20+
depends_on "automake" => :build
21+
depends_on "gettext" => :build
22+
depends_on "intltool" => :build
23+
depends_on "libtool" => :build
24+
depends_on "pkg-config" => :build
25+
26+
depends_on "glib"
27+
depends_on "imagemagick"
28+
depends_on "libpng"
29+
depends_on "libtiff"
30+
depends_on "pstoedit"
31+
32+
on_linux do
33+
depends_on "perl-xml-parser" => :build
34+
end
35+
36+
def install
37+
if OS.linux?
38+
ENV.prepend_path "PERL5LIB", Formula["perl-xml-parser"].opt_libexec/"lib/perl5"
39+
ENV["INTLTOOL_PERL"] = Formula["perl"].bin/"perl"
40+
end
41+
42+
system "./autogen.sh"
43+
system "./configure", "--enable-magick-readers",
44+
"--mandir=#{man}",
45+
*std_configure_args
46+
system "make", "install"
47+
end
48+
49+
test do
50+
system "convert", "-size", "1x1", "canvas:black", "test.png"
51+
system "convert", "test.png", "test.bmp"
52+
output = shell_output("#{bin}/autotrace -output-format svg test.bmp")
53+
assert_match "<svg", output
54+
end
55+
end

0 commit comments

Comments
 (0)