mimms: use new virtualenv feature

Closes #8594.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-01-07 10:24:02 -08:00
parent ad9af199da
commit beec4c7cf7

View file

@ -1,4 +1,6 @@
class Mimms < Formula
include Language::Python::Virtualenv
desc "Mms stream downloader"
homepage "https://savannah.nongnu.org/projects/mimms"
url "https://launchpad.net/mimms/trunk/3.2.1/+download/mimms-3.2.1.tar.bz2"
@ -19,9 +21,7 @@ class Mimms < Formula
patch :DATA
def install
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
system "python", "setup.py", "install", "--prefix=#{prefix}"
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
virtualenv_install_with_resources
end
test do