homebrew-core/Formula/tabbed.rb
Alexis Hildebrandt 53a25ee264 Tabbed 0.2
Simple generic tabbed fronted to xembed aware applications, originally
designed for surf but also usable with many other application, i.e.
uzbl, urxvt and xterm
2010-01-23 12:21:14 +00:00

17 lines
718 B
Ruby

require 'formula'
class Tabbed <Formula
url 'http://dl.suckless.org/tools/tabbed-0.2.tar.gz'
homepage 'http://tools.suckless.org/tabbed'
md5 'fc00ee1a9fd1478561b064cd6a53d494'
head 'http://hg.suckless.org/tabbed'
def install
inreplace 'config.mk', 'LIBS = -L/usr/lib -lc -lX11', 'LIBS = -L/usr/X11/lib -lc -lX11'
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} } },'
system "make PREFIX=#{prefix} install"
end
end