2011-05-04 20:25:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Diffpdf < Formula
|
2013-12-19 22:00:10 +00:00
|
|
|
homepage 'http://www.qtrac.eu/diffpdf-foss.html'
|
2013-12-03 18:54:53 +00:00
|
|
|
url 'http://www.qtrac.eu/diffpdf-2.1.3.tar.gz'
|
|
|
|
sha1 '663ecb7666a4b7d6fbd1a37327fd1f895fae69b8'
|
2011-05-04 20:25:00 +00:00
|
|
|
|
|
|
|
depends_on 'qt'
|
2013-01-26 17:57:16 +00:00
|
|
|
depends_on 'poppler' => 'with-qt4'
|
2011-05-04 20:25:00 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-23 21:05:24 +00:00
|
|
|
# The 2.0 sources shipped without translation files. Generate them so that
|
|
|
|
# compilation does not fail.
|
|
|
|
system 'lrelease', 'diffpdf.pro'
|
2012-02-13 06:17:17 +00:00
|
|
|
# Generate makefile and disable .app creation
|
2013-12-02 04:25:16 +00:00
|
|
|
if MacOS.version >= :mavericks && ENV.compiler == :clang
|
|
|
|
spec = 'unsupported/macx-clang-libc++'
|
|
|
|
else
|
|
|
|
spec = 'macx-g++'
|
|
|
|
end
|
|
|
|
|
|
|
|
system 'qmake', '-spec', spec, 'CONFIG-=app_bundle'
|
2012-02-13 06:17:17 +00:00
|
|
|
system 'make'
|
|
|
|
|
|
|
|
bin.install 'diffpdf'
|
|
|
|
man1.install 'diffpdf.1'
|
2011-05-04 20:25:00 +00:00
|
|
|
end
|
|
|
|
end
|