aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-05-26 19:21:08 -0500
committerJack Nagel2013-05-26 19:27:35 -0500
commit0647f499b9eac1991c9ca6b1affd04708dc6c991 (patch)
treebd269a4c098de4f7ae4019c89335a749382c2b08 /Library
parentc5fa9d1f435c06f83cb2a8cb56ae650f04a46e75 (diff)
downloadhomebrew-0647f499b9eac1991c9ca6b1affd04708dc6c991.tar.bz2
couchdb: replace DATA patch with inreplace
Geocouch uses this formula to get the couchdb source, and this means we cannot use a DATA patch here since it only exists for the executing file. Fixes #20073.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/couchdb.rb28
1 files changed, 7 insertions, 21 deletions
diff --git a/Library/Formula/couchdb.rb b/Library/Formula/couchdb.rb
index ee8f9f8fe..953f9b612 100644
--- a/Library/Formula/couchdb.rb
+++ b/Library/Formula/couchdb.rb
@@ -21,11 +21,14 @@ class Couchdb < Formula
depends_on 'erlang'
depends_on 'curl' if MacOS.version == :leopard
- # couchdb 1.3.0 supports vendor names and versioning
- # in the welcome message
- def patches; DATA; end
-
def install
+ # couchdb 1.3.0 supports vendor names and versioning
+ # in the welcome message
+ inreplace 'etc/couchdb/default.ini.tpl.in' do |s|
+ s.gsub! '%package_author_name%', 'Homebrew'
+ s.gsub! '%version%', '%version%-1'
+ end
+
if build.devel? or build.head?
# workaround for the auto-generation of THANKS file which assumes
# a developer build environment incl access to git sha
@@ -82,20 +85,3 @@ class Couchdb < Formula
EOS
end
end
-
-__END__
-diff --git i/etc/couchdb/default.ini.tpl.in w/etc/couchdb/default.ini.tpl.in
-index 736d9cd..606e465 100644
---- i/etc/couchdb/default.ini.tpl.in
-+++ w/etc/couchdb/default.ini.tpl.in
-@@ -2,8 +2,8 @@
-
- ; Upgrading CouchDB will overwrite this file.
- [vendor]
--name = %package_author_name%
--version = %version%
-+name = Homebrew
-+version = %version%-1
-
- [couchdb]
- database_dir = %localstatelibdir%