mongo-orchestration 0.6.7
use new virtualenv feature Closes #8192. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
1a77c1ce2e
commit
2ff1862dec
1 changed files with 19 additions and 23 deletions
|
@ -1,9 +1,10 @@
|
||||||
class MongoOrchestration < Formula
|
class MongoOrchestration < Formula
|
||||||
|
include Language::Python::Virtualenv
|
||||||
|
|
||||||
desc "REST API to manage MongoDB configurations on a single host."
|
desc "REST API to manage MongoDB configurations on a single host."
|
||||||
homepage "https://github.com/10gen/mongo-orchestration"
|
homepage "https://github.com/10gen/mongo-orchestration"
|
||||||
url "https://pypi.python.org/packages/source/m/mongo-orchestration/mongo-orchestration-0.5.tar.gz"
|
url "https://files.pythonhosted.org/packages/ba/a1/b42693985249b537c838ba1226d17179de3d21557f4537b3d9903110096e/mongo-orchestration-0.6.7.tar.gz"
|
||||||
sha256 "3d99f1700ba11169d9b25b8196454f4ba91476c5aea23b4cf368bea6bd73a07d"
|
sha256 "f9086b42f2d0579177f8cc654915e1f77832b21b5569d603bc9fe62b09e61cdb"
|
||||||
|
|
||||||
head "https://github.com/10gen/mongo-orchestration"
|
head "https://github.com/10gen/mongo-orchestration"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -17,35 +18,30 @@ class MongoOrchestration < Formula
|
||||||
depends_on :python if MacOS.version <= :snow_leopard
|
depends_on :python if MacOS.version <= :snow_leopard
|
||||||
|
|
||||||
resource "bottle" do
|
resource "bottle" do
|
||||||
url "https://pypi.python.org/packages/source/b/bottle/bottle-0.12.9.tar.gz"
|
url "https://files.pythonhosted.org/packages/a1/f6/0db23aeeb40c9a7c5d226b1f70ce63822c567178eee5b623bca3e0cc3bef/bottle-0.12.11.tar.gz"
|
||||||
sha256 "fe0a24b59385596d02df7ae7845fe7d7135eea73799d03348aeb9f3771500051"
|
sha256 "a1958f9725042a9809ebe33d7eadf90d1d563a8bdd6ce5f01849bff7e941a731"
|
||||||
|
end
|
||||||
|
|
||||||
|
resource "CherryPy" do
|
||||||
|
url "https://files.pythonhosted.org/packages/50/c6/6c3d7a3221b0f098f8684037736e5604ea1586a3ba450c4a52b48f5fc2b4/CherryPy-7.0.0.tar.gz"
|
||||||
|
sha256 "faead7c5c7ca2526aff8f179a24d699127ed307c3393eeef9610a33b93650bef"
|
||||||
end
|
end
|
||||||
|
|
||||||
resource "pymongo" do
|
resource "pymongo" do
|
||||||
url "https://pypi.python.org/packages/source/p/pymongo/pymongo-3.2.1.tar.gz"
|
url "https://files.pythonhosted.org/packages/82/26/f45f95841de5164c48e2e03aff7f0702e22cef2336238d212d8f93e91ea8/pymongo-3.4.0.tar.gz"
|
||||||
sha256 "57a86ca602b0a4d2da1f9f3afa8c59fd8ca62d829f6d8f467eae0b7cb22ba88a"
|
sha256 "d359349c6c9ff9f482805f89e66e476846317dc7b1eea979d7da9c0857ee2721"
|
||||||
end
|
end
|
||||||
|
|
||||||
resource "cherrypy" do
|
resource "six" do
|
||||||
url "https://pypi.python.org/packages/source/C/CherryPy/CherryPy-4.0.0.tar.gz"
|
url "https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"
|
||||||
sha256 "73ad4f8870b5a3e9988a7778b5d3003a390d440527ec3458a0c7e58865d2611a"
|
sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
virtualenv_install_with_resources
|
||||||
|
|
||||||
resources.each do |r|
|
|
||||||
r.stage do
|
|
||||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
plist_options :startup => true, :manual => "#{HOMEBREW_PREFIX}/opt/mongo-orchestration/bin/mongo-orchestration -b 127.0.0.1 -p 8889 --no-fork start"
|
||||||
system "python", *Language::Python.setup_install_args(libexec)
|
|
||||||
|
|
||||||
bin.install Dir["#{libexec}/bin/*"]
|
|
||||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
||||||
end
|
|
||||||
|
|
||||||
def plist; <<-EOS.undent
|
def plist; <<-EOS.undent
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
Loading…
Reference in a new issue