Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 49 lines (44 sloc) 1.359 kB
6ec0ab7 @mistydemeo New formula: darktable
authored
1 require 'formula'
2
3 class Darktable < Formula
4 homepage 'http://www.darktable.org/'
5 url 'http://downloads.sourceforge.net/project/darktable/darktable/1.0/darktable-1.0.5.tar.gz'
6 version '1.0.5'
7 sha1 'd007ada0f3fb3af6861de74323577b90eec3996e'
8 # --HEAD doesn't actually work atm and I don't feel like fixing it
9 # head 'git://github.com/darktable-org/darktable.git'
10
11 depends_on 'cmake' => :build
12 depends_on 'atk'
13 depends_on 'babl'
14 depends_on 'gegl'
15 depends_on 'exiv2'
16 depends_on 'intltool'
17 depends_on 'gettext'
18 depends_on 'gtk+'
19 depends_on 'jpeg'
20 depends_on 'libtiff'
21 depends_on 'sqlite'
22 depends_on 'openexr'
23 depends_on 'libgphoto2'
24 depends_on 'dbus'
25 depends_on 'fop'
26 depends_on 'librsvg'
27 depends_on 'flickcurl'
28 depends_on 'lensfun'
29 depends_on :x11
30
31 def install
32 # The default interpolation results in -D_DARWIN_C_SOURCE being
33 # incorrectly prepended with a semicolon
34 inreplace "CMakeLists.txt" do |s|
35 s.gsub! "${CMAKE_C_FLAGS} -D_DARWIN_C_SOURCE",
36 "${CMAKE_C_FLAGS}-D_DARWIN_C_SOURCE"
37 s.gsub! "${CMAKE_CXX_FLAGS} -D_DARWIN_C_SOURCE",
38 "${CMAKE_C_FLAGS}-D_DARWIN_C_SOURCE"
39 end
40
41 Dir.mkdir "build"
42 cd "build" do
43 # yep, cmake returns non-0 for success here
44 system "cmake", "..", *std_cmake_args rescue true
45 system "make install"
46 end
47 end
48 end
Something went wrong with that request. Please try again.