homebrew-core/Formula/dxflib.rb

28 lines
1.4 KiB
Ruby

class Dxflib < Formula
desc "C++ library for parsing DXF files"
homepage "https://www.ribbonsoft.com/en/what-is-dxflib"
url "https://www.ribbonsoft.com/archives/dxflib/dxflib-2.5.0.0-1.src.tar.gz"
sha256 "20ad9991eec6b0f7a3cc7c500c044481a32110cdc01b65efa7b20d5ff9caefa9"
livecheck do
url "https://www.ribbonsoft.com/en/dxflib-downloads"
regex(/href=.*?dxflib[._-]v?(\d+(?:\.\d+)+)-src\.t/i)
end
bottle do
rebuild 2
sha256 cellar: :any_skip_relocation, big_sur: "ffdf278bbcd52a31f20e536cec99fb30c5bf94d7f353b3c4b4f943666717da11"
sha256 cellar: :any_skip_relocation, catalina: "70b4e8b65b8a1090eb19080c1ec7675ec58aaef4c573ac2af89f2fe985e23d7e"
sha256 cellar: :any_skip_relocation, mojave: "1b9e667aa5bb30e050f41370afbbfaa91a563ab015a4ab4930c7dbb99fccc956"
sha256 cellar: :any_skip_relocation, high_sierra: "fb790fe1b9357907e77f50650ed0d696e855c311320d726472ac511297994573"
sha256 cellar: :any_skip_relocation, sierra: "db45aa2b00f82b996370eaf1321e0cce79fc3868c42a9524e10adce478139bc2"
sha256 cellar: :any_skip_relocation, el_capitan: "aff6c3f5e5bca552c5962e8ef5c43d1dd5fb0630d091e206a164e99ed8b70637"
sha256 cellar: :any_skip_relocation, yosemite: "e883aa60c9baab1198671db178c0723e4331ed9fb65ad4d87ba72ca921d7d0b4"
end
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end