26 lines
835 B
Ruby
26 lines
835 B
Ruby
class Treeline < Formula
|
|
desc "Advanced outliner and personal information manager"
|
|
homepage "http://treeline.bellz.org/"
|
|
url "https://downloads.sourceforge.net/project/treeline/2.0.0/treeline-2.0.0.tar.gz"
|
|
sha256 "71af995fca9e0eaf4e6205d72eb4ee6a979a45ea2a1f6600ed8a39bb1861d118"
|
|
|
|
depends_on :python3
|
|
depends_on "sip" => "with-python3"
|
|
depends_on "pyqt" => "with-python3"
|
|
|
|
def install
|
|
pyver = Language::Python.major_minor_version "python3"
|
|
ENV.delete "PYTHONPATH"
|
|
%w[sip pyqt].each do |f|
|
|
ENV.append_path "PYTHONPATH", "#{Formula[f].opt_lib}/python#{pyver}/site-packages"
|
|
end
|
|
|
|
system "./install.py", "-p#{libexec}"
|
|
bin.install Dir[libexec/"bin/*"]
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
system bin/"treeline", "--help"
|
|
end
|
|
end
|