2009-12-27 11:34:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tabbed < Formula
|
2010-07-27 21:44:00 +00:00
|
|
|
url 'http://dl.suckless.org/tools/tabbed-0.3.tar.gz'
|
2009-12-27 11:34:23 +00:00
|
|
|
homepage 'http://tools.suckless.org/tabbed'
|
2010-07-27 21:44:00 +00:00
|
|
|
md5 '4a30458f9adc38db549f735b8fb6451b'
|
2009-12-27 11:34:23 +00:00
|
|
|
head 'http://hg.suckless.org/tabbed'
|
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
|
|
|
|
2009-12-27 11:34:23 +00:00
|
|
|
def install
|
2012-08-06 05:33:36 +00:00
|
|
|
inreplace 'config.mk', "LIBS = -L/usr/lib -lc -lX11', 'LIBS = -L#{MacOS::X11.lib} -lc -lX11"
|
2009-12-27 11:34:23 +00:00
|
|
|
inreplace 'tabbed.1', 'new surf-window.', 'new xterm-window.'
|
|
|
|
inreplace 'config.def.h',
|
|
|
|
'{ MODKEY|ShiftMask, XK_Return, spawn, { .v = (char*[]){ "surf", "-e", winid, NULL} } },',
|
|
|
|
'{ MODKEY|ShiftMask, XK_Return, spawn, { .v = (char*[]){ "xterm", "-into", winid, NULL} } },'
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2009-12-27 11:34:23 +00:00
|
|
|
end
|
|
|
|
end
|