diff --git a/README.md b/README.md index 07c009e..9acac56 100755 --- a/README.md +++ b/README.md @@ -15,7 +15,10 @@ Geeknote is written in Python, so you can use the open source package anywhere y Here we have documentation for Geeknote. We'll show basic commands how to work with notes, notebooks and tags in Evernote using Geeknote, also we'll show how to use search to find notes you want and give you some examples. ## Installation -You can install Geeknote as a python script. +You can install Geeknote as a python script or using [Homebrew](http://brew.sh/)/[Linuxbrew](https://github.com/Homebrew/linuxbrew). + +### Homebrew installation + brew install --HEAD https://raw.githubusercontent.com/VitaliyRodnenko/geeknote/master/geeknote.rb ### Downloading and installing from source # Install dependencies. (This example for Debian-based systems): diff --git a/geeknote.rb b/geeknote.rb new file mode 100644 index 0000000..681149f --- /dev/null +++ b/geeknote.rb @@ -0,0 +1,15 @@ +class Geeknote < Formula + homepage 'http://www.geeknote.me/' + head 'https://github.com/VitaliyRodnenko/geeknote' + + depends_on :python + + def install + ENV["PYTHONPATH"] = libexec/"vendor/lib/python2.7/site-packages" + ENV.prepend_create_path "PYTHONPATH", lib+"python2.7/site-packages" + + system "python", "setup.py", "install", "--prefix=#{prefix}" + + bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) + end +end