34 lines
1008 B
Ruby
34 lines
1008 B
Ruby
class Inspircd < Formula
|
|
desc "Modular C++ Internet Relay Chat daemon"
|
|
homepage "https://www.inspircd.org/"
|
|
url "https://github.com/inspircd/inspircd/archive/v3.8.1.tar.gz"
|
|
sha256 "2068ca42f39b382e1f74b650230e02690ffbca58c4f3aed075a6dd72e381b44b"
|
|
license "GPL-2.0-only"
|
|
|
|
livecheck do
|
|
url "https://github.com/inspircd/inspircd.git"
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 "aab78f20c01a81d9b8c5a153e5ba9d629e74d9156d0e0c077e266d18e97228b5" => :big_sur
|
|
sha256 "9eb14778f35342c7e9ca7b6e17db90ad0ec763da02318b8d4ff15c3b70232504" => :catalina
|
|
sha256 "35d846f23095493edd191b76aa873176fe4dfda4d8fad99fb8a17a556f8b29fc" => :mojave
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
skip_clean "data"
|
|
skip_clean "logs"
|
|
|
|
def install
|
|
system "./configure", "--enable-extras=ldap"
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match("ERROR: Cannot open config file", shell_output("#{bin}/inspircd", 2))
|
|
end
|
|
end
|