Last active
August 29, 2015 14:22
-
-
Save luzpaz/ebaa7a6912e51fd96499 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Scribus15osxfix < Formula | |
homepage 'https://github.com/scribusproject/scribus' | |
version '1.5' | |
head "https://github.com/scribusproject/scribus.git", :using => :git, :revision => '0a54a595a81b56da852616ec6f29065c8cf2dbc9' | |
depends_on 'cmake' => :build | |
depends_on 'little-cms2' | |
depends_on 'qt5' | |
depends_on 'cairo' | |
depends_on 'jpeg' | |
depends_on 'libtiff' | |
depends_on 'fontconfig' | |
depends_on 'openssl' | |
depends_on 'pkg-config' => :build | |
depends_on 'python' | |
depends_on 'hunspell' | |
depends_on 'homebrew/dupes/zlib' | |
depends_on 'ghostscript' => :recommended | |
depends_on 'graphicsmagick' => :recommended | |
depends_on 'boost' => :recommended | |
depends_on 'poppler' => :recommended | |
depends_on 'podofo' => :recommended | |
depends_on 'freetype' => :recommended | |
depends_on 'librevenge' => :recommended # Build import filters | |
depends_on 'libwpg' => :recommended # Importer: WordPerfect Graphics | |
depends_on 'libvisio' => :recommended # Importer: MS-Visio | |
depends_on 'libmspub' => :recommended # Importer: MS-Publisher | |
depends_on 'libcdr' => :recommended # Importer: Corel Draw | |
depends_on 'libpagemaker' => :recommended # Importer: Adobe Pagemaker | |
depends_on 'libfreehand' => :recommended # Importer: Aldus/Macromedia/Adobe Freehand | |
depends_on 'open-scene-graph' => :recommended # 3D | |
# See https://github.com/scribusproject/homebrew-scribus/issues/14#issue-89324127 for patch descriptions | |
# r20101 by craig #11857: Fix importer description text | |
# patch do | |
# url "https://github.com/scribusproject/scribus/commit/13d36e1be8d3400948d8326975337d26052473d1.patch" | |
# sha256 "4400fe01b44867ec9ede0ff8cb3db31bc8e27656d05a09ff0cb961ca0039326d" | |
# end | |
# # r20102 by craig #11857: Fix importer description text | |
# patch do | |
# url "https://github.com/scribusproject/scribus/commit/099a7a99c61ae3a1dbf5e1436f96037ee71aeeed.patch" | |
# sha256 "e3013d6a6cf4ea62b16ed59fb60a36ea9eb0589a0b42973878ee4293307cb4ef" | |
# end | |
# r20127 by craig #13079: Remove gnu slist stuff that has also gone from source on github | |
# patch do | |
# url "https://github.com/scribusproject/scribus/commit/122235ebfcb22c8c5be477c0fc4069eb3497dc5a.patch" | |
# sha256 "2ea7acc0b099eed1f9d0be521dcf310a5470134299375cd3772fea80ca033e11" | |
# end | |
def install | |
args = %W[ | |
-DBUILD_OSX_BUNDLE=1 | |
-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}/Scribus.app/Contents/ | |
-DQT_PREFIX=#{Formula["qt5"].opt_prefix} | |
-DWANT_HUNSPELL=1 | |
-DWITH_PODOFO=1 | |
-DWANT_GRAPHICSMAGICK=1 | |
-DWANT_DEBUG=1 | |
] | |
# Other Options: | |
# Enable Scripter2 with -DWANT_SCRIPTER2=1 | |
# ENV.libcxx if MacOS.version > :mountain_lion | |
system "cmake", ".", *args | |
system "make" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment