From b463f9091ac6837b9bb080b2c0cdc3b415506e66 Mon Sep 17 00:00:00 2001 From: Piotr Gaczkowski Date: Mon, 12 Oct 2015 14:33:31 +0200 Subject: [PATCH] Add Homebrew formula. --- README.md | 5 ++++- geeknote.rb | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 geeknote.rb 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