-
Notifications
You must be signed in to change notification settings - Fork 56
/
kf5-kjs.rb
42 lines (32 loc) · 1.09 KB
/
kf5-kjs.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
require "formula"
class Kf5Kjs < Formula
url "http://download.kde.org/stable/frameworks/5.1.0/portingAids/kjs-5.1.0.tar.xz"
sha1 "81d4909db17ae1be65e050156cde0988d023cd9c"
homepage "http://www.kde.org/"
head 'git://anongit.kde.org/kjs.git'
depends_on "cmake" => :build
depends_on "haraldf/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt5" => "with-d-bus"
depends_on "pcre"
# 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/KF5JSConfig.cmake.in b/KF5JSConfig.cmake.in
index 86a8659..70daf67 100644
--- a/KF5JSConfig.cmake.in
+++ b/KF5JSConfig.cmake.in
@@ -3,6 +3,6 @@
find_dependency(Qt5Core @REQUIRED_QT_VERSION@)
set(KJS_HAVE_PCRE_REGEX "@PCRE_FOUND@")
-set(KJS_CREATE_HASH_TABLE "${PACKAGE_PREFIX_DIR}/@DATA_INSTALL_DIR@/kjs/create_hash_table")
+set(KJS_CREATE_HASH_TABLE "@DATA_INSTALL_DIR@/kjs/create_hash_table")
include("${CMAKE_CURRENT_LIST_DIR}/KF5JSTargets.cmake")