Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update formulae for version 0.7

* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
  • Loading branch information...
commit d0efd9ee94a55e243f3b10e903526274fc21d569 1 parent cdf768b
@adamv adamv authored
Showing with 853 additions and 1,053 deletions.
  1. +2 −1  Library/Formula/aalib.rb
  2. +8 −10 Library/Formula/abuse.rb
  3. +1 −1  Library/Formula/ack.rb
  4. +2 −4 Library/Formula/activemq.rb
  5. +4 −4 Library/Formula/adamem.rb
  6. +5 −6 Library/Formula/aircrack-ng.rb
  7. +2 −3 Library/Formula/algol68g.rb
  8. +1 −1  Library/Formula/android-sdk.rb
  9. +5 −4 Library/Formula/angband.rb
  10. +1 −3 Library/Formula/antiword.rb
  11. +4 −7 Library/Formula/apg.rb
  12. +1 −1  Library/Formula/app-engine-java-sdk.rb
  13. +6 −10 Library/Formula/aqbanking.rb
  14. +3 −1 Library/Formula/arp-sk.rb
  15. +6 −7 Library/Formula/arping.rb
  16. +10 −16 Library/Formula/aspell.rb
  17. +4 −4 Library/Formula/astyle.rb
  18. +4 −5 Library/Formula/atf.rb
  19. +1 −1  Library/Formula/atk.rb
  20. +3 −3 Library/Formula/automoc4.rb
  21. +1 −1  Library/Formula/bcrypt.rb
  22. +9 −4 Library/Formula/bitlbee.rb
  23. +1 −1  Library/Formula/botan.rb
  24. +2 −2 Library/Formula/boxes.rb
  25. +2 −1  Library/Formula/cadaver.rb
  26. +1 −3 Library/Formula/cairo.rb
  27. +5 −3 Library/Formula/calc.rb
  28. +0 −1  Library/Formula/cassandra.rb
  29. +0 −1  Library/Formula/catdoc.rb
  30. +1 −1  Library/Formula/cdargs.rb
  31. +1 −1  Library/Formula/chcase.rb
  32. +10 −8 Library/Formula/chocolate-doom.rb
  33. +3 −3 Library/Formula/cksfv.rb
  34. +1 −1  Library/Formula/cloc.rb
  35. +3 −3 Library/Formula/clucene.rb
  36. +7 −5 Library/Formula/clusterit.rb
  37. +1 −1  Library/Formula/coffee-script.rb
  38. +1 −3 Library/Formula/collectd.rb
  39. +1 −2  Library/Formula/couchdb.rb
  40. +1 −1  Library/Formula/cowsay.rb
  41. +1 −1  Library/Formula/cppcheck.rb
  42. +2 −5 Library/Formula/cracklib-words.rb
  43. +1 −1  Library/Formula/csshx.rb
  44. +3 −3 Library/Formula/ctags.rb
  45. +3 −1 Library/Formula/cuetools.rb
  46. +1 −2  Library/Formula/cups-pdf.rb
  47. +0 −1  Library/Formula/cvsps.rb
  48. +6 −4 Library/Formula/d-bus.rb
  49. +2 −3 Library/Formula/ddclient.rb
  50. +3 −3 Library/Formula/ddrescue.rb
  51. +1 −2  Library/Formula/despotify.rb
  52. +1 −1  Library/Formula/devtodo.rb
  53. +6 −5 Library/Formula/dict.rb
  54. +2 −6 Library/Formula/diction.rb
  55. +4 −1 Library/Formula/discount.rb
  56. +3 −3 Library/Formula/djmount.rb
  57. +7 −7 Library/Formula/dmd.rb
  58. +3 −3 Library/Formula/dnsmasq.rb
  59. +8 −9 Library/Formula/docbook.rb
  60. +1 −1  Library/Formula/dos2unix.rb
  61. +4 −4 Library/Formula/dosbox.rb
  62. +1 −1  Library/Formula/dovecot.rb
  63. +2 −4 Library/Formula/duff.rb
  64. +3 −5 Library/Formula/dvdauthor.rb
  65. +3 −8 Library/Formula/dvdrtools.rb
  66. +4 −4 Library/Formula/dwdiff.rb
  67. +2 −4 Library/Formula/e2fsprogs.rb
  68. +1 −3 Library/Formula/ecl.rb
  69. +1 −1  Library/Formula/eigen.rb
  70. +1 −2  Library/Formula/ejabberd.rb
  71. +1 −1  Library/Formula/elasticsearch.rb
  72. +5 −5 Library/Formula/elinks.rb
  73. +0 −9 Library/Formula/emacs.rb
  74. +1 −2  Library/Formula/erlang.rb
  75. +12 −18 Library/Formula/ettercap-ng.rb
  76. +1 −1  Library/Formula/exif.rb
  77. +2 −2 Library/Formula/exiftool.rb
  78. +12 −13 Library/Formula/exim.rb
  79. +4 −4 Library/Formula/expat.rb
  80. +14 −10 Library/Formula/exult.rb
  81. +2 −3 Library/Formula/fabricate.rb
  82. +4 −9 Library/Formula/falcon.rb
  83. +3 −3 Library/Formula/fastri.rb
  84. +1 −1  Library/Formula/fbida.rb
  85. +3 −4 Library/Formula/ffmpeg-php.rb
  86. +0 −4 Library/Formula/figlet.rb
  87. +3 −3 Library/Formula/findutils.rb
  88. +1 −1  Library/Formula/flac.rb
  89. +1 −1  Library/Formula/flip.rb
  90. +1 −1  Library/Formula/fltk.rb
  91. +0 −1  Library/Formula/flvstreamer.rb
  92. +2 −4 Library/Formula/fondu.rb
  93. +1 −3 Library/Formula/fontconfig.rb
  94. +1 −1  Library/Formula/foremost.rb
  95. +1 −3 Library/Formula/fortune.rb
  96. +2 −5 Library/Formula/freeimage.rb
  97. +7 −7 Library/Formula/frotz.rb
  98. +3 −3 Library/Formula/fsh.rb
  99. +1 −3 Library/Formula/ftgl.rb
  100. +0 −1  Library/Formula/gambit-scheme.rb
  101. +1 −1  Library/Formula/gant.rb
  102. +2 −6 Library/Formula/gccxml.rb
  103. +1 −2  Library/Formula/gd.rb
  104. +1 −1  Library/Formula/gerrit-tools.rb
  105. +10 −17 Library/Formula/gettext.rb
  106. +1 −1  Library/Formula/ghc.rb
  107. +3 −6 Library/Formula/git-flow.rb
  108. +2 −1  Library/Formula/git-sh.rb
  109. +3 −4 Library/Formula/git.rb
  110. +3 −3 Library/Formula/glew.rb
  111. +2 −2 Library/Formula/glib.rb
  112. +2 −2 Library/Formula/global.rb
  113. +4 −4 Library/Formula/gloox.rb
  114. +6 −7 Library/Formula/gmediaserver.rb
  115. +2 −1  Library/Formula/gmime.rb
  116. +8 −10 Library/Formula/gnu-chess.rb
  117. +1 −3 Library/Formula/gnu-getopt.rb
  118. +6 −4 Library/Formula/gnu-go.rb
  119. +2 −3 Library/Formula/gnu-prolog.rb
  120. +4 −4 Library/Formula/gnu-smalltalk.rb
  121. +1 −1  Library/Formula/gnu-tar.rb
  122. +3 −4 Library/Formula/gnu-time.rb
  123. +5 −5 Library/Formula/gnutls.rb
  124. +3 −6 Library/Formula/gource.rb
  125. +5 −1 Library/Formula/gphoto2.rb
  126. +2 −5 Library/Formula/gpsbabel.rb
  127. +1 −3 Library/Formula/graphviz.rb
  128. +7 −11 Library/Formula/grc.rb
  129. +2 −2 Library/Formula/greg.rb
  130. +1 −1  Library/Formula/guile.rb
  131. +2 −3 Library/Formula/hadoop.rb
  132. +4 −4 Library/Formula/haproxy.rb
  133. +2 −3 Library/Formula/hercules.rb
  134. +2 −2 Library/Formula/hevea.rb
  135. +1 −1  Library/Formula/hping.rb
  136. +0 −1  Library/Formula/html-xml-utils.rb
  137. +2 −2 Library/Formula/httrack.rb
  138. +1 −3 Library/Formula/icu4c.rb
  139. +0 −1  Library/Formula/id3tool.rb
  140. +5 −3 Library/Formula/id3v2.rb
  141. +2 −1  Library/Formula/iftop.rb
  142. +1 −1  Library/Formula/ilmbase.rb
  143. +1 −4 Library/Formula/imagemagick.rb
  144. +1 −1  Library/Formula/innotop.rb
  145. +3 −3 Library/Formula/intltool.rb
  146. +3 −3 Library/Formula/iperf.rb
  147. +2 −2 Library/Formula/iphotoexport.rb
  148. +7 −7 Library/Formula/john.rb
  149. +1 −2  Library/Formula/jsawk.rb
  150. +2 −4 Library/Formula/kde-phonon.rb
  151. +3 −3 Library/Formula/kdelibs.rb
  152. +1 −2  Library/Formula/keychain.rb
  153. +4 −2 Library/Formula/kumofs.rb
  154. +4 −4 Library/Formula/lame.rb
  155. +1 −1  Library/Formula/languagetool.rb
  156. +3 −3 Library/Formula/libao.rb
  157. +1 −1  Library/Formula/libassuan.rb
  158. +1 −1  Library/Formula/libcroco.rb
  159. +2 −1  Library/Formula/libdvdread.rb
  160. +1 −2  Library/Formula/libevent.rb
  161. +5 −3 Library/Formula/libffi.rb
  162. +3 −5 Library/Formula/libfixbuf.rb
  163. +4 −5 Library/Formula/libftdi.rb
  164. +0 −1  Library/Formula/libgadu.rb
  165. +7 −10 Library/Formula/libgarmin.rb
  166. +2 −7 Library/Formula/libgsf.rb
  167. +1 −1  Library/Formula/libidl.rb
  168. +4 −4 Library/Formula/liblastfm.rb
  169. +3 −3 Library/Formula/libmagic.rb
  170. +2 −2 Library/Formula/libnet.rb
  171. +2 −2 Library/Formula/libogg.rb
  172. +4 −4 Library/Formula/liboil.rb
  173. +1 −1  Library/Formula/libpano.rb
  174. +2 −1  Library/Formula/libplist.rb
  175. +1 −3 Library/Formula/libpng.rb
  176. +4 −1 Library/Formula/libquicktime.rb
  177. +2 −4 Library/Formula/librasterlite.rb
  178. +1 −1  Library/Formula/libspatialite.rb
  179. +3 −10 Library/Formula/libspotify.rb
  180. +2 −2 Library/Formula/libvorbis.rb
  181. +1 −1  Library/Formula/libwpd.rb
  182. +1 −1  Library/Formula/libwpg.rb
  183. +1 −3 Library/Formula/libxml2.rb
  184. +3 −3 Library/Formula/lighttpd.rb
  185. +1 −1  Library/Formula/lilypond.rb
  186. +1 −1  Library/Formula/linklint.rb
  187. +3 −3 Library/Formula/links.rb
  188. +3 −3 Library/Formula/litmus.rb
  189. +4 −8 Library/Formula/llvm.rb
  190. +2 −3 Library/Formula/lorem.rb
  191. +1 −1  Library/Formula/lua.rb
  192. +2 −3 Library/Formula/lynx.rb
  193. +1 −3 Library/Formula/lysp.rb
  194. +4 −1 Library/Formula/lzo.rb
  195. +2 −2 Library/Formula/macvim.rb
  196. +6 −7 Library/Formula/mailtomutt.rb
  197. +2 −2 Library/Formula/man2html.rb
  198. +1 −2  Library/Formula/mathomatic.rb
  199. +3 −1 Library/Formula/mawk.rb
  200. +3 −2 Library/Formula/maxima.rb
  201. +7 −10 Library/Formula/mcabber.rb
  202. +6 −1 Library/Formula/mcrypt.rb
  203. +1 −1  Library/Formula/mediatomb.rb
  204. +1 −1  Library/Formula/memcached.rb
  205. +0 −1  Library/Formula/metalua.rb
  206. +1 −2  Library/Formula/metasploit.rb
  207. +1 −1  Library/Formula/metis.rb
  208. +1 −1  Library/Formula/mftrace.rb
  209. +3 −3 Library/Formula/mhash.rb
  210. +7 −9 Library/Formula/minicom.rb
  211. +2 −2 Library/Formula/mmv.rb
  212. +1 −1  Library/Formula/mod_python.rb
  213. +1 −1  Library/Formula/mod_wsgi.rb
  214. +2 −4 Library/Formula/mongodb.rb
  215. +3 −3 Library/Formula/most.rb
  216. +1 −1  Library/Formula/mp3gain.rb
  217. +2 −2 Library/Formula/mpg123.rb
  218. +1 −1  Library/Formula/mplayer.rb
  219. +5 −11 Library/Formula/msmtp.rb
  220. +4 −4 Library/Formula/mtr.rb
  221. +24 −27 Library/Formula/mutt.rb
  222. +3 −3 Library/Formula/mysql-connector-c.rb
  223. +5 −5 Library/Formula/mysql.rb
  224. +6 −3 Library/Formula/mz-scheme.rb
  225. +8 −9 Library/Formula/n2n.rb
  226. +3 −3 Library/Formula/nasm.rb
  227. +5 −4 Library/Formula/nazghul.rb
  228. +5 −4 Library/Formula/ncftp.rb
  229. +2 −6 Library/Formula/neon.rb
  230. +0 −2  Library/Formula/netcdf.rb
  231. +12 −17 Library/Formula/nethack.rb
  232. +1 −1  Library/Formula/newlisp.rb
  233. +5 −6 Library/Formula/nkf.rb
  234. +2 −2 Library/Formula/nmap.rb
  235. +1 −3 Library/Formula/node.rb
  236. +1 −1  Library/Formula/objective-caml.rb
  237. +1 −1  Library/Formula/ode.rb
  238. +4 −4 Library/Formula/omega.rb
  239. +3 −3 Library/Formula/oniguruma.rb
  240. +1 −1  Library/Formula/open-mpi.rb
  241. +4 −6 Library/Formula/open-tyrian.rb
  242. +1 −1  Library/Formula/opencore-amr.rb
  243. +10 −17 Library/Formula/opencv.rb
  244. +3 −4 Library/Formula/openexr.rb
  245. +4 −4 Library/Formula/openimageio.rb
  246. +2 −3 Library/Formula/openvpn.rb
  247. +3 −1 Library/Formula/orc.rb
  248. +1 −1  Library/Formula/orderly.rb
  249. +1 −1  Library/Formula/ossp-uuid.rb
  250. +0 −1  Library/Formula/p0f.rb
  251. +3 −3 Library/Formula/par2.rb
  252. +3 −3 Library/Formula/pbzip2.rb
  253. +10 −6 Library/Formula/pdflib-lite.rb
  254. +3 −3 Library/Formula/pdftohtml.rb
  255. +1 −1  Library/Formula/pgpool-ii.rb
  256. +1 −1  Library/Formula/phoronix-test-suite.rb
  257. +0 −1  Library/Formula/pig.rb
  258. +1 −2  Library/Formula/pigz.rb
  259. +0 −2  Library/Formula/pkg-config.rb
  260. +6 −8 Library/Formula/playdar.rb
  261. +2 −2 Library/Formula/plowshare.rb
  262. +1 −1  Library/Formula/png2ico.rb
  263. +1 −4 Library/Formula/pngrewrite.rb
  264. +4 −6 Library/Formula/poco.rb
  265. +3 −7 Library/Formula/poppler.rb
  266. +2 −3 Library/Formula/pos.rb
  267. +14 −19 Library/Formula/postgresql.rb
  268. +3 −1 Library/Formula/povray.rb
  269. +6 −6 Library/Formula/proctools.rb
  270. +1 −1  Library/Formula/proj.rb
  271. +4 −4 Library/Formula/protobuf.rb
  272. +3 −3 Library/Formula/pstree.rb
  273. +1 −1  Library/Formula/ptunnel.rb
  274. +3 −1 Library/Formula/pure.rb
  275. +2 −1  Library/Formula/pwgen.rb
  276. +5 −4 Library/Formula/pwsafe.rb
  277. +1 −1  Library/Formula/pyqt.rb
  278. +3 −8 Library/Formula/qdbm.rb
  279. +3 −4 Library/Formula/qt.rb
  280. +1 −1  Library/Formula/quicktree.rb
  281. +2 −3 Library/Formula/ragel.rb
  282. +1 −1  Library/Formula/raptor.rb
  283. +2 −3 Library/Formula/readline.rb
  284. +1 −5 Library/Formula/rename.rb
  285. +1 −1  Library/Formula/repl.rb
  286. +4 −4 Library/Formula/riak.rb
  287. +4 −4 Library/Formula/rinetd.rb
  288. +1 −1  Library/Formula/rlog.rb
  289. +5 −10 Library/Formula/rogue.rb
  290. +1 −2  Library/Formula/rtmpdump.rb
  291. +1 −1  Library/Formula/rubinius.rb
  292. +3 −7 Library/Formula/ruby.rb
  293. +0 −2  Library/Formula/runit.rb
  294. +6 −9 Library/Formula/rxvt-unicode.rb
  295. +2 −2 Library/Formula/rzip.rb
  296. +6 −5 Library/Formula/s-lang.rb
  297. +1 −1  Library/Formula/s3sync.rb
  298. +0 −1  Library/Formula/saga-cpp.rb
  299. +0 −1  Library/Formula/sbcl.rb
  300. +2 −3 Library/Formula/sbt.rb
