Skip to content

Instantly share code, notes, and snippets.

@kga
kga / vim.rb
Created December 14, 2010 16:48 — forked from uasi/vim.rb
Vim formula for Homebrew
require 'formula'
class Vim <Formula
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
homepage 'http://www.vim.org/'
md5 '5b9510a17074e2b37d8bb38ae09edbf2'
def patchlevel; 81 end
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end
require 'formula'
class Skktools <Formula
url 'http://openlab.ring.gr.jp/skk/tools/skktools-1.3.1.tar.gz'
homepage 'http://openlab.ring.gr.jp/skk/wiki/wiki.cgi'
md5 '2168b8e6d7753088c0c1b75267eaf4ff'
version '1.3.1'
depends_on 'pkg-config'
depends_on 'glib'
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Validator;
use Data::Dumper qw(Dumper);
my %rule = (
foo => { isa => 'Str' },
bar => { isa => 'Int' },
use strict;
use warnings;
use utf8;
use Test::More;
use Test::TCP;
use Email::MIME;
use Mail::Address;
use Encode;
use IO::Socket::INET;
use strict;
use warnings;
use utf8;
package Foo {
use overload (
bool => sub { warn 'this is bool' },
q{""} => sub { warn 'this is stringify' },
);