aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cnl
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cnl')
-rw-r--r--vcpkg/ports/cnl/disable-test.patch15
-rw-r--r--vcpkg/ports/cnl/portfile.cmake23
-rw-r--r--vcpkg/ports/cnl/vcpkg.json17
3 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/cnl/disable-test.patch b/vcpkg/ports/cnl/disable-test.patch
new file mode 100644
index 0000000..58ecad5
--- /dev/null
+++ b/vcpkg/ports/cnl/disable-test.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 73111fc..a0cb3db 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -9,8 +9,8 @@ project(cnl)
+
+ cmake_minimum_required(VERSION 3.5.1)
+
+-include(CTest)
+-add_subdirectory("test")
++# include(CTest)
++# add_subdirectory("test")
+
+ # the CNL library
+ add_library(Cnl INTERFACE)
diff --git a/vcpkg/ports/cnl/portfile.cmake b/vcpkg/ports/cnl/portfile.cmake
new file mode 100644
index 0000000..7f5cdca
--- /dev/null
+++ b/vcpkg/ports/cnl/portfile.cmake
@@ -0,0 +1,23 @@
+# header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO johnmcfarlane/cnl
+ REF 2dde6e62e608a4adc3c5504f067575efa4910568 #v1.1.7
+ SHA512 33a81ea726802c71a684bcd002b5119cde4db471ebc9ba02cd15c7487ab468eeca09fb8dcaed953e3f3cded2cd813a903f808d97527b0ec7f393647b64a22572
+ HEAD_REF main
+ PATCHES
+ disable-test.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+configure_file("${SOURCE_PATH}/LICENSE_1_0.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
diff --git a/vcpkg/ports/cnl/vcpkg.json b/vcpkg/ports/cnl/vcpkg.json
new file mode 100644
index 0000000..2078a2e
--- /dev/null
+++ b/vcpkg/ports/cnl/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "cnl",
+ "version": "1.1.7",
+ "port-version": 3,
+ "description": "A Compositional Numeric Library for C++",
+ "homepage": "https://github.com/johnmcfarlane/cnl",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}