aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorClinton R. Nixon2009-09-06 00:43:00 -0400
committerMax Howell2009-09-14 20:33:46 +0100
commit9ec05cf09ec634d86e187a5392b21fb139edeb49 (patch)
treee0322ec45139d146f6f11c9fc3b0fe25af935a7b /Library
parentc13a32382ee5dbd93d1dc67137addd6a57a94c71 (diff)
downloadhomebrew-9ec05cf09ec634d86e187a5392b21fb139edeb49.tar.bz2
Ant formula
Ant is a Java-based build tool. In theory, it is kind of like Make, without Make's wrinkles and with the full portability of pure Java code.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/apache-ant.rb14
-rw-r--r--Library/Homebrew/pathname+yeast.rb6
2 files changed, 19 insertions, 1 deletions
diff --git a/Library/Formula/apache-ant.rb b/Library/Formula/apache-ant.rb
new file mode 100644
index 000000000..893ea5e08
--- /dev/null
+++ b/Library/Formula/apache-ant.rb
@@ -0,0 +1,14 @@
+require 'brewkit'
+
+# TODO common aliases: ant
+
+class ApacheAnt <Formula
+ @url='http://www.ibiblio.org/pub/mirrors/apache/ant/binaries/apache-ant-1.7.1-bin.tar.gz'
+ @homepage='http://ant.apache.org/'
+ @md5='cc5777c57c4e8269be5f3d1dc515301c'
+ @version='1.7.1'
+
+ def install
+ prefix.install Dir['*']
+ end
+end
diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb
index cf068d0fa..5bed99231 100644
--- a/Library/Homebrew/pathname+yeast.rb
+++ b/Library/Homebrew/pathname+yeast.rb
@@ -140,7 +140,11 @@ class Pathname
# eg. foobar4.5.1
/((\d+\.)*\d+)$/.match stem
return $1 if $1
-
+
+ # eg foobar-4.5.0-bin
+ /-((\d+\.)*\d+-bin)$/.match stem
+ return $1 if $1
+
# eg. otp_src_R13B (this is erlang's style)
# eg. astyle_1.23_macosx.tar.gz
stem.scan /_([^_]+)/ do |match|