cmake_gui: fix data and other path variables to match the main package

For the data path, this is essential so that it finds the data files.

Clarify in the description that this must be installed in the same prefix as the main package.
(the data path definition is relative)
This commit is contained in:
Joachim Mairböck
2024-10-13 21:11:50 +02:00
parent 0e27a904a7
commit 017a553b99

View File

@@ -5,11 +5,12 @@ simple platform and compiler independent configuration files. CMake generates \
native makefiles and workspaces that can be used in the compiler environment \
of your choice.
This package provides the GUI version of CMake (cmake-gui)"
This package provides the GUI version of CMake (cmake-gui). It must be \
installed in the same prefix as the main cmake package."
HOMEPAGE="https://cmake.org/"
COPYRIGHT="2002-2024 Kitware, Inc., Insight Consortium"
LICENSE="CMake"
REVISION="1"
REVISION="2"
SOURCE_URI="https://cmake.org/files/v${portVersion%.*}/cmake-$portVersion.tar.gz"
CHECKSUM_SHA256="9f55e1a40508f2f29b7e065fa08c29f82c402fa0402da839fffe64a25755a86d"
SOURCE_DIR="cmake-$portVersion"
@@ -78,11 +79,16 @@ defineDebugInfoPackage cmake_gui$secondaryArchSuffix \
BUILD()
{
# the CMAKE_*_DIR variables should match the definitions in the cmake recipe
cmake -Bbuild-gui -S. $cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=bin \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DBUILD_CursesDialog=OFF \
-DBUILD_QtDialog=ON \
-DCMAKE_DATA_DIR=/$relativeDataDir/cmake \
-DCMAKE_DOC_DIR=/$relativeDocumentationDir/packages/cmake \
-DCMAKE_MAN_DIR=/$relativeManDir \
-DCMAKE_XDGDATA_DIR=/$relativeDataDir \
-DCMAKE_USE_SYSTEM_BZIP2=ON \
-DCMAKE_USE_SYSTEM_CPPDAP=ON \
-DCMAKE_USE_SYSTEM_CURL=ON \