parent
6f0c695cd0
commit
65eb491683
|
@ -1,20 +1,40 @@
|
||||||
require 'formula'
|
require "formula"
|
||||||
|
|
||||||
class Sickbeard < Formula
|
class Sickbeard < Formula
|
||||||
homepage 'http://www.sickbeard.com/'
|
homepage "http://www.sickbeard.com/"
|
||||||
url 'https://github.com/midgetspy/Sick-Beard/archive/build-504.tar.gz'
|
head "https://github.com/midgetspy/Sick-Beard.git"
|
||||||
sha1 '0785a590a5028f10b3cbbee905e0834c52ac66c9'
|
url "https://github.com/midgetspy/Sick-Beard/archive/build-504.tar.gz"
|
||||||
|
sha1 "0785a590a5028f10b3cbbee905e0834c52ac66c9"
|
||||||
|
|
||||||
head 'https://github.com/midgetspy/Sick-Beard.git'
|
bottle do
|
||||||
|
end
|
||||||
|
|
||||||
depends_on 'Cheetah' => :python
|
resource "Markdown" do
|
||||||
|
url "https://pypi.python.org/packages/source/M/Markdown/Markdown-2.4.tar.gz"
|
||||||
|
sha1 "7a4a96cd79c4e36918484c634055c4cc27bdf7d4"
|
||||||
|
end
|
||||||
|
|
||||||
|
resource "Cheetah" do
|
||||||
|
url "https://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz"
|
||||||
|
sha1 "c218f5d8bc97b39497680f6be9b7bd093f696e89"
|
||||||
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
libexec.install Dir['*']
|
# TODO - strip down to the minimal install
|
||||||
|
prefix.install_metafiles
|
||||||
|
libexec.install Dir["*"]
|
||||||
|
|
||||||
|
ENV["CHEETAH_INSTALL_WITHOUT_SETUPTOOLS"] = "1"
|
||||||
|
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
|
||||||
|
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
|
||||||
|
|
||||||
|
resource("Markdown").stage { system "python", *install_args }
|
||||||
|
resource("Cheetah").stage { system "python", *install_args }
|
||||||
|
|
||||||
(bin+"sickbeard").write(startup_script)
|
(bin+"sickbeard").write(startup_script)
|
||||||
end
|
end
|
||||||
|
|
||||||
plist_options :manual => 'sickbeard'
|
plist_options :manual => "sickbeard"
|
||||||
|
|
||||||
def plist; <<-EOS.undent
|
def plist; <<-EOS.undent
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
@ -40,6 +60,7 @@ class Sickbeard < Formula
|
||||||
|
|
||||||
def startup_script; <<-EOS.undent
|
def startup_script; <<-EOS.undent
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
export PYTHONPATH="#{libexec}/lib/python2.7/site-packages:$PYTHONPATH"
|
||||||
python "#{libexec}/SickBeard.py"\
|
python "#{libexec}/SickBeard.py"\
|
||||||
"--pidfile=#{var}/run/sickbeard.pid"\
|
"--pidfile=#{var}/run/sickbeard.pid"\
|
||||||
"--datadir=#{etc}/sickbeard"\
|
"--datadir=#{etc}/sickbeard"\
|
||||||
|
|
Loading…
Reference in New Issue