aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorPhilip Paeps2013-12-21 13:08:57 +0100
committerMike McQuaid2013-12-24 09:38:18 +0000
commitda7e51f0a9393027b6d0698bb026cd8c7180182a (patch)
treeef1fe523214926f4604ab495565797ab1f7a6302 /Library/Formula
parentcf45d33b1d95c48f76f144ce8dba7c3fe136f484 (diff)
downloadhomebrew-da7e51f0a9393027b6d0698bb026cd8c7180182a.tar.bz2
signing-party: optionally avoid conflicting with Mutt
Mutt installs its own private copy of pgpring. Provide an option to rename signing-party's to pgppubring to avoid conflicting with Mutt's. This is the same way that FreeBSD's signing-party port works around the conflict. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/signing-party.rb21
1 files changed, 18 insertions, 3 deletions
diff --git a/Library/Formula/signing-party.rb b/Library/Formula/signing-party.rb
index 1c3fd8148..4451fd615 100644
--- a/Library/Formula/signing-party.rb
+++ b/Library/Formula/signing-party.rb
@@ -11,7 +11,12 @@ class SigningParty < Formula
url 'http://ftp.debian.org/debian/pool/main/s/signing-party/signing-party_1.1.4.orig.tar.gz'
sha1 '092b7d644b7a8a8d2e82fd6ddb453ca58020ed31'
- conflicts_with 'mutt', :because => 'mutt installs private copies of pgpring and pgpewrap'
+ option 'with-rename-pgpring', 'Install pgpring as pgppubring to avoid conflicting with mutt'
+
+ if build.without? 'rename-pgpring'
+ conflicts_with 'mutt',
+ :because => 'mutt installs a private copy of pgpring'
+ end
depends_on GnupgInstalled
depends_on 'dialog'
@@ -79,8 +84,18 @@ class SigningParty < Formula
cd 'keyanalyze' do
system "make"
- bin.install 'keyanalyze', 'process_keys', 'pgpring/pgpring'
- man1.install 'keyanalyze.1', 'process_keys.1', 'pgpring/pgpring.1'
+ if build.with? 'rename-pgpring'
+ # Install pgpring as pgppubring to avoid conflicting with Mutt.
+ # Reflect the installed name in manpages.
+ inreplace %w(keyanalyze.1 pgpring/pgpring.1 process_keys.1), /pgpring/, "pgppubring"
+ bin.install 'pgpring/pgpring' => 'pgppubring'
+ man1.install 'pgpring/pgpring.1' => 'pgppubring.1'
+ else
+ bin.install 'pgpring/pgpring'
+ man1.install 'pgpring/pgpring.1'
+ end
+ bin.install 'keyanalyze', 'process_keys'
+ man1.install 'keyanalyze.1', 'process_keys.1'
end
cd 'keylookup' do