aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 21:10:46 -0700
committerAdam Vandenberg2013-09-11 22:05:34 -0700
commit7a47298256fa737d630eda48b13fe66081129c1b (patch)
treebc52a6da10be4c244a91475857115e29410337db /Library/Formula
parent04988a00b54bdb64d6679636aa8ca452db6f620b (diff)
downloadhomebrew-7a47298256fa737d630eda48b13fe66081129c1b.tar.bz2
sphinx: use resource
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sphinx.rb15
1 files changed, 6 insertions, 9 deletions
diff --git a/Library/Formula/sphinx.rb b/Library/Formula/sphinx.rb
index 974b1b872..ad7d1ddef 100644
--- a/Library/Formula/sphinx.rb
+++ b/Library/Formula/sphinx.rb
@@ -1,13 +1,5 @@
require 'formula'
-class Libstemmer < Formula
- # upstream is constantly changing the tarball,
- # so doing checksum verification here would require
- # constant, rapid updates to this formula.
- head 'http://snowball.tartarus.org/dist/libstemmer_c.tgz'
- homepage 'http://snowball.tartarus.org/'
-end
-
class Sphinx < Formula
homepage 'http://www.sphinxsearch.com'
url 'http://sphinxsearch.com/files/sphinx-2.0.9-release.tar.gz'
@@ -27,6 +19,11 @@ class Sphinx < Formula
depends_on :mysql if build.include? 'mysql'
depends_on :postgresql if build.include? 'pgsql'
+ # http://snowball.tartarus.org/
+ resource 'stemmer' do
+ head 'http://snowball.tartarus.org/dist/libstemmer_c.tgz'
+ end
+
fails_with :llvm do
build 2334
cause "ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)"
@@ -38,7 +35,7 @@ class Sphinx < Formula
end
def install
- Libstemmer.new.brew { (buildpath/'libstemmer_c').install Dir['*'] }
+ (buildpath/'libstemmer_c').install resource('stemmer')
args = %W[--prefix=#{prefix}
--disable-dependency-tracking