aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Wróbel <me@dawidwrobel.com>2021-05-28 13:47:22 -0400
committerGitHub <noreply@github.com>2021-05-28 10:47:22 -0700
commit1c4fb017f06ef8c6d4a622a2af961b1580226649 (patch)
treebaddde9b75800adbf99417e920b7f991da9749d0
parenta29126f785b1ace2b3ef9f600d4f3c8aed63cea2 (diff)
downloadvcpkg-1c4fb017f06ef8c6d4a622a2af961b1580226649.tar.gz
vcpkg-1c4fb017f06ef8c6d4a622a2af961b1580226649.zip
[kf5codecs] new port (#16561)
* Add kf5codecs port * Fixed KF5Codecs for windows * [kf5*] update to 5.75.0 * [kf5codecs] update versions * [kf5codecs] convert CONTROL to manifest * [kf5codecs] update to 5.81 * [kf5codecs] update versions * [kf5codecs] update versions * [kf5codecs] migrate to vcpkg_cmake_configure * [kf5codecs] update versions Co-authored-by: Kuntal Majumder <hellozee@disroot.org>
-rw-r--r--ports/kf5codecs/portfile.cmake37
-rw-r--r--ports/kf5codecs/vcpkg.json19
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/k-/kf5codecs.json9
4 files changed, 69 insertions, 0 deletions
diff --git a/ports/kf5codecs/portfile.cmake b/ports/kf5codecs/portfile.cmake
new file mode 100644
index 000000000..5a64fd077
--- /dev/null
+++ b/ports/kf5codecs/portfile.cmake
@@ -0,0 +1,37 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KDE/kcodecs
+ REF v5.81.0
+ SHA512 65db534f32b81b8b10840233981e8a790a8fe17ddb9e64304f2ea8b817b4125ae737574a7235aa20b8b3766bd4c59bb8fb49dafa19a8a89160ab1e06d7d333b5
+ HEAD_REF master
+)
+
+vcpkg_find_acquire_program(GPERF)
+get_filename_component(GPERF_EXE_PATH ${GPERF} DIRECTORY)
+vcpkg_add_to_path(${GPERF_EXE_PATH})
+
+vcpkg_cmake_configure(
+ DISABLE_PARALLEL_CONFIGURE
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBUILD_HTML_DOCS=OFF
+ -DBUILD_MAN_DOCS=OFF
+ -DBUILD_QTHELP_DOCS=OFF
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Codecs CONFIG_PATH lib/cmake/KF5Codecs)
+
+vcpkg_copy_pdbs()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/data)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/etc)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) \ No newline at end of file
diff --git a/ports/kf5codecs/vcpkg.json b/ports/kf5codecs/vcpkg.json
new file mode 100644
index 000000000..8b6aa288b
--- /dev/null
+++ b/ports/kf5codecs/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "kf5codecs",
+ "version": "5.81.0",
+ "description": "String encoding library",
+ "homepage": "https://api.kde.org/frameworks/kcodecs/html/index.html",
+ "dependencies": [
+ "ecm",
+ "qt5-base",
+ "qt5-tools",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 51e0b8eb3..6f6c4e87f 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -2820,6 +2820,10 @@
"baseline": "5.81.0",
"port-version": 0
},
+ "kf5codecs": {
+ "baseline": "5.81.0",
+ "port-version": 0
+ },
"kf5completion": {
"baseline": "5.81.0",
"port-version": 0
diff --git a/versions/k-/kf5codecs.json b/versions/k-/kf5codecs.json
new file mode 100644
index 000000000..a539fec4f
--- /dev/null
+++ b/versions/k-/kf5codecs.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "2014209bef9c534b16f81cefadc0745d25b9a761",
+ "version": "5.81.0",
+ "port-version": 0
+ }
+ ]
+}