38 lines
1.3 KiB
Ruby
38 lines
1.3 KiB
Ruby
class Orbit < Formula
|
|
desc "CORBA 2.4-compliant object request broker (ORB)"
|
|
homepage "https://projects.gnome.org/ORBit2"
|
|
url "https://download.gnome.org/sources/ORBit2/2.14/ORBit2-2.14.19.tar.bz2"
|
|
sha256 "55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "eac54e39ca245af7863d5cdc89bc0aace7043fe61673075452e559a680062043" => :mojave
|
|
sha256 "c3157060c685ebb73cfdc51acf0ce3ab62f549302c976d220136aa5fa8123a0c" => :high_sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "glib"
|
|
depends_on "libidl"
|
|
|
|
# per MacPorts, re-enable use of deprecated glib functions
|
|
patch :p0 do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/6b7eaf2b/orbit/patch-linc2-src-Makefile.in.diff"
|
|
sha256 "572771ea59f841d74ac361d51f487cc3bcb2d75dacc9c20a8bd6cbbaeae8f856"
|
|
end
|
|
|
|
patch :p0 do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/6b7eaf2b/orbit/patch-configure.diff"
|
|
sha256 "34d068df8fc9482cf70b291032de911f0e75a30994562d4cf56b0cc2a8e28e42"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match /#{version}/, shell_output("#{bin}/orbit2-config --prefix --version")
|
|
end
|
|
end
|