Skip to content

Commit

Permalink
deluge-meta: revision
Browse files Browse the repository at this point in the history
* deluge-meta: add service block, explicit using stanza
* deluge-meta: bump revision

Closes #19.

Signed-off-by: Amar Paul <[email protected]>
  • Loading branch information
Amar1729 committed Feb 20, 2023
1 parent 5afdb72 commit 9744c18
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Formula/deluge-meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DelugeMeta < Formula
url "https://files.pythonhosted.org/packages/00/d7/8673068046ded6eaa82caaa2afd6f0751faf591aab5ad150aeafe0d47cb3/deluge-2.1.1.tar.gz"
sha256 "d6ea7e1f5bdd75f40cbd1d56f0c97cd1b5b74bc9e03783858c7daa81063dd4b9"
license "GPL-3.0"
revision 1
revision 2

bottle do
root_url "https://github.com/Amar1729/homebrew-deluge-meta/releases/download/deluge-meta-2.1.1_1"
Expand Down Expand Up @@ -143,13 +143,21 @@ class DelugeMeta < Formula
end

def install
virtualenv_install_with_resources
virtualenv_install_with_resources using: "[email protected]"

%w[deluge deluge-console deluge-gtk deluge-web deluged].each do |cmd|
(bin/cmd).write_env_script(libexec/"bin/#{cmd}", PYTHONPATH: ENV["PYTHONPATH"])
end

man1.install Dir["docs/man/*.1"]

(var/"log/deluge-meta").mkpath
end

service do
run [opt_bin/"deluged", "--do-not-daemonize", "--loglevel", "info", "--logfile",
var/"log/deluge-meta/deluged.log"]
keep_alive true
end

test do
Expand Down

0 comments on commit 9744c18

Please sign in to comment.