2013-11-18 19:31:02 +00:00
|
|
|
class Lensfun < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Remove defects from digital images"
|
2014-10-30 16:42:09 +00:00
|
|
|
homepage "http://lensfun.sourceforge.net/"
|
2015-07-05 09:19:49 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/lensfun/0.3.1/lensfun-0.3.1.tar.gz"
|
|
|
|
sha256 "216c23754212e051c8b834437e46af3812533bd770c09714e8c06c9d91cdb535"
|
|
|
|
head "http://git.code.sf.net/p/lensfun/code"
|
2015-09-14 05:32:19 +00:00
|
|
|
revision 1
|
2013-11-18 19:31:02 +00:00
|
|
|
|
2014-10-30 16:54:18 +00:00
|
|
|
bottle do
|
2015-09-14 05:18:09 +00:00
|
|
|
sha256 "d267b6318b37f43153033958ed487732b14ef0362576673334baa9d0bce596b2" => :yosemite
|
|
|
|
sha256 "f5e5e2e1af79de22e5b08ef98e8d66335de6b30e4a6d0391d1ae00ccf8ee3868" => :mavericks
|
|
|
|
sha256 "c50bcbf69c3839a44d0bb988ea016dcabb259be866ae10dd9b3a04d3de87a487" => :mountain_lion
|
2014-10-30 16:54:18 +00:00
|
|
|
end
|
|
|
|
|
2015-07-05 09:19:49 +00:00
|
|
|
depends_on :python3
|
2014-10-30 16:42:09 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "libpng"
|
|
|
|
depends_on "doxygen" => :optional
|
2013-11-18 19:31:02 +00:00
|
|
|
|
|
|
|
def install
|
2014-10-30 16:42:09 +00:00
|
|
|
system "cmake", ".", *std_cmake_args
|
2013-11-18 19:31:02 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
2015-07-05 09:19:49 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
ENV["LC_ALL"] = "en_US.UTF-8"
|
|
|
|
system bin/"lensfun-update-data"
|
|
|
|
end
|
2013-11-18 19:31:02 +00:00
|
|
|
end
|