aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/kf5attica/portfile.cmake27
-rw-r--r--ports/kf5attica/vcpkg.json19
2 files changed, 46 insertions, 0 deletions
diff --git a/ports/kf5attica/portfile.cmake b/ports/kf5attica/portfile.cmake
new file mode 100644
index 000000000..30b4b281a
--- /dev/null
+++ b/ports/kf5attica/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KDE/attica
+ REF v5.84.0
+ SHA512 dedaac49d85c791027a567f82909953f06337734c9302ab4147341eb5ebdb14e2a1ffcfdf49d9e0c97e17e065498392f9a1a900557fe8937fa0e680cda2235ea
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF5Attica)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
diff --git a/ports/kf5attica/vcpkg.json b/ports/kf5attica/vcpkg.json
new file mode 100644
index 000000000..83ab52cd2
--- /dev/null
+++ b/ports/kf5attica/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "kf5attica",
+ "version-semver": "5.84.0",
+ "description": "A Qt library that implements the Open Collaboration Services API",
+ "homepage": "https://api.kde.org/frameworks/attica/html/index.html",
+ "dependencies": [
+ "ecm",
+ "qt5-base",
+ "qt5-tools",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}