homebrew-core/Formula/nicotine-plus.rb
2018-03-02 01:35:29 -08:00

51 lines
2 KiB
Ruby

class NicotinePlus < Formula
include Language::Python::Virtualenv
desc "Graphical client for the SoulSeek peer-to-peer system"
homepage "https://www.nicotine-plus.org/"
url "https://github.com/Nicotine-Plus/nicotine-plus/archive/1.4.1.tar.gz"
sha256 "1b38ef196d981e4eb96fa990cc463143289784f988f559c4400b1d461497b7d6"
revision 1
head "https://github.com/Nicotine-Plus/nicotine-plus.git"
bottle do
cellar :any_skip_relocation
sha256 "6b5dd433020abad54fbc279a575d9072ca5859d825242a87f259ab38129e1570" => :high_sierra
sha256 "095cd0a9e4bcec03ccb539df2d17b08e26a2480efcd76053c91eb1341f4b0da7" => :sierra
sha256 "ed1c27fc1158ed8240f295df6cbb3defe6524050f329df6364daf1b6af3ab6db" => :el_capitan
end
depends_on "python@2" if MacOS.version <= :snow_leopard
depends_on "gtk+"
depends_on "pygtk"
depends_on "geoip" => :recommended
depends_on "miniupnpc" => :recommended
resource "mutagen" do
url "https://files.pythonhosted.org/packages/14/d5/51f49f345d4490a9a6a04677ab136f78e4e0c64ed142e48b4ed818c13c96/mutagen-1.37.tar.gz"
sha256 "539553d3f1ffd890c74f64b819750aef0316933d162c09798c9e7eaf334ae760"
end
resource "python-geoip" do
url "https://files.pythonhosted.org/packages/7c/65/cb04188154f7626e897d55f04c2542ba4205352f158cd925d314ad1998ef/python-geoip-1.2.tar.gz"
sha256 "b7b11dab42bffba56943b3199e3441f41cea145244d215844ecb6de3d5fb2df5"
end
resource "miniupnpc" do
url "https://files.pythonhosted.org/packages/55/90/e987e28ed29b571f315afea7d317b6bf4a551e37386b344190cffec60e72/miniupnpc-1.9.tar.gz"
sha256 "498b35c5443e8de566f3a4de4bceae28fbf6e08ed59afb5ffd516d0bb718bca6"
end
def install
venv = virtualenv_create(libexec)
venv.pip_install "mutagen"
venv.pip_install "miniupnpc" if build.with? "miniupnpc"
venv.pip_install "python-geoip" if build.with? "geoip"
venv.pip_install_and_link buildpath
end
test do
system "#{bin}/nicotine", "--version"
system "#{bin}/nicotine", "--help"
end
end