3eab7d0c00
Closes #6831. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
34 lines
1.3 KiB
Ruby
34 lines
1.3 KiB
Ruby
class GtkGnutella < Formula
|
|
desc "Share files in a peer-to-peer (P2P) network"
|
|
homepage "http://gtk-gnutella.sourceforge.net/en/?page=news"
|
|
url "https://downloads.sourceforge.net/project/gtk-gnutella/gtk-gnutella/1.1.11/gtk-gnutella-1.1.11.tar.bz2"
|
|
sha256 "e46ffa3905831828f867709aa346cd88576075bd1299ef396962ad860e2589d5"
|
|
|
|
bottle do
|
|
sha256 "0659488d3cf0641f50f490d4f44c139bf5cd1b0fb69bedc2ab760b6ef41a58d4" => :sierra
|
|
sha256 "412d316f823e2dacdcd5165b7db70f2a308fa1d3fe849860acb264d2afbe8b27" => :el_capitan
|
|
sha256 "9177734b37dc0874f2b6cb8cb4839be9bce2545da8f8dcfe8719924ebcc365e5" => :yosemite
|
|
sha256 "227d5319c74e58b2bfdea1ba95ad768f7a4ef728c1bfbc8f9af728000c9c0d86" => :mavericks
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gtk+"
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
|
|
if MacOS.version == :el_capitan && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
|
|
inreplace "Configure", "ret = clock_gettime(CLOCK_REALTIME, &tp);",
|
|
"ret = undefinedgibberish(CLOCK_REALTIME, &tp);"
|
|
end
|
|
|
|
system "./build.sh", "--prefix=#{prefix}", "--disable-nls"
|
|
system "make", "install"
|
|
rm_rf share/"pixmaps"
|
|
rm_rf share/"applications"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gtk-gnutella", "--version"
|
|
end
|
|
end
|