homebrew-core/Formula/dtach.rb

39 lines
2.1 KiB
Ruby

class Dtach < Formula
desc "Emulates the detach feature of screen"
homepage "https://dtach.sourceforge.io/"
url "https://downloads.sourceforge.net/project/dtach/dtach/0.9/dtach-0.9.tar.gz"
sha256 "32e9fd6923c553c443fab4ec9c1f95d83fa47b771e6e1dafb018c567291492f3"
license "GPL-2.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "4f1ef3983dedfabc3580bf8348e913f58a25f858f3a5937664dd70014f0fa1a0"
sha256 cellar: :any_skip_relocation, arm64_monterey: "e25159bbd5055fc22962d923496e78c3e49ff919243593e16960734002c38dcc"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e90da47e413ace287b5144813af99ee9f2bb8cac8c435189557db29aa597c681"
sha256 cellar: :any_skip_relocation, ventura: "8197e8606d40305873646270d38aae3973190340c46d0e47c66a38cc91bc1824"
sha256 cellar: :any_skip_relocation, monterey: "2a7c1c3b1d3ed2f0461ff94f0ec8574b4b2baf68e83048cf1f7b26c31ca76826"
sha256 cellar: :any_skip_relocation, big_sur: "2037a41545a48ffd293c55deb33a675a6d304df1f25c46e6f9b85969e0968d78"
sha256 cellar: :any_skip_relocation, catalina: "67d1aed450f459a8883148d7ce9bf89cd98025232ae6ec061381297e54276e8c"
sha256 cellar: :any_skip_relocation, mojave: "8126575ec7b9f9a4e9ba092e8d2c706c7a162c6dd7678c8dbbdc42676aae7eb6"
sha256 cellar: :any_skip_relocation, high_sierra: "286aa27d4de791d50bb7c16c57682174a9fbfd73890e7f58fa2681f48dc12c75"
sha256 cellar: :any_skip_relocation, sierra: "f69d8585d47b722bee78bc189708d5348548a3ad68a4ff6cb91443624f4a3f0c"
sha256 cellar: :any_skip_relocation, el_capitan: "bf26c7f68f65ae257c878e2008683d496a8c7542b3048e057bc3d588d779e16a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d7e64d6a2ccdcb1bf8c9de85f9542d228b2f12ca97807045c24d42d3fb2cf047"
end
def install
# Includes <config.h> instead of "config.h", so "." needs to be in the include path.
ENV.append "CFLAGS", "-I."
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
bin.install "dtach"
man1.install gzip("dtach.1")
end
test do
system bin/"dtach", "--help"
end
end