aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlessio Caiazza2013-08-03 11:09:09 +0200
committerAdam Vandenberg2013-08-30 20:27:47 -0700
commit21534fedf9e96537525addd691b06b135c335e7d (patch)
treecd0f15aa43cc1c069d4d7c7b4e0a3b5c93ea8665 /Library/Formula
parentae6f542ff7dbedad993f2bbb73811f99347b512b (diff)
downloadhomebrew-21534fedf9e96537525addd691b06b135c335e7d.tar.bz2
signing-party: gpgparticipants: not working on OSX
```data``` on OSX behave differently from the linux version. Closes #21628. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/signing-party.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/signing-party.rb b/Library/Formula/signing-party.rb
index 7622fe52b..9038812e7 100644
--- a/Library/Formula/signing-party.rb
+++ b/Library/Formula/signing-party.rb
@@ -20,6 +20,12 @@ class SigningParty < Formula
depends_on 'Text::Iconv' => :perl
depends_on 'GnuPG::Interface' => :perl
+ # gpgparticipants data on OS X behaves differently from linux version
+ # https://github.com/mxcl/homebrew/pull/21628
+ def patches
+ DATA
+ end
+
def install
# gpgdir and gpgwrap are not included as they have their own homepages
# springraph is not included because it depends on the 'GD' perl module
@@ -90,3 +96,18 @@ class SigningParty < Formula
end
end
end
+
+__END__
+diff --git a/gpgparticipants/gpgparticipants b/gpgparticipants/gpgparticipants
+index 4dd06e8..ea76aff 100755
+--- a/gpgparticipants/gpgparticipants
++++ b/gpgparticipants/gpgparticipants
+@@ -29,7 +29,7 @@ title=$(echo "$5"|tr a-z A-Z|sed 's/\(.\)/\1 /g')
+ exec > "$output"
+
+ # Date of event
+-LANG=C date --date="$date" +"%A, %B %e, %Y; %H:%M"
++LANG=C date -j -f "%Y%m%d %H%M" "$date" +"%A, %B %e, %Y; %H:%M"
+ # Organiser contact
+ printf "%80s\n\n\n" "$org"
+ # Title