2013-02-22 12:46:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sendemail < Formula
|
|
|
|
homepage 'http://caspian.dotconf.net/menu/Software/SendEmail/'
|
|
|
|
url 'http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz'
|
|
|
|
sha1 '5c7c03ce60785c7b7695ec486c84d6e15704df38'
|
|
|
|
|
2014-03-17 02:35:23 +00:00
|
|
|
# Reported upstream: http://caspian.dotconf.net/menu/Software/SendEmail/#comment-1119965648
|
|
|
|
patch do
|
|
|
|
url "https://raw.github.com/mogaal/sendemail/e785a6d284884688322c9b39c0f64e20a43ea825/debian/patches/fix_ssl_version.patch"
|
|
|
|
sha1 "f0ce85b136e83010a89d941f849bb2e78a2ad6d6"
|
2013-11-26 15:03:49 +00:00
|
|
|
end
|
|
|
|
|
2013-02-22 12:46:58 +00:00
|
|
|
def install
|
|
|
|
bin.install 'sendEmail'
|
|
|
|
end
|
|
|
|
|
2013-03-24 05:13:21 +00:00
|
|
|
test do
|
2013-06-09 02:26:25 +00:00
|
|
|
assert_match /sendemail-#{Regexp.escape(version)}/, `#{bin}/sendemail`.strip
|
2013-02-22 12:46:58 +00:00
|
|
|
end
|
|
|
|
end
|