feat: add formulas for dsmview, lines, lview, resticview from Forgejo
This commit is contained in:
parent
99856b7290
commit
354a4df8a2
4 changed files with 175 additions and 0 deletions
121
Formula/dsmview.rb
Normal file
121
Formula/dsmview.rb
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
class Dsmview < Formula
|
||||
include Language::Python::Virtualenv
|
||||
|
||||
desc "TUI SSH monitor for Synology DSM 7.x"
|
||||
homepage "https://git.janvete.com/seth/dsmview"
|
||||
url "https://git.janvete.com/seth/dsmview/archive/v0.3.1.tar.gz"
|
||||
sha256 "1a2a2fb637deaad1d8ee9f03d9b4b5d27fababed5348fcbb31cd4d409bb994e8"
|
||||
license "MIT"
|
||||
head "https://git.janvete.com/seth/dsmview.git", branch: "main"
|
||||
|
||||
depends_on "python@3.12"
|
||||
depends_on "rust" => :build
|
||||
|
||||
resource "PyNaCl" do
|
||||
url "https://files.pythonhosted.org/packages/d9/9a/4019b524b03a13438637b11538c82781a5eda427394380381af8f04f467a/pynacl-1.6.2.tar.gz"
|
||||
sha256 "018494d6d696ae03c7e656e5e74cdfd8ea1326962cc401bcf018f1ed8436811c"
|
||||
end
|
||||
|
||||
resource "Pygments" do
|
||||
url "https://files.pythonhosted.org/packages/c3/b2/bc9c9196916376152d655522fdcebac55e66de6603a76a02bca1b6414f6c/pygments-2.20.0.tar.gz"
|
||||
sha256 "6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f"
|
||||
end
|
||||
|
||||
resource "bcrypt" do
|
||||
url "https://files.pythonhosted.org/packages/d4/36/3329e2518d70ad8e2e5817d5a4cac6bba05a47767ec416c7d020a965f408/bcrypt-5.0.0.tar.gz"
|
||||
sha256 "f748f7c2d6fd375cc93d3fba7ef4a9e3a092421b8dbf34d8d4dc06be9492dfdd"
|
||||
end
|
||||
|
||||
resource "cffi" do
|
||||
url "https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz"
|
||||
sha256 "44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529"
|
||||
end
|
||||
|
||||
resource "click" do
|
||||
url "https://files.pythonhosted.org/packages/9b/98/518d8e5081007684232226f475082b30087d0f585e8457db087298259f49/click-8.4.1.tar.gz"
|
||||
sha256 "918b5633eddf6b41c32d4f454bf0de810065c74e3f7dbf8ee5452f8be88d3e96"
|
||||
end
|
||||
|
||||
resource "cryptography" do
|
||||
url "https://files.pythonhosted.org/packages/1f/99/d1c90d6041656cc6ee229dc99cd67fd0cd5aec3c5f7d72fffc27cc750054/cryptography-49.0.0.tar.gz"
|
||||
sha256 "f89660a348f4f78a92366240a61404e337586ef7f5909a2fef59ca88ef505493"
|
||||
end
|
||||
|
||||
resource "invoke" do
|
||||
url "https://files.pythonhosted.org/packages/33/f6/227c48c5fe47fa178ccf1fda8f047d16c97ba926567b661e9ce2045c600c/invoke-3.0.3.tar.gz"
|
||||
sha256 "437b6a622223824380bfb4e64f612711a6b648c795f565efc8625af66fb57f0c"
|
||||
end
|
||||
|
||||
resource "linkify-it-py" do
|
||||
url "https://files.pythonhosted.org/packages/2e/c9/06ea13676ef354f0af6169587ae292d3e2406e212876a413bf9eece4eb23/linkify_it_py-2.1.0.tar.gz"
|
||||
sha256 "43360231720999c10e9328dc3691160e27a718e280673d444c38d7d3aaa3b98b"
|
||||
end
|
||||
|
||||
resource "markdown-it-py" do
|
||||
url "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz"
|
||||
sha256 "04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49"
|
||||
end
|
||||
|
||||
resource "mdit-py-plugins" do
|
||||
url "https://files.pythonhosted.org/packages/59/fc/f8d0863f8862f25602c0404d75568e89fb6b4109804645e5cdfb1be5cf56/mdit_py_plugins-0.6.1.tar.gz"
|
||||
sha256 "a2bca0f039f39dbd35fb74ae1b5f998608c437463371f0ff7f49a19a17a114d0"
|
||||
end
|
||||
|
||||
resource "mdurl" do
|
||||
url "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz"
|
||||
sha256 "bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"
|
||||
end
|
||||
|
||||
resource "paramiko" do
|
||||
url "https://files.pythonhosted.org/packages/62/93/dcc25d52f49022ae6175d15e6bd751f1acc99b98bc61fc55e5155a7be2e7/paramiko-5.0.0.tar.gz"
|
||||
sha256 "36763b5b95c2a0dcfdf1abc48e48156ee425b21efe2f0e787c2dd5a95c0e5e79"
|
||||
end
|
||||
|
||||
resource "platformdirs" do
|
||||
url "https://files.pythonhosted.org/packages/d7/47/e4501f49c178ae1d9f4a75073fda4204f52647993f075a9db4d14930e0c5/platformdirs-4.10.0.tar.gz"
|
||||
sha256 "31e761a6a0ca04faf7353ea759bdba55652be214725111e5aac52dfa29d4bef7"
|
||||
end
|
||||
|
||||
resource "plotext" do
|
||||
url "https://files.pythonhosted.org/packages/c9/d7/f75f397af966fe252d0d34ffd3cae765317fce2134f925f95e7d6725d1ce/plotext-5.3.2.tar.gz"
|
||||
sha256 "52d1e932e67c177bf357a3f0fe6ce14d1a96f7f7d5679d7b455b929df517068e"
|
||||
end
|
||||
|
||||
resource "pycparser" do
|
||||
url "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz"
|
||||
sha256 "600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29"
|
||||
end
|
||||
|
||||
resource "rich" do
|
||||
url "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz"
|
||||
sha256 "edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36"
|
||||
end
|
||||
|
||||
resource "textual" do
|
||||
url "https://files.pythonhosted.org/packages/9b/7a/c519db0aba5024f86e71e9631810bfdd6866ed2c8695bd7fa34b90e7ef59/textual-8.2.7.tar.gz"
|
||||
sha256 "658f568ff81e30ed43890c3e07520390e5cf1b4763822006e060656b0a88f105"
|
||||
end
|
||||
|
||||
resource "textual-plotext" do
|
||||
url "https://files.pythonhosted.org/packages/9a/b0/e4e0f38df057db778252db0dd2c08522d7222b8537b6a0181d797b9044bd/textual_plotext-1.0.1.tar.gz"
|
||||
sha256 "836f53a3316756609e194129a35c2875638e7958c261f541e0a794f7c98011be"
|
||||
end
|
||||
|
||||
resource "typing_extensions" do
|
||||
url "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz"
|
||||
sha256 "0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466"
|
||||
end
|
||||
|
||||
resource "uc-micro-py" do
|
||||
url "https://files.pythonhosted.org/packages/78/67/9a363818028526e2d4579334460df777115bdec1bb77c08f9db88f6389f2/uc_micro_py-2.0.0.tar.gz"
|
||||
sha256 "c53691e495c8db60e16ffc4861a35469b0ba0821fe409a8a7a0a71864d33a811"
|
||||
end
|
||||
|
||||
def install
|
||||
virtualenv_install_with_resources
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "dsmview", shell_output("#{bin}/dsmview --help")
|
||||
end
|
||||
end
|
||||
18
Formula/lines.rb
Normal file
18
Formula/lines.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class Lines < Formula
|
||||
desc "TUI for running frequently used commands from markdown files"
|
||||
homepage "https://git.janvete.com/seth/lines"
|
||||
url "https://git.janvete.com/seth/lines/archive/v0.1.21.tar.gz"
|
||||
sha256 "ded707795884374e785802656fa69d8e0588dae461659c7d0e5e450fe5723526"
|
||||
license "MIT"
|
||||
head "https://git.janvete.com/seth/lines.git", branch: "main"
|
||||
|
||||
depends_on "rust" => :build
|
||||
|
||||
def install
|
||||
system "cargo", "install", *std_cargo_args
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "TUI for running frequently used commands", shell_output("#{bin}/lines --help")
|
||||
end
|
||||
end
|
||||
18
Formula/lview.rb
Normal file
18
Formula/lview.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class Lview < Formula
|
||||
desc "TUI for viewing remote logs over SSH"
|
||||
homepage "https://git.janvete.com/seth/lview"
|
||||
url "https://git.janvete.com/seth/lview/archive/v0.1.7.tar.gz"
|
||||
sha256 "d5983835e198b9dcb72709b44e389241503426367a8505b5c91fd87930ed414d"
|
||||
license "MIT"
|
||||
head "https://git.janvete.com/seth/lview.git", branch: "master"
|
||||
|
||||
depends_on "rust" => :build
|
||||
|
||||
def install
|
||||
system "cargo", "install", *std_cargo_args
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "TUI for viewing remote logs over SSH", shell_output("#{bin}/lview --help")
|
||||
end
|
||||
end
|
||||
18
Formula/resticview.rb
Normal file
18
Formula/resticview.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class Resticview < Formula
|
||||
desc "TUI browser for restic backup repositories"
|
||||
homepage "https://git.janvete.com/seth/resticview"
|
||||
url "https://git.janvete.com/seth/resticview/archive/v0.1.1.tar.gz"
|
||||
sha256 "d8063b596b8b5c84c80f22831511dfd0d04210648ea1daf9cf6186eb8b9ffefb"
|
||||
license "MIT"
|
||||
head "https://git.janvete.com/seth/resticview.git", branch: "main"
|
||||
|
||||
depends_on "rust" => :build
|
||||
|
||||
def install
|
||||
system "cargo", "install", *std_cargo_args
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "TUI browser for restic backup repositories", shell_output("#{bin}/resticview --help")
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue