freetype: add patch notation

This commit is contained in:
Dominyk Tiller 2016-07-10 18:03:13 +01:00
parent 9eddb3303e
commit 3ea92b8896
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -1,16 +1,13 @@
class Freetype < Formula
desc "Software library to render fonts"
homepage "https://www.freetype.org/"
# Note: when bumping freetype's version, you must also bump revisions of
# formula with "full path" references to freetype in their pkgconfig.
# See https://github.com/Homebrew/legacy-homebrew/pull/44587
url "https://downloads.sf.net/project/freetype/freetype2/2.6.4/freetype-2.6.4.tar.bz2"
mirror "https://download.savannah.gnu.org/releases/freetype/freetype-2.6.4.tar.bz2"
sha256 "5f83ce531c7035728e03f7f0421cb0533fca4e6d90d5e308674d6d313c23074d"
patch :DATA
# Note: when bumping freetype's version, you must also bump revisions of formula with
# "full path" references to freetype in their pkgconfig.
# See https://github.com/Homebrew/homebrew/pull/44587
bottle do
cellar :any
sha256 "9ae6bdaddd64a845d7293990c656c6b5a2d55eb0a54d787d977d92bb3a34b462" => :el_capitan
@ -25,6 +22,10 @@ class Freetype < Formula
depends_on "libpng"
# http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=783cbcd67
# Should be in next stable release & safe to remove then.
patch :DATA
def install
if build.with? "subpixel"
inreplace "include/freetype/config/ftoption.h",