Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebrew Formulaes #138

Open
snshn opened this issue Jan 10, 2019 · 3 comments
Open

Homebrew Formulaes #138

snshn opened this issue Jan 10, 2019 · 3 comments

Comments

@snshn
Copy link
Contributor

snshn commented Jan 10, 2019

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
Copy link
Member

jpnurmi commented Jan 10, 2019

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

@snshn
Copy link
Contributor Author

snshn commented Jan 10, 2019

Now I have! Uh-oh... 😄

@snshn
Copy link
Contributor Author

snshn commented Jan 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants