43 lines
1.6 KiB
Ruby
43 lines
1.6 KiB
Ruby
class Dvdauthor < Formula
|
|
desc "DVD-authoring toolset"
|
|
homepage "https://dvdauthor.sourceforge.io/"
|
|
url "https://downloads.sourceforge.net/project/dvdauthor/dvdauthor-0.7.2.tar.gz"
|
|
sha256 "3020a92de9f78eb36f48b6f22d5a001c47107826634a785a62dfcd080f612eb7"
|
|
revision 2
|
|
|
|
livecheck do
|
|
url :stable
|
|
regex(%r{url=.*?/dvdauthor[._-]v?(\d+(?:\.\d+)+)\.t}i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "2c79f1849a77ee711bfba59c1b44ba6dbe0aeb55e6987612067722781cea6850"
|
|
sha256 cellar: :any, big_sur: "0972f90ce00dee3e7449342d73ea5568fa887b887f7f6d112e91171c5193c134"
|
|
sha256 cellar: :any, catalina: "669b5fe5348ceb668f9ff55c4942c240f585eb5167e2dfbe1142442fcf7b776b"
|
|
sha256 cellar: :any, mojave: "3e4e46c56905c289d31d167e75ee3b033a197fc0dda4b6b56dec752ac9773c51"
|
|
sha256 cellar: :any, high_sierra: "55cee6a535eec67fc4f1ea65c2283d69c420d32933d9bcd6106168796ba1af9a"
|
|
end
|
|
|
|
# Dvdauthor will optionally detect ImageMagick or GraphicsMagick, too.
|
|
# But we don't add either as deps because they are big.
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "freetype"
|
|
depends_on "libdvdread"
|
|
depends_on "libpng"
|
|
depends_on "libxml2" if MacOS.version <= :el_capitan
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}"
|
|
system "make"
|
|
ENV.deparallelize # Install isn't parallel-safe
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "VOBFILE", shell_output("#{bin}/dvdauthor --help 2>&1", 1)
|
|
end
|
|
end
|