Skip to content

Instantly share code, notes, and snippets.

@romen
Created December 18, 2013 02:25
Show Gist options
  • Save romen/8016359 to your computer and use it in GitHub Desktop.
Save romen/8016359 to your computer and use it in GitHub Desktop.
tentative pioneers 15.1 homebrew formula, still having problems with icons
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