Skip to content

Commit

Permalink
bitlbee 3.5.1
Browse files Browse the repository at this point in the history
Closes #13586.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
DomT4 authored and fxcoudert committed May 16, 2017
1 parent 34fcd1c commit b2b4b2f
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Formula/bitlbee.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
class Bitlbee < Formula
desc "IRC to other chat networks gateway"
homepage "https://www.bitlbee.org/"
url "https://get.bitlbee.org/src/bitlbee-3.5.tar.gz"
sha256 "549d02181ab303dfe8a219faafd7a1aea7ee642eb071b767f668782a57388319"

head "https://github.com/bitlbee/bitlbee.git"

stable do
url "https://get.bitlbee.org/src/bitlbee-3.5.1.tar.gz"
sha256 "9636d7fd89ebb3756c13a9a3387736ca6d56ccf66ec0580d512f07b21db0fa69"

# Fixes a couple of bugs/potential crashes.
patch do
url "https://github.com/bitlbee/bitlbee/commit/17a58dfa.patch"
sha256 "2eab8a84eac25d3e5630e7da8cbd45f6e6a2e0d70d0dac111c8b0053b73cab68"
end

patch do
url "https://github.com/bitlbee/bitlbee/commit/eb73d05e.patch"
sha256 "0bdf1478f21b666cf1df194d05be7bcaf9b7d6d1ce3c99ac90563288e3c30935"
end
end

bottle do
sha256 "25e0fccb21f49326295ef5b24de1b6001ebb60e82f7dfad58ea1b14753aa7006" => :sierra
sha256 "9f2fe2cde9e8282312eeeea3b694f94d6669ece67a653156c93270f9b6d8f1cb" => :el_capitan
Expand Down Expand Up @@ -33,6 +46,7 @@ def install
--plugindir=#{HOMEBREW_PREFIX}/lib/bitlbee/
--debug=0
--ssl=gnutls
--etcdir=#{etc}/bitlbee
--pidfile=#{var}/bitlbee/run/bitlbee.pid
--config=#{var}/bitlbee/lib/
--ipsocket=#{var}/bitlbee/run/bitlbee.sock
Expand All @@ -51,7 +65,9 @@ def install
system "make", "install-dev"
# This build has an extra step.
system "make", "install-etc"
end

def post_install
(var/"bitlbee/run").mkpath
(var/"bitlbee/lib").mkpath
end
Expand Down Expand Up @@ -100,6 +116,6 @@ def plist; <<-EOS.undent
end

test do
shell_output("#{sbin}/bitlbee -V", 1)
assert_match version.to_s, shell_output("#{sbin}/bitlbee -V", 1)
end
end

0 comments on commit b2b4b2f

Please sign in to comment.