├── Formula ├── mopidy-beets.rb ├── mopidy-internetarchive.rb ├── mopidy-local.rb ├── mopidy-mpd.rb ├── mopidy-podcast-itunes.rb ├── mopidy-podcast.rb ├── mopidy-scrobbler.rb ├── mopidy-somafm.rb ├── mopidy-soundcloud.rb ├── mopidy-spotify.rb ├── mopidy-tunein.rb └── mopidy.rb ├── LICENSE-BSD └── README.md /Formula/mopidy-beets.rb: -------------------------------------------------------------------------------- 1 | class MopidyBeets < Formula 2 | desc "Mopidy extension for playing music from Beets with its web plugin" 3 | homepage "https://github.com/mopidy/mopidy-beets" 4 | url "https://files.pythonhosted.org/packages/43/76/26231228ba3eb99875d94c3eddcc519c32f62ed39acaeec5fb8df4211997/Mopidy-Beets-4.0.1.tar.gz" 5 | sha256 "6a3310f12da35bd737763ffbe7bab2301ad8340d74470d222817d2c39ba2a0d1" 6 | head "https://github.com/mopidy/mopidy-beets.git" 7 | revision 2 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | def install 17 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 18 | system python3, *Language::Python.setup_install_args(libexec) 19 | 20 | xy = Language::Python.major_minor_version python3 21 | site_packages = "lib/python#{xy}/site-packages" 22 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 23 | (prefix/site_packages/"homebrew-mopidy-beets.pth").write pth_contents 24 | end 25 | 26 | test do 27 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 28 | system python3, "-c", "import mopidy_beets" 29 | end 30 | end 31 | -------------------------------------------------------------------------------- /Formula/mopidy-internetarchive.rb: -------------------------------------------------------------------------------- 1 | class MopidyInternetarchive < Formula 2 | desc "Mopidy extension for playing music from the Internet Archive" 3 | homepage "https://github.com/tkem/mopidy-internetarchive" 4 | url "https://files.pythonhosted.org/packages/21/9c/98fd4ec4372605187fca0fad02b98e341ec97bb2f63385cc9a379850944c/Mopidy-InternetArchive-3.0.1.tar.gz" 5 | sha256 "800efa2ccf0c6e99e1eec8599d6f7fc31f153c6c5a2028083c38b4a90884d10a" 6 | head "https://github.com/tkem/mopidy-internetarchive.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | resource "cachetools" do 17 | url "https://files.pythonhosted.org/packages/4d/91/5837e9f9e77342bb4f3ffac19ba216eef2cd9b77d67456af420e7bafe51d/cachetools-5.3.0.tar.gz" 18 | sha256 "13dfddc7b8df938c21a940dfa6557ce6e94a2f1cdfa58eb90c805721d58f2c14" 19 | end 20 | 21 | resource "uritools" do 22 | url "https://files.pythonhosted.org/packages/4d/8b/f49813253c29c49a3767256cbe94a2450d3377953fedcd8e62be200c0ba0/uritools-4.0.1.tar.gz" 23 | sha256 "efc5c3a6de05404850685a8d3f34da8476b56aa3516fbf8eff5c8704c7a2826f" 24 | end 25 | 26 | def install 27 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 28 | 29 | resources.each do |r| 30 | r.stage do 31 | system python3, *Language::Python.setup_install_args(libexec) 32 | end 33 | end 34 | 35 | system python3, *Language::Python.setup_install_args(libexec) 36 | 37 | xy = Language::Python.major_minor_version python3 38 | site_packages = "lib/python#{xy}/site-packages" 39 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 40 | (prefix/site_packages/"homebrew-mopidy-internetarchive.pth").write pth_contents 41 | end 42 | 43 | test do 44 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 45 | system python3, "-c", "import mopidy_internetarchive" 46 | end 47 | end 48 | -------------------------------------------------------------------------------- /Formula/mopidy-local.rb: -------------------------------------------------------------------------------- 1 | class MopidyLocal < Formula 2 | desc "Mopidy extension for playing music from your music archive" 3 | homepage "https://github.com/mopidy/mopidy-local" 4 | url "https://files.pythonhosted.org/packages/06/c3/5426543db3a53285ab1e45ad5e3ca261a41db20838ce68038c4ee0f7d41d/Mopidy-Local-3.2.1.tar.gz" 5 | sha256 "29165157134fe869228da675e4d0083888368a29dc7dd3203fe1a27d7b4d83a3" 6 | head "https://github.com/mopidy/mopidy-local.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | resource "uritools" do 17 | url "https://files.pythonhosted.org/packages/4d/8b/f49813253c29c49a3767256cbe94a2450d3377953fedcd8e62be200c0ba0/uritools-4.0.1.tar.gz" 18 | sha256 "efc5c3a6de05404850685a8d3f34da8476b56aa3516fbf8eff5c8704c7a2826f" 19 | end 20 | 21 | def install 22 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 23 | 24 | resources.each do |r| 25 | r.stage do 26 | system python3, *Language::Python.setup_install_args(libexec) 27 | end 28 | end 29 | 30 | system python3, *Language::Python.setup_install_args(libexec) 31 | 32 | xy = Language::Python.major_minor_version python3 33 | site_packages = "lib/python#{xy}/site-packages" 34 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 35 | (prefix/site_packages/"homebrew-mopidy-local.pth").write pth_contents 36 | end 37 | 38 | test do 39 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 40 | system python3, "-c", "import mopidy_local" 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /Formula/mopidy-mpd.rb: -------------------------------------------------------------------------------- 1 | class MopidyMpd < Formula 2 | desc "Mopidy extension for controlling Mopidy from MPD clients" 3 | homepage "https://github.com/mopidy/mopidy-mpd" 4 | url "https://files.pythonhosted.org/packages/8a/45/2ae38c8e83c7e7fd49bda4ce2ee3cd7b2454837ab763a5be192ac657bf98/Mopidy-MPD-3.3.0.tar.gz" 5 | sha256 "09e2cc46a8fd73006f42b3b1ed71d557c3230e3c0ea2c38d565b0dda8faf4d53" 6 | head "https://github.com/mopidy/mopidy-mpd.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | def install 17 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 18 | 19 | resources.each do |r| 20 | r.stage do 21 | system python3, *Language::Python.setup_install_args(libexec) 22 | end 23 | end 24 | 25 | system python3, *Language::Python.setup_install_args(libexec) 26 | 27 | xy = Language::Python.major_minor_version python3 28 | site_packages = "lib/python#{xy}/site-packages" 29 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 30 | (prefix/site_packages/"homebrew-mopidy-mpd.pth").write pth_contents 31 | end 32 | 33 | test do 34 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 35 | system python3, "-c", "import mopidy_mpd" 36 | end 37 | end 38 | -------------------------------------------------------------------------------- /Formula/mopidy-podcast-itunes.rb: -------------------------------------------------------------------------------- 1 | class MopidyPodcastItunes < Formula 2 | desc "Mopidy extension for searching and browsing podcasts on the Apple iTunes Store" 3 | homepage "https://github.com/tkem/mopidy-podcast-itunes" 4 | url "https://files.pythonhosted.org/packages/da/37/c056afd9471c0d32ee116ed1f0977c6bc45a1bee2bd5b47e339f198118be/Mopidy-Podcast-iTunes-3.0.1.tar.gz" 5 | sha256 "b31a30447506894afb74aa0d2ace21b4525c704681aafcafcc8366ad921921db" 6 | head "https://github.com/tkem/mopidy-podcast-itunes.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | depends_on "mopidy/mopidy/mopidy-podcast" 12 | 13 | # Dependencies assumed bundled by mopidy: 14 | # - pykka 15 | # - requests 16 | 17 | def install 18 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 19 | system python3, *Language::Python.setup_install_args(libexec) 20 | 21 | xy = Language::Python.major_minor_version python3 22 | site_packages = "lib/python#{xy}/site-packages" 23 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 24 | (prefix/site_packages/"homebrew-mopidy-podcast-itunes.pth").write pth_contents 25 | end 26 | 27 | test do 28 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 29 | system python3, "-c", "import mopidy_podcast_itunes" 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /Formula/mopidy-podcast.rb: -------------------------------------------------------------------------------- 1 | class MopidyPodcast < Formula 2 | desc "Mopidy extension for browsing and playing podcasts" 3 | homepage "https://github.com/tkem/mopidy-podcast" 4 | url "https://files.pythonhosted.org/packages/66/0e/84b848db511b8bbd1a3b7b32fb36656956e98a4069b3b41249db93b7f548/Mopidy-Podcast-3.0.1.tar.gz" 5 | sha256 "82b34f54454cd8f9696210577bab1a6c58d6541f7eabe6a92118dc1d4c47e760" 6 | head "https://github.com/tkem/mopidy-podcast.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | resource "cachetools" do 17 | url "https://files.pythonhosted.org/packages/4d/91/5837e9f9e77342bb4f3ffac19ba216eef2cd9b77d67456af420e7bafe51d/cachetools-5.3.0.tar.gz" 18 | sha256 "13dfddc7b8df938c21a940dfa6557ce6e94a2f1cdfa58eb90c805721d58f2c14" 19 | end 20 | 21 | resource "uritools" do 22 | url "https://files.pythonhosted.org/packages/4d/8b/f49813253c29c49a3767256cbe94a2450d3377953fedcd8e62be200c0ba0/uritools-4.0.1.tar.gz" 23 | sha256 "efc5c3a6de05404850685a8d3f34da8476b56aa3516fbf8eff5c8704c7a2826f" 24 | end 25 | 26 | def install 27 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 28 | 29 | resources.each do |r| 30 | r.stage do 31 | system python3, *Language::Python.setup_install_args(libexec) 32 | end 33 | end 34 | 35 | system python3, *Language::Python.setup_install_args(libexec) 36 | 37 | xy = Language::Python.major_minor_version python3 38 | site_packages = "lib/python#{xy}/site-packages" 39 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 40 | (prefix/site_packages/"homebrew-mopidy-podcast.pth").write pth_contents 41 | end 42 | 43 | test do 44 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 45 | system python3, "-c", "import mopidy_podcast" 46 | end 47 | end 48 | -------------------------------------------------------------------------------- /Formula/mopidy-scrobbler.rb: -------------------------------------------------------------------------------- 1 | class MopidyScrobbler < Formula 2 | desc "Mopidy extension for scrobbling played tracks to Last.fm" 3 | homepage "https://github.com/mopidy/mopidy-scrobbler" 4 | url "https://files.pythonhosted.org/packages/4b/2b/f5e71a37ca6698e4f287384482601b869d48fefeed8823b5db87a358bcfc/Mopidy-Scrobbler-2.0.1.tar.gz" 5 | sha256 "001920edc5433678091cb74c56e39c57ffcdb280396447b07d6fbe4eba7a7d87" 6 | head "https://github.com/mopidy/mopidy-scrobbler.git" 7 | revision 2 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | 15 | resource "pylast" do 16 | url "https://files.pythonhosted.org/packages/c1/3b/05414f6c406d571604a6ee19530ba0a0bd35a8c2cae158ffac0caaa74179/pylast-3.1.0.tar.gz" 17 | sha256 "7eb58682beccc0052c3284aba64a9a6454b5e89706f789ebeb2403dc1045606a" 18 | end 19 | 20 | def install 21 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 22 | 23 | resources.each do |r| 24 | r.stage do 25 | system python3, *Language::Python.setup_install_args(libexec) 26 | end 27 | end 28 | 29 | system python3, *Language::Python.setup_install_args(libexec) 30 | 31 | xy = Language::Python.major_minor_version python3 32 | site_packages = "lib/python#{xy}/site-packages" 33 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 34 | (prefix/site_packages/"homebrew-mopidy-scrobbler.pth").write pth_contents 35 | end 36 | 37 | test do 38 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 39 | system python3, "-c", "import mopidy_scrobbler" 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /Formula/mopidy-somafm.rb: -------------------------------------------------------------------------------- 1 | class MopidySomafm < Formula 2 | desc "Mopidy extension for playing music from SomaFM" 3 | homepage "https://github.com/AlexandrePTJ/mopidy-somafm" 4 | url "https://files.pythonhosted.org/packages/0e/6a/4cc6c5d1c813ec98343f24be7df3318acf118d2920ceeea6b6d31da1f1f0/Mopidy-SomaFM-2.0.2.tar.gz" 5 | sha256 "0c2d1e9b192859f8c61e28760bc9c8341141c9fe76d577fedcab38251c4d3cb3" 6 | head "https://github.com/AlexandrePTJ/mopidy-somafm.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | def install 17 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 18 | 19 | system python3, *Language::Python.setup_install_args(libexec) 20 | 21 | xy = Language::Python.major_minor_version python3 22 | site_packages = "lib/python#{xy}/site-packages" 23 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 24 | (prefix/site_packages/"homebrew-mopidy-somafm.pth").write pth_contents 25 | end 26 | 27 | test do 28 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 29 | system python3, "-c", "import mopidy_somafm" 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /Formula/mopidy-soundcloud.rb: -------------------------------------------------------------------------------- 1 | class MopidySoundcloud < Formula 2 | desc "Mopidy extension for playing music from SoundCloud" 3 | homepage "https://github.com/mopidy/mopidy-soundcloud" 4 | url "https://files.pythonhosted.org/packages/84/59/6e556a8c0c5203228a4dad056b2cfd7b2a2a4f737fa740ed436a4b5772ee/Mopidy-SoundCloud-3.0.2.tar.gz" 5 | sha256 "783ac1459750c9d157bd9d097e486199a16838d6eb1268dd8a642ae37a15f3e2" 6 | head "https://github.com/mopidy/mopidy-soundcloud.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | def install 17 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 18 | 19 | system python3, *Language::Python.setup_install_args(libexec) 20 | 21 | xy = Language::Python.major_minor_version python3 22 | site_packages = "lib/python#{xy}/site-packages" 23 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 24 | (prefix/site_packages/"homebrew-mopidy-soundcloud.pth").write pth_contents 25 | end 26 | 27 | test do 28 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 29 | system python3, "-c", "import mopidy_soundcloud" 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /Formula/mopidy-spotify.rb: -------------------------------------------------------------------------------- 1 | class MopidySpotify < Formula 2 | desc "Mopidy extension for playing music from Spotify" 3 | homepage "https://github.com/mopidy/mopidy-spotify" 4 | url "https://files.pythonhosted.org/packages/dc/9c/abd89195770fa8a7b7835f23b41657a0eddf13b58512a916da2dfd126d92/Mopidy-Spotify-4.1.1.tar.gz" 5 | sha256 "e137d0675288e48563c15d50cb2722c618f1a085673f96b620e64fafdaab97af" 6 | head "https://github.com/mopidy/mopidy-spotify.git" 7 | revision 1 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | def install 17 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 18 | 19 | system python3, *Language::Python.setup_install_args(libexec) 20 | 21 | xy = Language::Python.major_minor_version python3 22 | site_packages = "lib/python#{xy}/site-packages" 23 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 24 | (prefix/site_packages/"homebrew-mopidy-spotify.pth").write pth_contents 25 | end 26 | 27 | test do 28 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 29 | system python3, "-c", "import mopidy_spotify" 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /Formula/mopidy-tunein.rb: -------------------------------------------------------------------------------- 1 | class MopidyTunein < Formula 2 | desc "Mopidy extension for playing music from TuneIn" 3 | homepage "https://github.com/kingosticks/mopidy-tunein" 4 | url "https://files.pythonhosted.org/packages/22/c4/7efb36a75643a249528f191d1a9a130d9d62e4907aa35f4f9853e1fe1dd2/Mopidy-TuneIn-1.1.0.tar.gz" 5 | sha256 "910a96552d239bfaee6ef3635cf9018f7ef733ac311cd0b11f27334dbd56c107" 6 | head "https://github.com/kingosticks/mopidy-tunein.git" 7 | revision 2 8 | 9 | depends_on "python@3.12" 10 | depends_on "mopidy/mopidy/mopidy" 11 | 12 | # Dependencies assumed bundled by mopidy: 13 | # - pykka 14 | # - requests 15 | 16 | def install 17 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 18 | 19 | system python3, *Language::Python.setup_install_args(libexec) 20 | 21 | xy = Language::Python.major_minor_version python3 22 | site_packages = "lib/python#{xy}/site-packages" 23 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 24 | (prefix/site_packages/"homebrew-mopidy-tunein.pth").write pth_contents 25 | end 26 | 27 | test do 28 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 29 | system python3, "-c", "import mopidy_tunein" 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /Formula/mopidy.rb: -------------------------------------------------------------------------------- 1 | class Mopidy < Formula 2 | desc "Extensible music server written in Python" 3 | homepage "https://mopidy.com/" 4 | url "https://files.pythonhosted.org/packages/cc/41/1f291572997c49fce9eef47cea6d06b7d30e9923cc75a84679767f7fc99e/Mopidy-3.4.2.tar.gz" 5 | sha256 "ada9ecbfc09eecc8c9e6742a8a4fea1632a134a1ab060527d8aa3d36df0547b6" 6 | head "https://github.com/mopidy/mopidy.git" 7 | 8 | depends_on "python@3.12" 9 | depends_on "gstreamer" 10 | 11 | resource "certifi" do 12 | url "https://files.pythonhosted.org/packages/71/da/e94e26401b62acd6d91df2b52954aceb7f561743aa5ccc32152886c76c96/certifi-2024.2.2.tar.gz" 13 | sha256 "0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f" 14 | end 15 | 16 | resource "charset-normalizer" do 17 | url "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz" 18 | sha256 "f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5" 19 | end 20 | 21 | resource "idna" do 22 | url "https://files.pythonhosted.org/packages/62/08/e3fc7c8161090f742f504f40b1bccbfc544d4a4e09eb774bf40aafce5436/idna-3.3.tar.gz" 23 | sha256 "9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d" 24 | end 25 | 26 | resource "pykka" do 27 | url "https://files.pythonhosted.org/packages/45/e9/ba139b5becd0e4bdf10a816af3fc17f788ac630159ca959d6da44d91a7be/pykka-3.1.1.tar.gz" 28 | sha256 "14ce223a55e6d62de6657f9b2b129e6ac785f731eccc5e26059e5254beca3cfb" 29 | end 30 | 31 | resource "requests" do 32 | url "https://files.pythonhosted.org/packages/9d/be/10918a2eac4ae9f02f6cfe6414b7a155ccd8f7f9d4380d62fd5b955065c3/requests-2.31.0.tar.gz" 33 | sha256 "942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1" 34 | end 35 | 36 | resource "tornado" do 37 | url "https://files.pythonhosted.org/packages/bd/a2/ea124343e3b8dd7712561fe56c4f92eda26865f5e1040b289203729186f2/tornado-6.4.tar.gz" 38 | sha256 "72291fa6e6bc84e626589f1c29d90a5a6d593ef5ae68052ee2ef000dfd273dee" 39 | end 40 | 41 | resource "urllib3" do 42 | url "https://files.pythonhosted.org/packages/0c/39/64487bf07df2ed854cc06078c27c0d0abc59bd27b32232876e403c333a08/urllib3-1.26.18.tar.gz" 43 | sha256 "f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0" 44 | end 45 | 46 | def install 47 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 48 | 49 | resources.each do |r| 50 | r.stage do 51 | system python3, *Language::Python.setup_install_args(libexec) 52 | end 53 | end 54 | 55 | system python3, *Language::Python.setup_install_args(libexec) 56 | 57 | xy = Language::Python.major_minor_version python3 58 | site_packages = "lib/python#{xy}/site-packages" 59 | pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n" 60 | (prefix/site_packages/"homebrew-mopidy.pth").write pth_contents 61 | 62 | bin.install Dir[libexec/"bin/*"] 63 | end 64 | 65 | service do 66 | run [opt_bin/"mopidy"] 67 | keep_alive true 68 | end 69 | 70 | test do 71 | python3 = Formula["python@3.12"].opt_bin/"python3.12" 72 | system python3, "-c", "import mopidy" 73 | end 74 | end 75 | -------------------------------------------------------------------------------- /LICENSE-BSD: -------------------------------------------------------------------------------- 1 | Copyright 2014-2021 Stein Magnus Jodal and other contributors. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions 5 | are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 13 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Homebrew-Mopidy 2 | 3 | These formulae let you install Mopidy and Mopidy extensions with all 4 | required dependencies on macOS. 5 | 6 | 7 | ## How to install these formulae? 8 | 9 | 1. Run `brew tap mopidy/mopidy` to get access to formulae in this repo. 10 | 11 | 2. Run `brew search ` to find the formula you're looking for. 12 | 13 | 2. Run `brew install ` to install the formula and all needed 14 | dependencies. 15 | 16 | If the formula conflicts with one from another tap, you can use `brew 17 | install mopidy/mopidy/` to explicitly install the formula from this 18 | repo. 19 | 20 | You can also install via URL: `brew install 21 | https://raw.github.com/mopidy/homebrew-mopidy/master/Formula/.rb` 22 | 23 | 24 | ## Troubleshooting 25 | 26 | See `brew help`, `man brew`, or the [Homebrew docs](https://docs.brew.sh). 27 | 28 | 29 | ## Adding a formula to this tap 30 | 31 | 1. Fork this repository on GitHub. 32 | 2. Clone to your Mac. 33 | 3. Read 34 | [Python for Formula Authors](https://docs.brew.sh/Python-for-Formula-Authors) 35 | and look at the other formulae here. 36 | 4. In your locally cloned `homebrew-mopidy` repo, create a new branch: `git 37 | checkout -b my-new-formula` 38 | 5. Write/edit your formula (Ruby file). Check the 39 | [Homebrew docs](https://docs.brew.sh) for help. 40 | 6. Test it locally! `brew install ./my-new-formula.rb`. Does it install? Note, 41 | how `./.rb` will target the local file. 42 | 7. `git push origin my-new-formula` to get it into your GitHub as a 43 | new branch. 44 | 8. If you have to change something, add a commit and `git push`. 45 | 9. On GitHub, submit a pull request to get your branch merged into this repo. 46 | 47 | 48 | ## License 49 | 50 | The formulae in this tap is licensed under the 2-clause BSD license, just like 51 | Homebrew itself. See the file `LICENSE-BSD` for the license text. 52 | --------------------------------------------------------------------------------