Skip to content

Instantly share code, notes, and snippets.

@saulius
Forked from saitoha/hiptext.rb
Created July 6, 2016 13:11
Show Gist options
  • Save saulius/40d2c94ed3e764fb81ddce2e531b03e4 to your computer and use it in GitHub Desktop.
Save saulius/40d2c94ed3e764fb81ddce2e531b03e4 to your computer and use it in GitHub Desktop.
Homebrew formula for jart/hiptext(https://github.com/jart/hiptext)
require "formula"
class Hiptext < Formula
homepage "https://github.com/jart/hiptext"
head "https://github.com/jart/hiptext.git", :branch => "master"
depends_on "pkg-config" => :build
depends_on "ragel" => :build
depends_on :libpng
depends_on "jpeg"
depends_on "ffmpeg"
depends_on "freetype"
depends_on "glog"
patch :DATA
#ENV["PKG_CONFIG_PATH"] = "#{HOMEBREW_PREFIX}/lib/pkgconfig:#{MacOS::X11.lib}/pkgconfig"
#pkg-config --libs libavcodec libavformat libavutil libswscale
def install
system "make"
system "install -m 0755 hiptext #{HOMEBREW_PREFIX}/bin"
end
end
__END__
--- a/font.cc
+++ b/font.cc
@@ -11,7 +11,7 @@
#include "graphic.h"
#include "pixel.h"
-DEFINE_string(font, "DejaVuSansMono.ttf",
+DEFINE_string(font, "/System/Library/Fonts/Monaco.dfont",
"The path to the font .ttf file to use.");
DEFINE_int32(font_index, 0, "Index of face to use inside font .ttf file.");
DEFINE_int32(font_size, 11, "The size of the font in points.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment