communi / communi-desktop

An IRC client for desktop environments
https://communi.github.io/
BSD 3-Clause "New" or "Revised" License
55 stars 20 forks source link

Homebrew Formulaes #138

Open snshn opened 5 years ago

snshn commented 5 years ago

Good day. I've been trying to build Communi with Homebrew, here's what I have so far:

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libcommuni.rb:

class Libcommuni < Formula
  desc "A cross-platform IRC framework written with Qt"
  homepage "communi.github.io"
  url "https://github.com/communi/libcommuni/archive/v3.5.0.tar.gz"
  sha256 "cc0690129c7963578df9be2127ca5ba9f1e182bfe6c138d84612382e2dc80177"

  depends_on "qt"

  def install
    system "./configure", "--prefix=#{prefix}"
    system "qmake"
    system "make"
    system "make", "install"
  end
end

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/communi.rb

class Communi < Formula
  desc "An IRC client for desktop environments"
  homepage "communi.github.io"
  url "https://github.com/communi/communi-desktop/archive/v3.5.0.tar.gz"
  sha256 "a54de9840d45cde34419ff1ddbbecd4588f558fb213553faea9b6c37d82276ac"

  depends_on "libcommuni"
  depends_on "qt"

  def install
    system "qmake"
    system "make"
    system "make", "install"
  end
end

So far getting this error, but I may be able to resolve it in a bit:

FruityComputy:build user$ brew install communi
==> Downloading https://github.com/communi/communi-desktop/archive/v3.5.0.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/4fac1f7e428038ae92abb5178116da4009c6ac4030fe839aaf6e8072ceb2b242--communi-desktop-3.5.0.tar.gz
==> qmake
Last 15 lines from /Users/user/Library/Logs/Homebrew/communi/01.qmake:
2019-01-10 02:14:43 -0500

qmake

Info: creating stash file /private/tmp/communi-20190110-41418-l274vu/communi-desktop-3.5.0/.qmake.stash
Project ERROR: The Communi framework is missing. Install libcommuni from http://communi.github.com

READ THIS: https://docs.brew.sh/Troubleshooting

Oh, and also, would you like it to be installed on macOS via brew install communi-desktop, or, rather, brew install communi?

jpnurmi commented 5 years ago

Hi Vincent, have you noticed https://github.com/communi/homebrew-communi ?

snshn commented 5 years ago

Now I have! Uh-oh... 😄

snshn commented 5 years ago

I still couldn't build it on macOS 10.14 using those formulaes, but while I'm trying to figure out why, could you please add instructions for Homebrew into communi-desktop README's "Installation" section? Perhaps may sound arrogant, but if I couldn't find them, possibly lots of people overlook the existence of the brew repo for communi as well.