-
Notifications
You must be signed in to change notification settings - Fork 33
/
soprano.rb
40 lines (33 loc) · 895 Bytes
/
soprano.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
require 'formula'
class Soprano < Formula
homepage 'http://soprano.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/soprano/Soprano/2.9.4/soprano-2.9.4.tar.bz2'
sha1 '97bd76df4a9f9336358dd9d7175c72b84d4ec6a0'
depends_on 'cmake' => :build
depends_on 'qt' => ["with-d-bus", "with-qt3support"]
depends_on 'clucene'
depends_on 'raptor'
depends_on 'redland'
def patches
DATA
end
def install
ENV['CLUCENE_HOME'] = HOMEBREW_PREFIX
disabled_options = [
"-DSOPRANO_DISABLE_SESAME2_BACKEND=TRUE",
].join(' ')
system "cmake #{std_cmake_parameters} #{disabled_options} ."
system "make install"
end
end
__END__
--- a/soprano/vocabulary/rdf.h
+++ b/soprano/vocabulary/rdf.h
@@ -24,6 +24,8 @@
#include <QtCore/QUrl>
#include "soprano_export.h"
+#undef nil
+
namespace Soprano {
namespace Vocabulary {
namespace RDF {