Created
December 18, 2013 02:25
-
-
Save romen/8016359 to your computer and use it in GitHub Desktop.
tentative pioneers 15.1 homebrew formula, still having problems with icons
This file contains hidden or 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
require 'formula' | |
class Pioneers < Formula | |
url 'https://downloads.sourceforge.net/project/pio/Source/pioneers-15.1.tar.gz' | |
homepage 'http://pio.sourceforge.net/' | |
sha1 'cea94cd77edef31b3f9e601077dff9b199dfeaf4' | |
fails_with :clang do | |
build 318 | |
cause "'#line directive requires a positive integer' argument in generated file" | |
end | |
depends_on 'pkg-config' => :build | |
depends_on 'intltool' => :build | |
depends_on 'gettext' | |
depends_on 'gtk+' | |
depends_on 'gdk-pixbuf' | |
depends_on 'librsvg' # svg images for gdk-pixbuf | |
depends_on 'hicolor-icon-theme' | |
def install | |
# fix usage of echo options not supported by sh | |
inreplace "Makefile.in", /\becho/, "/bin/echo" | |
inreplace "configure", / -Wl,--as-needed/, "" | |
inreplace "configure.ac", / -Wl,--as-needed/, "" | |
inreplace "configure", / -Wl,-z,(relro|now)/, "" | |
inreplace "configure.ac", / -Wl,-z,(relro|now)/, "" | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment