Created
January 10, 2018 03:55
-
-
Save ynakao/273a2e2080ca3a17ba5b02358455ba25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Kf5Kwallet < Formula | |
desc "Secure and unified container for user passwords" | |
homepage "https://www.kde.org" | |
url "https://download.kde.org/stable/frameworks/5.41/kwallet-5.41.0.tar.xz" | |
sha256 "74ec71ab2dd621ce65762148f37b1078bc8fb6910ace1b04bab8e4f5c675bfbd" | |
revision 1 | |
head "git://anongit.kde.org/kwallet.git" | |
depends_on "cmake" => :build | |
depends_on "boost" => :build | |
depends_on "doxygen" => :build | |
depends_on "graphviz" => :build | |
depends_on "gettext" => :build | |
depends_on "KDE-mac/kde/kf5-extra-cmake-modules" => :build | |
depends_on "KDE-mac/kde/kf5-kdoctools" => :build | |
depends_on "libgcrypt" | |
depends_on "gpgme" | |
depends_on "KDE-mac/kde/kf5-kiconthemes" | |
depends_on "KDE-mac/kde/kf5-knotifications" | |
depends_on "KDE-mac/kde/kf5-kservice" | |
patch :DATA | |
def install | |
args = std_cmake_args | |
args << "-DBUILD_TESTING=OFF" | |
args << "-DBUILD_QCH=ON" | |
args << "-DKDE_INSTALL_QMLDIR=lib/qt5/qml" | |
args << "-DKDE_INSTALL_PLUGINDIR=lib/qt5/plugins" | |
mkdir "build" do | |
system "cmake", "..", *args | |
system "make", "install" | |
prefix.install "install_manifest.txt" | |
end | |
end | |
def caveats; <<-EOS.undent | |
You need to take some manual steps in order to make this formula work: | |
ln -sf "$(brew --prefix)/share/knotifications5" "$HOME/Library/Application Support" | |
ln -sf "$(brew --prefix)/share/kservices5" "$HOME/Library/Application Support" | |
EOS | |
end | |
end | |
# Mark executables as nongui type | |
__END__ | |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 6f1d918..0dbc257 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -22,6 +22,7 @@ include(KDECMakeSettings) | |
include(ECMAddQch) | |
include(ECMSetupVersion) | |
include(ECMQtDeclareLoggingCategory) | |
+include(ECMMarkNonGuiExecutable) | |
option(BUILD_KWALLETD "Build the kwallet daemon" ON) | |
option(BUILD_KWALLET_QUERY "Build kwallet-query tool" ON) | |
diff --git a/src/runtime/kwallet-query/src/CMakeLists.txt b/src/runtime/kwallet-query/src/CMakeLists.txt | |
index 9aa167b..9a98eb4 100644 | |
--- a/src/runtime/kwallet-query/src/CMakeLists.txt | |
+++ b/src/runtime/kwallet-query/src/CMakeLists.txt | |
@@ -12,4 +12,5 @@ TARGET_LINK_LIBRARIES(kwallet-query | |
Qt5::Widgets | |
) | |
+ecm_mark_nongui_executable(kwallet-query) | |
install( TARGETS kwallet-query DESTINATION ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | |
diff --git a/src/runtime/kwalletd/CMakeLists.txt b/src/runtime/kwalletd/CMakeLists.txt | |
index 3f2a1de..691f20e 100644 | |
--- a/src/runtime/kwalletd/CMakeLists.txt | |
+++ b/src/runtime/kwalletd/CMakeLists.txt | |
@@ -115,6 +115,7 @@ if (Gpgmepp_FOUND) | |
kde_target_enable_exceptions(kwalletd5 PRIVATE) | |
endif(Gpgmepp_FOUND) | |
+ecm_mark_nongui_executable(kwalletd5) | |
install(TARGETS kwalletd5 ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) | |
########### install files ############### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment