LoginSignup
2
2

More than 5 years have passed since last update.

ux-trie を Homebrew でインストール

Posted at

ux-trie を Homebrew でインストールするために、Formula を書いてみた。

ux.rb
require 'formula'

class Ux < Formula
  homepage 'http://code.google.com/p/ux-trie/'
  url 'http://ux-trie.googlecode.com/files/ux-0.1.8.tar.bz2'
  md5 'f21a67d2ee33d51f5cb92f6dd481e922'

  def install
    ENV.append 'CPPFLAGS', "-I/usr/include/malloc"

    system "./waf", "configure", "--prefix=#{prefix}"
    system "./waf", "build"
    system "./waf", "install"
  end
end
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2