Sorry, we could not display the entire diff because too many files (389) changed.
View
3  Library/Formula/aalib.rb
@@ -11,7 +11,8 @@ def patches
def install
ENV.ncurses_define
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--mandir=#{man}"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--mandir=#{man}", "--prefix=#{prefix}"
system "make install"
end
end
View
18 Library/Formula/abuse.rb
@@ -9,18 +9,18 @@ class Abuse <Formula
url 'svn://svn.zoy.org/abuse/abuse/trunk'
homepage 'http://abuse.zoy.org/'
version 'trunk'
-
+
depends_on 'pkg-config'
depends_on 'sdl'
depends_on 'libvorbis'
-
+
def patches
# * Add SDL.m4 to aclocal includes
# * Re-enable OpenGL detection
# * Don't try to include malloc.h
DATA
end
-
+
def startup_script
return <<-END
#!/bin/bash
@@ -30,27 +30,25 @@ def startup_script
def install
# Copy the data files
- d = libexec
- AbuseGameData.new.brew { d.install Dir["*"] }
-
+ AbuseGameData.new.brew { libexec.install Dir["*"] }
system "./bootstrap"
- system "./configure", "--prefix=#{prefix}", "--disable-debug",
+ system "./configure", "--prefix=#{prefix}", "--disable-debug",
"--disable-dependency-tracking",
"--disable-sdltest",
"--with-sdl-prefix=#{HOMEBREW_PREFIX}"
-
+
# Use Framework OpenGL, not libGl
%w[ . src src/imlib src/lisp src/net src/sdlport ].each do |p|
inreplace "#{p}/Makefile", '-lGL', '-framework OpenGL'
end
-
+
system "make"
libexec.install "src/abuse"
# Use a startup script to find the game data
(bin+'abuse').write startup_script
end
-
+
def caveats
"Game settings and saves will be written to the ~/.abuse folder."
end
View
2  Library/Formula/ack.rb
@@ -1,8 +1,8 @@
require 'formula'
class Ack <ScriptFileFormula
- version '1.92'
url "http://github.com/petdance/ack/raw/079b049b7240c2960a8ff811b2857eba462ad803/ack"
+ version '1.92'
md5 '7db577145ceba9f6cc5fddc3e8198342'
homepage 'http://betterthangrep.com/'
end
View
6 Library/Formula/activemq.rb
@@ -5,13 +5,11 @@ class Activemq <Formula
homepage 'http://activemq.apache.org/'
md5 '17574ad1ee6cc3727bf7447c2421097b'
- def skip_clean? path
- path == libexec + 'webapps/admin/WEB-INF/jsp'
- end
+ skip_clean 'libexec/webapps/admin/WEB-INF/jsp'
def startup_script
<<-EOS.undent
- #!/usr/bin/env bash
+ #!/bin/bash
exec #{libexec}/bin/activemq
EOS
end
View
8 Library/Formula/adamem.rb
@@ -13,18 +13,18 @@ def startup_script app
#{libexec}/#{app} -os7 "#{libexec}/OS7.rom" -eos "#{libexec}/EOS.rom" -wp "#{libexec}/WP.rom" $*
END
end
-
+
def install
Dir.chdir 'src' do
system "make -f Makefile.osx dist"
end
-
+
libexec.install Dir["dist/*"]
-
+
(bin+'adamem').write startup_script('adamem')
(bin+'cvem').write startup_script('cvem')
end
-
+
def caveats
"Note that AdamEm is an X11 app, and does not support sound."
end
View
11 Library/Formula/aircrack-ng.rb
@@ -4,7 +4,7 @@ class AircrackNg <Formula
url 'http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz'
md5 'f7a24ed8fad122c4187d06bfd6f998b4'
homepage 'http://aircrack-ng.org/'
-
+
def install
# Force i386, otherwise you get errors:
# sha1-sse2.S:190:32-bit absolute addressing is not supported for x86-64
@@ -13,15 +13,14 @@ def install
ENV.remove compiler_flag, "-arch x86_64"
ENV.append compiler_flag, "-arch i386"
end
-
+
system "make"
system "make", "prefix=#{prefix}", "mandir=#{man1}", "install"
end
- def caveats
- <<-EOS.undent
- Run `airodump-ng-oui-update` as root (or with sudo) to install or update
- the Airodump-ng OUI file.
+ def caveats; <<-EOS.undent
+ Run `airodump-ng-oui-update` as root (or with sudo) to install or update
+ the Airodump-ng OUI file.
EOS
end
end
View
5 Library/Formula/algol68g.rb
@@ -9,9 +9,8 @@ class Algol68g <Formula
def install
# These folders need to exist for configure to work. Lame.
bin.mkpath
-
- system "./configure",
- "-O3", "--threads", "--bindir=#{bin}", "--cc=#{ENV.cc}"
+
+ system "./configure", "-O3", "--threads", "--bindir=#{bin}", "--cc=#{ENV.cc}"
# Don't make the docs, they appear to be missing.
inreplace 'makefile', '@install -m 644 doc/man1/a68g.1 $(man_dir)', ''
View
2  Library/Formula/android-sdk.rb
@@ -16,7 +16,7 @@ def install
mv 'SDK Readme.txt', 'README'
prefix.install Dir['*']
- %w[adb android apkbuilder ddms dmtracedump draw9patch emulator
+ %w[adb android apkbuilder ddms dmtracedump draw9patch emulator
hierarchyviewer hprof-conv layoutopt mksdcard traceview
zipalign].each do |tool|
(bin+tool).make_link(prefix+'tools'+tool)
View
9 Library/Formula/angband.rb
@@ -1,15 +1,16 @@
require 'formula'
class Angband <Formula
- @url='http://rephial.org/downloads/3.0/angband-3.0.9b-src.tar.gz'
- @md5='51a24fe3119e7eff8a8395d601b2747e'
- @homepage='http://rephial.org/'
+ url 'http://rephial.org/downloads/3.0/angband-3.0.9b-src.tar.gz'
+ md5 '51a24fe3119e7eff8a8395d601b2747e'
+ homepage 'http://rephial.org/'
def install
system "./configure", "--prefix=#{prefix}",
"--enable-curses",
"--disable-x11",
- "--disable-sdltest",
+ "--disable-sdl",
+ "--disable-sdl-mixer",
"--with-libpath=#{libexec}"
system "make"
# Install manually; 'make install' doesn't work.
View
4 Library/Formula/antiword.rb
@@ -5,9 +5,7 @@ class Antiword <Formula
homepage 'http://www.winfield.demon.nl/'
md5 'f868e2a269edcbc06bf77e89a55898d1'
- def skip_clean? path
- path == share+'antiword'
- end
+ skip_clean 'share/antiword'
def install
inreplace "Makefile" do |s|
View
11 Library/Formula/apg.rb
@@ -9,14 +9,11 @@ def install
inreplace "Makefile" do |s|
s.remove_make_var! ["CC", "FLAGS", "LIBS", "LIBM"]
end
-
+
system "make standalone"
-
+
# Install manually
- bin.install "apg"
- man1.install "doc/man/apg.1"
-
- bin.install "apgbfm"
- man1.install "doc/man/apgbfm.1"
+ bin.install ["apg", "apgbfm"]
+ man1.install ["doc/man/apg.1", "doc/man/apgbfm.1"]
end
end
View
2  Library/Formula/app-engine-java-sdk.rb
@@ -7,7 +7,7 @@ class AppEngineJavaSdk <Formula
def shim_script target
<<-EOS.undent
- #!/usr/bin/env bash
+ #!/bin/bash
#{libexec}/bin/#{target} $*
EOS
end
View
16 Library/Formula/aqbanking.rb
@@ -5,23 +5,19 @@ class Aqbanking <Formula
homepage 'http://www.aqbanking.de/'
md5 '244f5c6e470b55452d9f2cb6c081c137'
+ depends_on 'gettext'
depends_on 'gmp'
depends_on 'gwenhywfar'
depends_on 'ktoblzcheck' => :optional
- depends_on 'gettext'
- #depends_on 'qt3' # for gui frontends
def install
fails_with_llvm "llvm results in a sigsegfault during compile"
- configure_args = [
- "--prefix=#{prefix}",
- "--disable-debug",
- "--disable-dependency-tracking",
- "--with-frontends=cli",
- "--with-gwen-dir=#{HOMEBREW_PREFIX}",
- ]
- system "./configure", *configure_args
ENV.j1
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-frontends=cli",
+ "--with-gwen-dir=#{HOMEBREW_PREFIX}"
system "make install"
end
end
View
4 Library/Formula/arp-sk.rb
@@ -8,7 +8,9 @@ class ArpSk <Formula
depends_on 'libnet'
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--with-libnet=#{HOMEBREW_PREFIX}"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-libnet=#{HOMEBREW_PREFIX}"
system "make install"
end
end
View
13 Library/Formula/arping.rb
@@ -8,6 +8,11 @@ class Arping <Formula
depends_on 'libnet'
+ def patches
+ # Patch removes header conflict with libpcap; arping 2.x uses libnet
+ DATA
+ end
+
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
@@ -15,16 +20,10 @@ def install
inreplace 'Makefile' do |s|
s.change_make_var! "LIBS", " -lnet"
end
-
+
system "make"
system "make install"
end
-
- def patches
- # Patch removes header conflict with libpcap
- # arping 2.x uses libnet
- DATA
- end
end
__END__
View
26 Library/Formula/aspell.rb
@@ -352,9 +352,8 @@ class Aspell <Formula
md5 'bc80f0198773d5c05086522be67334eb'
def options
- [
- ['--lang=XX,...', 'Install dictionary for language XX where language is the 2 or 3 letter country code, e.g.: --lang=en,es'],
- ]
+ [['--lang=XX,...',
+ 'Install dictionary for language XX where language is the 2 or 3 letter country code, e.g.: --lang=en,es']]
end
def install
@@ -362,24 +361,19 @@ def install
system "./configure", "--prefix=#{prefix}"
system "make install"
- langopt = ARGV.options.select { |v| v =~ /--lang=/ }
- langopt.uniq.each do |opt|
+ ARGV.options.select { |v| v =~ /--lang=/ }.uniq.each do |opt|
languages = opt.split('=')[1].split(',')
- languages.each() do |lang|
- classname = "Aspell" + lang.capitalize
- clazz = Object.const_get(classname)
- formula = clazz.new
+ languages.each do |lang|
+ formula = Object.const_get("Aspell" + lang.capitalize).new
formula.brew { formula.install }
end
end
end
-
- # TODO remove when options works properly
- def caveats
- "To install dictionaries, eg:
-
- brew install aspell --lang=en
-"
+ # TODO remove when options works properly
+ def caveats; <<-EOS
+ To install dictionaries, eg:
+ brew install aspell --lang=en
+ EOS
end
end
View
8 Library/Formula/astyle.rb
@@ -1,15 +1,15 @@
require 'formula'
class Astyle <Formula
- @url='http://downloads.sourceforge.net/sourceforge/astyle/astyle_1.24_macosx.tar.gz'
- @md5='9b63dadac58e867f14b3894befbdc9b3'
- @homepage='http://astyle.sourceforge.net/'
+ url 'http://downloads.sourceforge.net/sourceforge/astyle/astyle_1.24_macosx.tar.gz'
+ md5 '9b63dadac58e867f14b3894befbdc9b3'
+ homepage 'http://astyle.sourceforge.net/'
def install
Dir.chdir 'src' do
ENV['prefix']=prefix
system "make -f ../build/mac/Makefile"
- bin.install "./bin/astyle"
+ bin.install "bin/astyle"
end
end
end
View
9 Library/Formula/atf.rb
@@ -6,11 +6,10 @@ class Atf <Formula
md5 'ec5b2cbbc70b0ced4b46e77c9f0b2a1b'
def install
- system "./configure",
- "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--sysconfdir=#{etc}",
- "--mandir=#{man}"
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}",
+ "--mandir=#{man}"
system "make install"
end
end
View
2  Library/Formula/atk.rb
@@ -7,7 +7,7 @@ class Atk <Formula
depends_on 'pkg-config'
depends_on 'glib'
-
+
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
View
6 Library/Formula/automoc4.rb
@@ -1,9 +1,9 @@
require 'formula'
class Automoc4 <Formula
- @url='ftp://ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
- @homepage='http://techbase.kde.org/Development/Tools/Automoc4'
- @md5='91bf517cb940109180ecd07bc90c69ec'
+ url 'ftp://ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
+ homepage 'http://techbase.kde.org/Development/Tools/Automoc4'
+ md5 '91bf517cb940109180ecd07bc90c69ec'
depends_on 'cmake'
depends_on 'qt'
View
2  Library/Formula/bcrypt.rb
@@ -11,7 +11,7 @@ def install
s.change_make_var! "CFLAGS", ENV['CFLAGS']
s.change_make_var! "LDFLAGS", "-lz"
end
-
+
system "make"
bin.install "bcrypt"
man1.install gzip("bcrypt.1")
View
13 Library/Formula/bitlbee.rb
@@ -16,9 +16,14 @@ def install
# magician will know).
ENV['LD'] = '/usr/bin/ld'
- # Homebrew should handlle the stripping.
+ # Homebrew should handle the stripping.
# Should we use --config=/usr/local/var/lib/bitlbee/ ?
- system "./configure", "--debug=0", "--strip=0", "--ssl=gnutls", "--pidfile=#{var}/bitlbee/run/bitlbee.pid", "--config=#{var}/bitlbee/lib/", "--ipsocket=#{var}/bitlbee/run/bitlbee.sock", "--prefix=#{prefix}"
+ system "./configure", "--prefix=#{prefix}",
+ "--debug=0", "--strip=0",
+ "--ssl=gnutls",
+ "--pidfile=#{var}/bitlbee/run/bitlbee.pid",
+ "--config=#{var}/bitlbee/lib/",
+ "--ipsocket=#{var}/bitlbee/run/bitlbee.sock"
# This build depends on make running first.
system "make"
system "make install"
@@ -26,7 +31,7 @@ def install
system "make install-etc"
(var+"bitlbee").mkpath
- (var+"bitlbee"+"run").mkpath
- (var+"bitlbee"+"lib").mkpath
+ (var+"bitlbee/run").mkpath
+ (var+"bitlbee/lib").mkpath
end
end
View
2  Library/Formula/botan.rb
@@ -7,7 +7,7 @@ class Botan <Formula
def install
inreplace 'src/build-data/makefile/unix_shr.in' do |s|
- s.change_make_var! 'SONAME', "#{lib}" + '/$(LIBNAME)-$(SO_VERSION).%{so_suffix}'
+ s.change_make_var! 'SONAME', "#{lib}/$(LIBNAME)-$(SO_VERSION).%{so_suffix}"
end
system "./configure.py", "--prefix=#{prefix}"
View
4 Library/Formula/boxes.rb
@@ -7,8 +7,8 @@ class Boxes <Formula
def install
# distro uses /usr/share/boxes change to prefix
- inreplace 'Makefile' do |contents|
- contents.change_make_var! "GLOBALCONF", "#{share}/boxes-config"
+ inreplace 'Makefile' do |s|
+ s.change_make_var! "GLOBALCONF", "#{share}/boxes-config"
end
system "make"
View
3  Library/Formula/cadaver.rb
@@ -8,8 +8,9 @@ class Cadaver <Formula
depends_on 'gettext'
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug",
+ system "./configure", "--disable-debug",
"--disable-dependency-tracking",
+ "--prefix=#{prefix}",
"--with-ssl"
system "(cd lib/intl; make)"
system "make install"
View
4 Library/Formula/cairo.rb
@@ -10,9 +10,7 @@ class Cairo <Formula
depends_on 'pixman'
# Comes with Snow Leopard, but not Leopard
- def keg_only?
- :provided_by_osx
- end
+ keg_only :provided_by_osx
def install
system "./configure", "--disable-dependency-tracking",
View
8 Library/Formula/calc.rb
@@ -13,6 +13,7 @@ def install
ENV['EXTRA_LDFLAGS'] = ENV['LDFLAGS']
ENV['EXTRA_CFLAGS'] = ENV['CFLAGS']
+ readline = Formula.factory('readline')
inreplace "Makefile" do |s|
s.change_make_var! "INCDIR", include
s.change_make_var! "BINDIR", bin
@@ -20,11 +21,12 @@ def install
s.change_make_var! "MANDIR", man1
s.change_make_var! "CALC_SHAREDIR", "#{share}/calc"
s.change_make_var! "USE_READLINE", "-DUSE_READLINE"
- readline = Formula.factory('readline')
s.change_make_var! "READLINE_LIB", "-L#{readline.lib} -lreadline"
s.change_make_var! "READLINE_EXTRAS", "-lhistory -lncurses"
- s.change_make_var! "LIBCALC_SHLIB", "-single_module -undefined dynamic_lookup -dynamiclib -install_name ${LIBDIR}/libcalc${LIB_EXT_VERSION}"
- s.change_make_var! "LIBCUSTCALC_SHLIB", "-single_module -undefined dynamic_lookup -dynamiclib -install_name ${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"
+ s.change_make_var! "LIBCALC_SHLIB",
+ "-single_module -undefined dynamic_lookup -dynamiclib -install_name ${LIBDIR}/libcalc${LIB_EXT_VERSION}"
+ s.change_make_var! "LIBCUSTCALC_SHLIB",
+ "-single_module -undefined dynamic_lookup -dynamiclib -install_name ${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"
end
system "make"
View
1  Library/Formula/cassandra.rb
@@ -4,7 +4,6 @@ class Cassandra <Formula
url 'http://www.alliedquotes.com/mirrors/apache/cassandra/0.6.4/apache-cassandra-0.6.4-bin.tar.gz'
homepage 'http://cassandra.apache.org'
md5 '3bb41737ef8f1f76cd5d13cb6db5e079'
- version '0.6.4'
def install
(var+"lib/cassandra").mkpath
View
1  Library/Formula/catdoc.rb
@@ -3,7 +3,6 @@
class Catdoc <Formula
url 'http://ftp.wagner.pp.ru/pub/catdoc/catdoc-0.94.2.tar.gz'
homepage 'http://wagner.pp.ru/~vitus/software/catdoc/'
- # Victor Wagner publishes a SHA1 hash, to keep it simple let's use that instead of MD5
sha1 '50ce9d7cb24ad6b10a856c9c24183e2b0a11ca04'
def install
View
2  Library/Formula/cdargs.rb
@@ -10,7 +10,7 @@ def install
system "make"
system "make install-strip"
- rm Dir.glob('contrib/Makefile*')
+ rm Dir['contrib/Makefile*']
prefix.install 'contrib'
bash_completion_dir = etc+'bash_completion.d'
View
2  Library/Formula/chcase.rb
@@ -1,8 +1,8 @@
require 'formula'
class Chcase <ScriptFileFormula
- version '2.0'
url 'http://www.primaledge.ca/chcase'
+ version '2.0'
md5 '6d7e35fd597c60ba5ebbdd8d5e57eee7'
homepage 'http://www.primaledge.ca/chcase.html'
View
18 Library/Formula/chocolate-doom.rb
@@ -15,17 +15,19 @@ def install
"--disable-dependency-tracking",
"--disable-sdltest"
system "make install"
-
+
# This project installs to 'games', but we want it in 'bin' so it symlinks in.
# Can't find a ./configure switch, so just rename it.
(prefix+"games").rename bin
end
-
- def caveats
- "Note that this formula only installs a Doom game engine, and no\n"\
- "actual levels. The original Doom levels are still under copyright, \n"\
- "so you can copy them over and play them if you already own them.\n\n"\
- "Otherwise, there are tons of free levels available online.\n"\
- "Try starting here:\n\t#{homepage}"
+
+ def caveats; <<-EOS.undent
+ Note that this formula only installs a Doom game engine, and no
+ actual levels. The original Doom levels are still under copyright,
+ so you can copy them over and play them if you already own them.
+ Otherwise, there are tons of free levels available online.
+ Try starting here:
+ #{homepage}
+ EOS
end
end
View
6 Library/Formula/cksfv.rb
@@ -1,9 +1,9 @@
require 'formula'
class Cksfv <Formula
- @url='http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2'
- @homepage='http://zakalwe.fi/~shd/foss/cksfv/'
- @md5='138bff42ab23fbba8cca0ae14b2d9e52'
+ url 'http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2'
+ homepage 'http://zakalwe.fi/~shd/foss/cksfv/'
+ md5 '138bff42ab23fbba8cca0ae14b2d9e52'
def install
system "./configure", "--prefix=#{prefix}"
View
2  Library/Formula/cloc.rb
@@ -1,8 +1,8 @@
require 'formula'
class Cloc <ScriptFileFormula
- version '1.51'
url "http://cloc.svn.sourceforge.net/viewvc/cloc/tags/1.51/cloc"
md5 'c491922de2bad911fbc2047b336c91b5'
+ version '1.51'
homepage 'http://cloc.sourceforge.net/'
end
View
6 Library/Formula/clucene.rb
@@ -1,9 +1,9 @@
require 'formula'
class Clucene <Formula
- @url='http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21/clucene-core-0.9.21.tar.bz2'
- @homepage='http://sourceforge.net/projects/clucene/'
- @md5='181cf9a827fd072717d9b09d1a1bda74'
+ url 'http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21/clucene-core-0.9.21.tar.bz2'
+ homepage 'http://sourceforge.net/projects/clucene/'
+ md5 '181cf9a827fd072717d9b09d1a1bda74'
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
View
12 Library/Formula/clusterit.rb
@@ -4,17 +4,19 @@ class Clusterit <Formula
url 'http://downloads.sourceforge.net/project/clusterit/clusterit/clusterit-2.5/clusterit-2.5.tar.gz'
homepage 'http://www.garbled.net/clusterit.html'
md5 'f0e772e07122e388de629fb57f7237ab'
-
- def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
- system "make install"
- end
def patches
DATA
end
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
end
+
__END__
diff --git a/Makefile.am b/Makefile.am
index 63f334e..a7ee923 100644
View
2  Library/Formula/coffee-script.rb
@@ -9,7 +9,7 @@ class CoffeeScript <Formula
# head coffee-script usually depends on head node and
# since there isn't a way to specify that just remove
# the depends_on
- depends_on :node unless ARGV.build_head?
+ depends_on 'node' unless ARGV.build_head?
def caveats
<<-EOS.undent
View
4 Library/Formula/collectd.rb
@@ -5,9 +5,7 @@ class Collectd <Formula
homepage 'http://collectd.org/'
md5 '8cd79b4ebdb9dbeb51ba52d3463a06ef'
- def skip_clean? path
- true
- end
+ skip_clean :all
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
View
3  Library/Formula/couchdb.rb
@@ -1,10 +1,9 @@
require 'formula'
class Couchdb <Formula
- url 'git://github.com/apache/couchdb.git'
+ url 'git://github.com/apache/couchdb.git', :tag => "origin/tags/1.0.0"
homepage "http://couchdb.apache.org/"
version "1.0.0"
- @specs = {:tag => "origin/tags/1.0.0"}
depends_on 'spidermonkey'
depends_on 'icu4c'
View
2  Library/Formula/cowsay.rb
@@ -7,6 +7,6 @@ class Cowsay <Formula
def install
system "/bin/sh", "install.sh", prefix
- FileUtils.mv prefix+'man', share
+ mv prefix+'man', share
end
end
View
2  Library/Formula/cppcheck.rb
@@ -7,7 +7,7 @@ class Cppcheck < Formula
head 'git://github.com/danmar/cppcheck.git'
# Do not strip binaries, or else it fails to run.
- def skip_clean?(path); true end
+ skip_clean :all
def install
# Pass to make variables.
View
7 Library/Formula/cracklib-words.rb
@@ -1,16 +1,13 @@
require 'formula'
class CracklibWords <Formula
- url 'http://downloads.sourceforge.net/project/cracklib/cracklib-words/2008-05-07/cracklib-words-20080507.gz'
+ url 'http://downloads.sourceforge.net/project/cracklib/cracklib-words/2008-05-07/cracklib-words-20080507.gz',
+ :using => NoUnzipCurlDownloadStrategy
homepage 'http://cracklib.sourceforge.net'
md5 '7fa6ba0cd50e7f9ccaf4707c810b14f1'
depends_on 'cracklib'
- def download_strategy
- NoUnzipCurlDownloadStrategy
- end
-
def install
system "gzip", "-d", "cracklib-words-20080507.gz"
share.install "cracklib-words-20080507" => "cracklib-words"
View
2  Library/Formula/csshx.rb
@@ -7,6 +7,6 @@ class Csshx < Formula
head 'http://csshx.googlecode.com/svn/trunk/'
def install
- bin.install 'csshX'
+ bin.install 'csshX'
end
end
View
6 Library/Formula/ctags.rb
@@ -1,9 +1,9 @@
require 'formula'
class Ctags <Formula
- @url='http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz'
- @homepage='http://ctags.sourceforge.net/'
- @md5='c00f82ecdcc357434731913e5b48630d'
+ url 'http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz'
+ homepage 'http://ctags.sourceforge.net/'
+ md5 'c00f82ecdcc357434731913e5b48630d'
def install
system "./configure", "--prefix=#{prefix}",
View
4 Library/Formula/cuetools.rb
@@ -6,7 +6,9 @@ class Cuetools <Formula
md5 '45575f7a1bdc6615599fa6cb49845cca'
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--mandir=#{man}"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}"
system "make install"
end
end
View
3  Library/Formula/cups-pdf.rb
@@ -17,8 +17,7 @@ def install
(share+'cups/model').install "extra/CUPS-PDF.ppd"
end
- def caveats
- <<EOF
+ def caveats; <<-EOF
In order to use cups-pdf with the Mac OS X printing system change the file
permissions, symlink the necessary files to their System location and
have cupsd re-read its configuration using:
View
1  Library/Formula/cvsps.rb
@@ -4,7 +4,6 @@ class Cvsps <Formula
url 'http://www.cobite.com/cvsps/cvsps-2.2b1.tar.gz'
homepage 'http://www.cobite.com/cvsps/'
md5 '997580e8e283034995b9209076858c68'
- version '2.2b1'
def install
system "make cvsps"
View
10 Library/Formula/d-bus.rb
@@ -13,13 +13,15 @@ class DBus <Formula
def install
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
ENV["TMPDIR"] = "/tmp"
- system "./configure", "--prefix=#{prefix}", "--disable-xml-docs",
- "--disable-doxygen-docs", "--disable-dependency-tracking",
- "--without-x"
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--disable-xml-docs",
+ "--disable-doxygen-docs",
+ "--without-x"
system "make install"
# Generate D-Bus's UUID for this machine
- system "#{prefix}/bin/dbus-uuidgen",
+ system "#{prefix}/bin/dbus-uuidgen",
"--ensure=#{prefix}/var/lib/dbus/machine-id"
end
end
View
5 Library/Formula/ddclient.rb
@@ -5,9 +5,8 @@ class Ddclient <Formula
homepage 'http://sourceforge.net/apps/trac/ddclient'
md5 '6cac7a5eb1da781bfd4d98cef0b21f8e'
- def skip_clean? path
- path == etc or path == var
- end
+ skip_clean 'etc'
+ skip_clean 'var'
def install
# Adjust default paths in script
View
6 Library/Formula/ddrescue.rb
@@ -1,9 +1,9 @@
require 'formula'
class Ddrescue <Formula
- @url='http://ftp.gnu.org/gnu/ddrescue/ddrescue-1.11.tar.gz'
- @homepage='http://www.gnu.org/software/ddrescue/ddrescue.html'
- @md5='7146046bb1851351d1337bb1f5b4e903'
+ url 'http://ftp.gnu.org/gnu/ddrescue/ddrescue-1.11.tar.gz'
+ homepage 'http://www.gnu.org/software/ddrescue/ddrescue.html'
+ md5 '7146046bb1851351d1337bb1f5b4e903'
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
View
3  Library/Formula/despotify.rb
@@ -10,8 +10,7 @@ class Despotify <Formula
def install
system "make Makefile.local.mk"
- inreplace "Makefile.local.mk",
- "# INSTALL_PREFIX = /usr", "INSTALL_PREFIX = #{prefix}"
+ inreplace "Makefile.local.mk", "# INSTALL_PREFIX = /usr", "INSTALL_PREFIX = #{prefix}"
system "make"
system "make install"
end
View
2  Library/Formula/devtodo.rb
@@ -13,7 +13,7 @@ def patches
def install
# Rename Regex.h to Regex.hh to avoid case-sensitivity confusion with regex.h
- FileUtils.mv "util/Regex.h", "util/Regex.hh"
+ mv "util/Regex.h", "util/Regex.hh"
inreplace ["util/Lexer.h", "util/Makefile.in", "util/Regex.cc"],
"Regex.h", "Regex.hh"
View
11 Library/Formula/dict.rb
@@ -20,13 +20,14 @@
EOS
class Dict <Formula
- @url='ftp://ftp.dict.org/dict/dictd-1.9.15.tar.gz'
- @homepage='http://www.dict.org/'
- @md5='68c1cffa952012ba85a7271311de55e9'
+ url 'ftp://ftp.dict.org/dict/dictd-1.9.15.tar.gz'
+ homepage 'http://www.dict.org/'
+ md5 '68c1cffa952012ba85a7271311de55e9'
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--sysconfdir=#{prefix}/etc"
-
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}"
# install the client
system "make install.dict"
View
8 Library/Formula/diction.rb
@@ -6,12 +6,8 @@ class Diction <Formula
md5 '4cbdb115c976d7141f54b223df28012e'
def install
- configure_args = [
- "--prefix=#{prefix}",
- "--disable-debug",
- "--disable-dependency-tracking",
- ]
- system "./configure", *configure_args
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
system "make install"
end
end
View
5 Library/Formula/discount.rb
@@ -6,7 +6,10 @@ class Discount <Formula
md5 'c05cb804bdf5013aea2e816e5d2233d7'
def install
- system "./configure.sh", "--prefix=#{prefix}", "--mandir=#{man}", "--enable-dl-tag", "--enable-pandoc-header", "--enable-superscript", "--relaxed-emphasis", "--enable-div", "--enable-alpha-list"
+ system "./configure.sh", "--prefix=#{prefix}", "--mandir=#{man}",
+ "--enable-dl-tag", "--enable-pandoc-header",
+ "--enable-superscript", "--relaxed-emphasis",
+ "--enable-div", "--enable-alpha-list"
bin.mkdir
lib.mkdir
include.mkdir
View
6 Library/Formula/djmount.rb
@@ -13,14 +13,14 @@ def patches
def caveats
<<-EOS.undent
- This depends on the MacFUSE installation from http://code.google.com/p/macfuse/
- MacFUSE must be installed prior to installing this formula.
+ This depends on the MacFUSE installation from http://code.google.com/p/macfuse/
+ MacFUSE must be installed prior to installing this formula.
EOS
end
def install
ENV.append "CFLAGS", "-D__FreeBSD__=10"
- system "./configure", "--disable-debug",
+ system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-fuse-prefix=/usr/local",
View
14 Library/Formula/dmd.rb
@@ -1,9 +1,9 @@
require 'formula'
class Dmd <Formula
- @homepage='http://www.digitalmars.com/d/'
- @url='http://ftp.digitalmars.com/dmd.1.060.zip'
- @md5='fd982f9d1d5d836a02ece476c20e5334'
+ homepage='http://www.digitalmars.com/d/'
+ url 'http://ftp.digitalmars.com/dmd.1.060.zip'
+ md5 'fd982f9d1d5d836a02ece476c20e5334'
def doc
#use d and not dmd, rationale: meh
@@ -15,9 +15,9 @@ def install
# clean it up a little first
Dir['src/*.mak'].each {|f| File.unlink f}
- FileUtils.mv 'license.txt', 'COPYING'
- FileUtils.mv 'README.TXT', 'README'
- FileUtils.mv 'src/phobos/phoboslicense.txt', 'src/phobos/COPYING.phobos'
+ mv 'license.txt', 'COPYING'
+ mv 'README.TXT', 'README'
+ mv 'src/phobos/phoboslicense.txt', 'src/phobos/COPYING.phobos'
prefix.install 'osx/lib'
prefix.install 'osx/bin'
@@ -25,7 +25,7 @@ def install
man.install 'man/man1'
(prefix+'src/dmd').rmtree # we don't need the dmd sources thanks
- (man+'man5').install man1+'dmd.conf.5' # oops
+ man5.install man1+'dmd.conf.5' # oops
(prefix+'share/d/examples').install Dir['samples/d/*.d']
(prefix+'bin/dmd.conf').open('w') do |f|
View
6 Library/Formula/dnsmasq.rb
@@ -1,9 +1,9 @@
require 'formula'
class Dnsmasq <Formula
- @url='http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.55.tar.gz'
- @homepage='http://www.thekelleys.org.uk/dnsmasq/doc.html'
- @md5='b093d7c6bc7f97ae6fd35d048529232a'
+ url 'http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.55.tar.gz'
+ homepage 'http://www.thekelleys.org.uk/dnsmasq/doc.html'
+ md5 'b093d7c6bc7f97ae6fd35d048529232a'
def install
ENV.deparallelize
View
17 Library/Formula/docbook.rb
@@ -6,15 +6,6 @@ class Docbook <Formula
version '5.0'
homepage 'http://docbook.sourceforge.net/'
- def caveats
- <<-EOS.undent
- To use the DocBook package in your XML toolchain, you need to
- register it with the global XML catalog with this command:
-
- sudo docbook-register
- EOS
- end
-
def packages; [
Docbookxml412,
Docbookxml42,
@@ -31,6 +22,14 @@ def install
pkg.new.brew { |formula| formula.install }
end
end
+
+ def caveats; <<-EOS.undent
+ To use the DocBook package in your XML toolchain, you need to
+ register it with the global XML catalog with this command:
+
+ sudo docbook-register
+ EOS
+ end
end
class Docbookxml <Formula
View
2  Library/Formula/dos2unix.rb
@@ -13,7 +13,7 @@ def install
# make install is broken due to INSTALL file, but also it sucks so we'll do it
# also Ruby 1.8 is broken, it won't allow you to move a symlink that's
- # target is invalid. FFS very dissapointed with dependability of
+ # target is invalid. FFS very dissapointed with dependability of
# fundamental Ruby functions. Maybe we shouldn't use them?
# Anyway, that is why the symlink is installed first.
bin.install %w[mac2unix dos2unix]
View
8 Library/Formula/dosbox.rb
@@ -5,22 +5,22 @@ class Dosbox <Formula
url 'http://downloads.sourceforge.net/project/dosbox/dosbox/0.74/dosbox-0.74.tar.gz'
homepage 'http://www.dosbox.com/'
md5 'b9b240fa87104421962d14eee71351e8'
-
+
depends_on 'sdl'
depends_on 'sdl_net'
depends_on 'sdl_sound'
-
+
def install
ENV.libpng
ENV.fast
-
+
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-sdltest",
"--enable-core-inline"
system "make"
-
+
bin.install 'src/dosbox'
man1.install gzip('docs/dosbox.1')
end
View
2  Library/Formula/dovecot.rb
@@ -43,7 +43,7 @@ def caveats; <<-EOS
</plist>
Source: http://wiki.dovecot.org/LaunchdInstall
-4) start the server using: sudo launchctl load /Library/LaunchDaemons/org.dovecot.plist
+4) start the server using: sudo launchctl load /Library/LaunchDaemons/org.dovecot.plist
EOS
end
end
View
6 Library/Formula/duff.rb
@@ -6,10 +6,8 @@ class Duff <Formula
md5 '9767e471232c1b4ee553ae40dbe60464'
def install
- system "./configure", "--disable-debug",
- "--disable-dependency-tracking",
- "--mandir=#{man}",
- "--prefix=#{prefix}"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}", "--mandir=#{man}"
# this needs to be executable, but isn't for some reason...
system "chmod 755 ./install-sh"
system "make install"
View
8 Library/Formula/dvdauthor.rb
@@ -14,11 +14,9 @@ def patches
end
def install
- system "./configure",
- "--prefix=#{prefix}",
- "--mandir=#{man}",
- "--disable-debug",
- "--disable-dependency-tracking"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}"
system "make"
# regular install will error out due to attempts to create the same
View
11 Library/Formula/dvdrtools.rb
@@ -16,17 +16,12 @@ def patches
def install
ENV['LIBS'] = '-lIOKit -framework CoreFoundation'
- system "./configure",
- "--prefix=#{prefix}",
- "--mandir=#{man}",
- '--disable-debug',
- '--disable-dependency-tracking'
-
+ system "./configure", '--disable-debug', '--disable-dependency-tracking',
+ "--prefix=#{prefix}",
+ "--mandir=#{man}"
system 'make install'
end
- private
-
# while homebrew assumes p1, macports patches at p0
def macports_patches(files)
{ :p0 => files.map { |file| macports_patch_url('sysutils', file) } }
View
8 Library/Formula/dwdiff.rb
@@ -12,10 +12,10 @@ class Dwdiff <Formula
depends_on 'icu4c'
def install
- gettext_prefix = Formula.factory('gettext').prefix
- icu4c_prefix = Formula.factory('icu4c').prefix
- ENV.append "CFLAGS", "-I#{gettext_prefix}/include -I#{icu4c_prefix}/include"
- ENV.append "LDFLAGS", "-L#{gettext_prefix}/lib -L#{icu4c_prefix}/lib"
+ gettext = Formula.factory('gettext')
+ icu4c = Formula.factory('icu4c')
+ ENV.append "CFLAGS", "-I#{gettext.include} -I#{icu4c.include}"
+ ENV.append "LDFLAGS", "-L#{gettext.lib} -L#{icu4c.lib}"
system "./configure", "--prefix=#{prefix}"
system "make install"
end
View
6 Library/Formula/e2fsprogs.rb
@@ -4,10 +4,8 @@ class E2fsprogs <Formula
url 'http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/1.41.9/e2fsprogs-1.41.9.tar.gz'
homepage 'http://e2fsprogs.sourceforge.net/'
md5 '52f60a9e19a02f142f5546f1b5681927'
-
- def keg_only?
- "This brew installs several commands which override OS X-provided file system commands."
- end
+
+ keg_only "This brew installs several commands which override OS X-provided file system commands."
def install
system "./configure", "--prefix=#{prefix}"
View
4 Library/Formula/ecl.rb
@@ -7,9 +7,7 @@ class Ecl <Formula
def install
ENV.deparallelize
- system "./configure",
- "--prefix=#{prefix}",
- "--enable-unicode"
+ system "./configure", "--prefix=#{prefix}", "--enable-unicode"
system "make"
system "make install"
end
View
2  Library/Formula/eigen.rb
@@ -8,7 +8,7 @@ class Eigen <Formula
depends_on 'cmake'
def install
- system "cmake . #{std_cmake_parameters}"
+ system "cmake . #{std_cmake_parameters}"
system "make install"
end
end
View
3  Library/Formula/ejabberd.rb
@@ -1,8 +1,7 @@
require 'formula'
class Ejabberd <Formula
- version "2.1.3"
- url "http://www.process-one.net/downloads/ejabberd/#{version}/ejabberd-#{version}.tar.gz"
+ url "http://www.process-one.net/downloads/ejabberd/2.1.3/ejabberd-2.1.3.tar.gz"
homepage 'http://www.ejabberd.im'
md5 'e5c87eda5312a6e8a53df0f9b4844b69'
View
2  Library/Formula/elasticsearch.rb
@@ -6,7 +6,7 @@ class Elasticsearch < Formula
md5 '0b9f0361163847a6580658c59cbfcc51'
def install
- FileUtils.rm_f Dir["bin/*.bat"]
+ rm_f Dir["bin/*.bat"]
prefix.install %w[bin config lib]
end
end
View
10 Library/Formula/elinks.rb
@@ -1,15 +1,15 @@
require 'formula'
class Elinks <Formula
- @homepage='http://elinks.or.cz/'
- @url='http://elinks.or.cz/download/elinks-0.11.7.tar.bz2'
- @md5='fcd087a6d2415cd4c6fd1db53dceb646'
+ homepage 'http://elinks.or.cz/'
+ url 'http://elinks.or.cz/download/elinks-0.11.7.tar.bz2'
+ md5 'fcd087a6d2415cd4c6fd1db53dceb646'
def install
- ENV.deparallelize
fails_with_llvm
+ ENV.deparallelize
ENV.delete('LD')
- system "./configure --prefix='#{prefix}'"
+ system "./configure", "--prefix=#{prefix}"
system "make install"
end
end
View
9 Library/Formula/emacs.rb
@@ -37,12 +37,6 @@ def caveats
To access texinfo documentation, set your INFOPATH to:
#{info}
- The Emacs project now uses bazaar for source code versioning. If you
- last built the Homebrew emacs formula from HEAD prior to their switch
- from CVS to bazaar, you will have to remove Homebrew's cached download
- before building from HEAD again:
- #{HOMEBREW_CACHE}/emacs-HEAD
-
The initial checkout of the bazaar Emacs repository might take a long
time. You might find that using the repo.or.cz git mirror is faster,
even after the initial checkout. To use the repo.or.cz git mirror for
@@ -53,9 +47,6 @@ def caveats
status. The Emacs devs do not provide support for the git mirror, and
they might reject bug reports filed with git version information. Use
it at your own risk.
-
- If you switch between repositories, you'll have to remove the Homebrew
- emacs cache directory (see above).
EOS
return s
View
3  Library/Formula/erlang.rb
@@ -7,10 +7,9 @@ class ErlangManuals <Formula
class Erlang <Formula
# Download from GitHub repo, which is much faster than using the official tarball
- url "git://github.com/erlang/otp.git"
+ url "git://github.com/erlang/otp.git", :tag => "OTP_R13B04"
homepage 'http://www.erlang.org'
version 'R13B04'
- @specs = {:tag => "OTP_R13B04"}
# We can't strip the beam executables or any plugins, there isn't really
# anything else worth stripping and it takes a really, long time to run
View
30 Library/Formula/ettercap-ng.rb
@@ -11,7 +11,7 @@ class EttercapNg < Formula
#
# Include various macports patches: http://trac.macports.org/export/61709/trunk/dports/net/ettercap-ng/files/
# I didn't write the macports patches, but they seem to be necessary.
- # Associated discussions:
+ # Associated discussions:
# http://thnetos.wordpress.com/2007/08/10/how-to-compile-ettercap-ng-073-on-mac-osx-when-you-get-that-annoying-pthread-error/
# http://thnetos.wordpress.com/2007/11/15/compile-ettercap-ng-073-natively-on-leopard-fix/
# http://trac.macports.org/ticket/3031
@@ -30,23 +30,17 @@ def patches
end
def install
- configure_args = [
- "--prefix=#{prefix}",
- "--mandir=#{man}",
- "--infodir=#{prefix}/share/info",
- '--disable-dependency-tracking',
- "--disable-gtk",
- "--disable-debug",
- "--disable-plugins",
- "--with-openssl=/usr",
- "--with-libpcap=/usr",
- "--with-libncurses=/usr",
- "--with-libpcre=#{HOMEBREW_PREFIX}",
- "--with-libnet=#{HOMEBREW_PREFIX}",
- ]
-
- system "./configure", *configure_args
-
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--infodir=#{prefix}/share/info",
+ "--disable-gtk",
+ "--disable-plugins",
+ "--with-openssl=/usr",
+ "--with-libpcap=/usr",
+ "--with-libncurses=/usr",
+ "--with-libpcre=#{HOMEBREW_PREFIX}",
+ "--with-libnet=#{HOMEBREW_PREFIX}"
system "make install"
end
end
View
2  Library/Formula/exif.rb
@@ -8,7 +8,7 @@ class Exif <Formula
depends_on 'popt'
depends_on 'libexif'
depends_on 'gettext'
-
+
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
View
4 Library/Formula/exiftool.rb
@@ -8,10 +8,10 @@ class Exiftool <Formula
def install
system "perl", "Makefile.PL"
system "make", "test"
-
+
# Install privately to the Cellar
libexec.install ["exiftool", "lib"]
-
+
# Link the executable script into "bin"
bin.mkpath
(bin + 'exiftool').write <<-EOBIN
View
25 Library/Formula/exim.rb
@@ -8,14 +8,14 @@ class Exim <Formula
depends_on 'pcre'
def install
- FileUtils.cp 'src/EDITME', 'Local/Makefile'
+ cp 'src/EDITME', 'Local/Makefile'
inreplace 'Local/Makefile' do |s|
s.remove_make_var! "EXIM_MONITOR"
s.change_make_var! "EXIM_USER", ENV['USER']
- s.change_make_var! "SYSTEM_ALIASES_FILE", etc + 'aliases'
- s.gsub!('/usr/exim/configure', etc + 'exim.conf')
- s.gsub!('/usr/exim', prefix)
- s.gsub!('/var/spool/exim', var + 'spool/exim')
+ s.change_make_var! "SYSTEM_ALIASES_FILE", etc+'aliases'
+ s.gsub! '/usr/exim/configure', etc+'exim.conf'
+ s.gsub! '/usr/exim', prefix
+ s.gsub! '/var/spool/exim', var+'spool/exim'
# For non-/usr/local HOMEBREW_PREFIX
s << "LOOKUP_INCLUDE=-I#{HOMEBREW_PREFIX}/include\n"
@@ -31,11 +31,11 @@ def install
system "make"
system "make INSTALL_ARG=-no_chown install"
- (man + 'man8').install 'doc/exim.8'
- (bin + 'exim_ctl').write startup_script
+ (man8).install 'doc/exim.8'
+ (bin+'exim_ctl').write startup_script
end
- #inspired from macports startup script, but with fixed restart issue due to missing setuid
+ # Inspired by MacPorts startup script. Fixes restart issue due to missing setuid.
def startup_script
return <<-END
#!/bin/sh
@@ -61,11 +61,10 @@ def startup_script
END
end
- def caveats
- <<-EOS.undent
- Start with:
- exim_ctl start
- Don't forget to run it as root to be able to bind port 25.
+ def caveats; <<-EOS.undent
+ Start with:
+ exim_ctl start
+ Don't forget to run it as root to be able to bind port 25.
EOS
end
end
View
8 Library/Formula/expat.rb
@@ -1,9 +1,9 @@
require 'formula'
class Expat <Formula
- @url='http://downloads.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz'
- @homepage='http://expat.sourceforge.net/'
- @md5='ee8b492592568805593f81f8cdf2a04c'
+ url 'http://downloads.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz'
+ homepage 'http://expat.sourceforge.net/'
+ md5 'ee8b492592568805593f81f8cdf2a04c'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
@@ -11,7 +11,7 @@ def install
"--mandir=#{man}"
system "make install"
end
-
+
def caveats
"Note that OS X has Expat 1.5 installed in /usr already."
end