diff options
| author | Mike McQuaid | 2013-09-07 12:17:39 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-07 12:18:19 +0100 |
| commit | bfd31934cf3bf777373d3acec42fdd6445d7531a (patch) | |
| tree | 5a3e762d71c29138e9a772bb2c407ddfdd7d061a /Library/Formula | |
| parent | 4e23b97ab4c8aa3af1ee11a4dead2ffc35835da5 (diff) | |
| download | homebrew-bfd31934cf3bf777373d3acec42fdd6445d7531a.tar.bz2 | |
nexus: replace patch with inreplace.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/nexus.rb | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/Library/Formula/nexus.rb b/Library/Formula/nexus.rb index 8b6f842a8..2b5140d04 100644 --- a/Library/Formula/nexus.rb +++ b/Library/Formula/nexus.rb @@ -6,13 +6,12 @@ class Nexus < Formula version '2.6.2-01' sha1 '046c4b9ed27e4d05eec1be80b676f4ee25ba352a' - # Put the sonatype-work directory in the var directory, to persist across version updates - def patches - DATA - end - def install rm_f Dir['bin/*.bat'] + # Put the sonatype-work directory in the var directory, to persist across version updates + inreplace "nexus-#{version}/conf/nexus.properties", + 'nexus-work=${bundleBasedir}/../sonatype-work/nexus', + "nexus-work=#{var}/nexus" libexec.install Dir["nexus-#{version}/*"] bin.install_symlink libexec/'bin/nexus' end @@ -47,16 +46,3 @@ class Nexus < Formula EOS end end - -__END__ -diff --git a/nexus-2.6.2-01/conf/nexus.properties b/nexus-2.6.2-01/conf/nexus.properties -index df89251..23b536b 100644 ---- a/nexus-2.6.2-01/conf/nexus.properties -+++ b/nexus-2.6.2-01/conf/nexus.properties -@@ -22,5 +22,5 @@ nexus-webapp=${bundleBasedir}/nexus - nexus-webapp-context-path=/nexus - - # Nexus section --nexus-work=${bundleBasedir}/../sonatype-work/nexus -+nexus-work=HOMEBREW_PREFIX/var/nexus - runtime=${bundleBasedir}/nexus/WEB-INF |
