43 lines
1.4 KiB
Ruby
43 lines
1.4 KiB
Ruby
class Mftrace < Formula
|
|
desc "Trace TeX bitmap font to PFA, PFB, or TTF font"
|
|
homepage "https://lilypond.org/mftrace/"
|
|
url "https://lilypond.org/downloads/sources/mftrace/mftrace-1.2.20.tar.gz"
|
|
mirror "https://dl.bintray.com/homebrew/mirror/mftrace-1.2.20.tar.gz"
|
|
sha256 "626b7a9945a768c086195ba392632a68d6af5ea24ef525dcd0a4a8b199ea5f6f"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "175bd6e04490a7aa2bc79be8057c5708eb4fd8ec36c521e111bb5dd33b472725" => :catalina
|
|
sha256 "de07330354ae8048feccc55e6ad551a13fedc82408718d33c5b93a96aff4ab0b" => :mojave
|
|
sha256 "90e60837a6d4c750d0634ff3bfc84b373b6c89a1deaa4792c82e94f52e06c072" => :high_sierra
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/hanwen/mftrace.git"
|
|
depends_on "autoconf" => :build
|
|
end
|
|
|
|
depends_on "fontforge"
|
|
depends_on "potrace"
|
|
depends_on "python@3.8"
|
|
depends_on "t1utils"
|
|
|
|
# Fixed in https://github.com/hanwen/mftrace/pull/14
|
|
resource "manpage" do
|
|
url "https://github.com/hanwen/mftrace/raw/release/1.2.20/gf2pbm.1"
|
|
sha256 "f2a7234cba5f59237e3cc1f67e395046b381a012456d4e6e9963673cf35d46fb"
|
|
end
|
|
|
|
def install
|
|
buildpath.install resource("manpage") if build.stable?
|
|
system "./autogen.sh" if build.head?
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/mftrace", "--version"
|
|
end
|
|
end
|