diff options
| author | Jean-Olivier Irisson | 2012-03-12 13:38:05 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-28 15:57:04 -0700 |
| commit | 2daa25feb59322ab296e4d6e7294ba7c9928cebb (patch) | |
| tree | a3488149cb0ec7f5a813228aed6d46c6f9030a88 /Library | |
| parent | 3d0098200fbc12d07c4b6f64c367f350d0eb9864 (diff) | |
| download | homebrew-2daa25feb59322ab296e4d6e7294ba7c9928cebb.tar.bz2 | |
Swatchbooker 0.7.3
Swatchbooker is a python program to view, convert and edit swatches
(colours mostly at the moment). It comprises command line tools and a
Qt GUI, hence the pyqt dependency. It requires little-cms to convert
colours and little-cms hence needs to be compiled with python bindings.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/swatchbooker.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/swatchbooker.rb b/Library/Formula/swatchbooker.rb new file mode 100644 index 000000000..cfb6a8e40 --- /dev/null +++ b/Library/Formula/swatchbooker.rb @@ -0,0 +1,31 @@ +require 'formula' + +class Swatchbooker < Formula + homepage 'http://www.selapa.net/swatchbooker/' + url 'http://launchpad.net/swatchbooker/trunk/0.7.3/+download/SwatchBooker-0.7.3.tar.gz' + sha1 'fd2e46c278e762dc0c3ed69f824ab620773f153e' + + depends_on 'little-cms' # needs --with-python + depends_on 'pil' + depends_on 'pyqt' + + def install + # Tell launching shell scipts where the python library is + inreplace %w[data/swatchbooker data/sbconvert data/sbconvertor] do |s| + s.gsub! "/usr/lib", "#{HOMEBREW_PREFIX}/lib" + end + + system "python", "setup.py", "build" + system "python", "setup.py", "install", "--prefix=#{prefix}" + end + + def caveats; <<-EOS.undent + For the graphical user interface to work, PyQT requires that you amend your PYTHONPATH: + export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH + EOS + end + + def test + system "#{bin}/swatchbooker" + end +end |
