homebrew-core/Formula/pdf2svg.rb

33 lines
1.5 KiB
Ruby

class Pdf2svg < Formula
desc "PDF converter to SVG"
homepage "https://cityinthesky.co.uk/opensource/pdf2svg"
url "https://github.com/dawbarton/pdf2svg/archive/v0.2.3.tar.gz"
sha256 "4fb186070b3e7d33a51821e3307dce57300a062570d028feccd4e628d50dea8a"
license "GPL-2.0-or-later"
revision 6
bottle do
sha256 cellar: :any, arm64_monterey: "59c454529b5b0a0f5361f9e46d4e73b9cf13a449690fd9dcb1b9a8eeafc32428"
sha256 cellar: :any, arm64_big_sur: "dc5018cf8ccb7b474fe5c575d562c59e361c3c251ce88d9e36b7636d1f77ef3b"
sha256 cellar: :any, monterey: "ef550db355bae0f4fd507e13f7b71a7fc3cabce0ac126933dda9dc46539931d9"
sha256 cellar: :any, big_sur: "3a8d825e70e419c4f7cc783d472eec8cd384764c351c131780c2a0b691cda24d"
sha256 cellar: :any, catalina: "a2af2e44c752994638edbd3aa7684290d116d20f1da2fe3e4490527be5b23bac"
sha256 cellar: :any, mojave: "b0cf8046c13335a16496cc5601af7a82f14b45c866cf9f3ae9072075ccc867fe"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2524e6d0eecc059f7135c92554ba25a781cb29c32335a6af8d4db24571dd3b82"
end
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "poppler"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/pdf2svg", test_fixtures("test.pdf"), "test.svg"
end
end