Skip to content

Add Homebrew formula. #323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
15 changes: 15 additions & 0 deletions geeknote.rb
Original file line number Diff line number Diff line change
@@ -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