aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnaggnoyil <gnaggnoyil@gmail.com>2020-09-12 03:48:05 +0800
committerGitHub <noreply@github.com>2020-09-11 12:48:05 -0700
commit99a74a7bd0ed70d3a78f766df87423768f98e767 (patch)
treef8525a4f1b0f374f1d7cd3b737f8b9260ac533b9
parent4db27d95a80e7822213f0abec5c79778acd941c4 (diff)
downloadvcpkg-99a74a7bd0ed70d3a78f766df87423768f98e767.tar.gz
vcpkg-99a74a7bd0ed70d3a78f766df87423768f98e767.zip
[hffix] New port hffix library 1.0.0 (#13433)
-rw-r--r--ports/hffix/CMakeLists.txt28
-rw-r--r--ports/hffix/CONTROL4
-rw-r--r--ports/hffix/portfile.cmake23
3 files changed, 55 insertions, 0 deletions
diff --git a/ports/hffix/CMakeLists.txt b/ports/hffix/CMakeLists.txt
new file mode 100644
index 000000000..1f3a52846
--- /dev/null
+++ b/ports/hffix/CMakeLists.txt
@@ -0,0 +1,28 @@
+cmake_minimum_required(VERSION 3.10)
+
+set(PROJECT_NAME hffix)
+project(${PROJECT_NAME})
+
+include(GNUInstallDirs)
+
+add_library(hffix INTERFACE)
+target_include_directories(hffix INTERFACE
+ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+)
+
+install(
+ FILES
+ ${CMAKE_SOURCE_DIR}/include/hffix.hpp
+ ${CMAKE_SOURCE_DIR}/include/hffix_fields.hpp
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+)
+
+install(
+ TARGETS hffix
+ EXPORT hffix-config
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+)
+install(EXPORT hffix-config DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} NAMESPACE ${PROJECT_NAME}::) \ No newline at end of file
diff --git a/ports/hffix/CONTROL b/ports/hffix/CONTROL
new file mode 100644
index 000000000..f5453c0f4
--- /dev/null
+++ b/ports/hffix/CONTROL
@@ -0,0 +1,4 @@
+Source: hffix
+Version: 1.0.0
+Homepage: https://jamesdbrock.github.io/hffix
+Description: Financial Information Exchange Protocol C++ Library \ No newline at end of file
diff --git a/ports/hffix/portfile.cmake b/ports/hffix/portfile.cmake
new file mode 100644
index 000000000..6a421d731
--- /dev/null
+++ b/ports/hffix/portfile.cmake
@@ -0,0 +1,23 @@
+# header only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jamesdbrock/hffix
+ REF v1.0.0
+ SHA512 0043b789e6ffdc32eaf2736a8621dd7fd54e1a16aae33bb1d5f642da1b04d150ed42d8f9ddd046013242164854d9091540452153f09459d05f9bf4a186c7b860
+ HEAD_REF master
+)
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file