aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-09-21 01:25:54 -0700
committerGitHub <noreply@github.com>2017-09-21 01:25:54 -0700
commit4cf0ed51c81f143a811be27af3198886eebbf2cd (patch)
tree8f350c3fec74cdb15d797985ab3b19589089e8e4
parent2d6e88c16e4cc1eb04e7d50a699193082f2e09da (diff)
parent7e521b080245dc8d1f5938d3cbf9f07455d2a915 (diff)
downloadvcpkg-4cf0ed51c81f143a811be27af3198886eebbf2cd.tar.gz
vcpkg-4cf0ed51c81f143a811be27af3198886eebbf2cd.zip
Merge pull request #1721 from mmha/kf5plotting
[KF5] Initial port of KPlotting
-rw-r--r--ports/kf5plotting/CONTROL4
-rw-r--r--ports/kf5plotting/portfile.cmake24
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/kf5plotting/CONTROL b/ports/kf5plotting/CONTROL
new file mode 100644
index 000000000..a24b8e352
--- /dev/null
+++ b/ports/kf5plotting/CONTROL
@@ -0,0 +1,4 @@
+Source: kf5plotting
+Version: 5.37.0
+Description: Lightweight plotting framework
+Build-Depends: ecm, qt5
diff --git a/ports/kf5plotting/portfile.cmake b/ports/kf5plotting/portfile.cmake
new file mode 100644
index 000000000..39d6e8893
--- /dev/null
+++ b/ports/kf5plotting/portfile.cmake
@@ -0,0 +1,24 @@
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/kplotting-5.37.0)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://download.kde.org/stable/frameworks/5.37/kplotting-5.37.0.zip"
+ FILENAME "kplotting-5.37.0.zip"
+ SHA512 3a1b3f993123dea7141d280cd53ae1b5e49b859e9df39a188bac216758576106efd8b744e8f10f96fac158f980d79ae94d2b27f3d85a48fcd5673263ffce3c4e
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS -DBUILD_HTML_DOCS=OFF
+ -DBUILD_MAN_DOCS=OFF
+ -DBUILD_QTHELP_DOCS=OFF
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5Plotting)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(INSTALL ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/KF5plotting RENAME copyright)