plan9port: add system font optional support
Fontsrv is not built by default because it relies on X11. Without fontsrv, Plan 9 programs (such as Acme) can only use the handful of fonts bundled into plan9port. Fontsrv makes the OS X system fonts visible to Plan 9. Closes Homebrew/homebrew#46713. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
ee8d6a2d71
commit
26db46cf5c
1 changed files with 10 additions and 0 deletions
|
@ -4,8 +4,18 @@ class Plan9port < Formula
|
|||
url "https://plan9port.googlecode.com/files/plan9port-20140306.tgz"
|
||||
sha256 "cbb826cde693abdaa2051c49e7ebf75119bf2a4791fe3b3229f1ac36a408eaeb"
|
||||
|
||||
depends_on :x11 => :optional
|
||||
|
||||
def install
|
||||
ENV["PLAN9_TARGET"] = libexec
|
||||
|
||||
if build.with? "x11"
|
||||
# Make OS X system fonts available to Plan 9
|
||||
File.open("LOCAL.config", "a") do |f|
|
||||
f.puts "FONTSRV=fontsrv"
|
||||
end
|
||||
end
|
||||
|
||||
system "./INSTALL"
|
||||
|
||||
libexec.install Dir["*"]
|
||||
|
|
Loading…
Reference in a new issue