From 9744c18b51a8e15ddd0f7d7cbbcf7347cb20bab8 Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Sun, 19 Feb 2023 16:01:07 -0500 Subject: [PATCH] deluge-meta: revision * deluge-meta: add service block, explicit using stanza * deluge-meta: bump revision Closes #19. Signed-off-by: Amar Paul --- Formula/deluge-meta.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Formula/deluge-meta.rb b/Formula/deluge-meta.rb index a3d67ea..c0c6dfb 100644 --- a/Formula/deluge-meta.rb +++ b/Formula/deluge-meta.rb @@ -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" @@ -143,13 +143,21 @@ class DelugeMeta < Formula end def install - virtualenv_install_with_resources + virtualenv_install_with_resources using: "python@3.11" %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