forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kf5-kdelibs4support.rb
48 lines (39 loc) · 1.33 KB
/
kf5-kdelibs4support.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require "formula"
class Kf5Kdelibs4support < Formula
url "http://download.kde.org/stable/frameworks/5.16/portingAids/kdelibs4support-5.16.0.tar.xz"
sha1 "13c9a91465541ad3f7e915fa732db9740ea15522"
homepage "http://www.kde.org/"
head 'git://anongit.kde.org/kdelibs4support.git'
depends_on "cmake" => :build
depends_on "haraldf/kf5/kf5-extra-cmake-modules" => :build
depends_on "haraldf/kf5/kf5-kdoctools" => :build
depends_on "qt5" => "with-d-bus"
depends_on "haraldf/kf5/kf5-kdesignerplugin"
depends_on "haraldf/kf5/kf5-kemoticons"
depends_on "haraldf/kf5/kf5-kinit"
depends_on "haraldf/kf5/kf5-kitemmodels"
depends_on "haraldf/kf5/kf5-kunitconversion"
def patches
DATA
end
def install
args = std_cmake_args
args << "-DCMAKE_CXX_FLAGS='-D_DARWIN_C_SOURCE'"
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
end
end
__END__
diff --git a/src/kssl/ksslcertificate.cpp b/src/kssl/ksslcertificate.cpp
index 89c5e28..03ffdcd 100644
--- a/src/kssl/ksslcertificate.cpp
+++ b/src/kssl/ksslcertificate.cpp
@@ -1017,7 +1017,7 @@ QDateTime KSSLCertificate::getQDTNotAfter() const
int operator==(KSSLCertificate &x, KSSLCertificate &y)
{
-#ifndef KSSL_HAVE_SSL
+#if !KSSL_HAVE_SSL
return 1;
#else
if (!KOSSL::self()->X509_cmp(x.getCert(), y.getCert())) {