homebrew-core/Formula/nicotine-plus.rb
2018-12-28 00:11:41 +01:00

52 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 2
head "https://github.com/Nicotine-Plus/nicotine-plus.git"
bottle do
cellar :any_skip_relocation
sha256 "4a771717f5d69be309916cb9016edbdbd5ff55a66d0fe6db89e78bf3aae78a1d" => :mojave
sha256 "35e7bf104f3d38a0d04611bf55190e47cc0b37628c820b6a94a4793c1a3bf451" => :high_sierra
sha256 "7fc8c5bfd9f131df9cc30887240a064129d65794a1a2cde8205f4eda88548cce" => :sierra
sha256 "c8243dedb84548dee2f8c663bd3cd4211885b2a1a928bc733a2ee663a9f63fe0" => :el_capitan
end
depends_on "geoip"
depends_on "gtk+"
depends_on "miniupnpc"
depends_on "pygtk"
depends_on "python@2" # does not support Python 3
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"
venv.pip_install "python-geoip"
venv.pip_install_and_link buildpath
end
test do
system "#{bin}/nicotine", "--version"
system "#{bin}/nicotine", "--help"
end
end