blob: 0cd41ddc9f45a367f564888b2f43be1bf9874ce0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'formula'
class Ranger < Formula
homepage 'http://ranger.nongnu.org/'
url 'http://nongnu.org/ranger/ranger-1.6.1.tar.gz'
sha1 'ac66644b362c6ed5b6f2127af799e12d8993f3b8'
head 'git://git.savannah.nongnu.org/ranger.git'
# requires 2.6 or newer; Leopard comes with 2.5
depends_on :python if MacOS.version <= :leopard
def install
inreplace %w[ranger.py ranger/ext/rifle.py] do |s|
s.gsub! "#!/usr/bin/python", "#!#{PythonDependency.new.which_python}"
end if MacOS.version <= :leopard
man1.install 'doc/ranger.1'
libexec.install 'ranger.py', 'ranger'
bin.install_symlink libexec+'ranger.py' => 'ranger'
end
end
|