aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/type-lite
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/type-lite')
-rw-r--r--vcpkg/ports/type-lite/portfile.cmake30
-rw-r--r--vcpkg/ports/type-lite/vcpkg.json21
2 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/type-lite/portfile.cmake b/vcpkg/ports/type-lite/portfile.cmake
new file mode 100644
index 0000000..73b359e
--- /dev/null
+++ b/vcpkg/ports/type-lite/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/type-lite
+ REF "v${VERSION}"
+ SHA512 f193f6c2afd89151b59d393e22da2c0d7c271c759f4e8a71f9f31eae1b547c5ce9d803b3d1688aa7ecb18bd37c18867f28d5686c6d48b4cd18e29ef16cfd96c6
+ HEAD_REF master
+)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ test TYPE_LITE_OPT_BUILD_TESTS
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DTYPE_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/type-lite/vcpkg.json b/vcpkg/ports/type-lite/vcpkg.json
new file mode 100644
index 0000000..302ebef
--- /dev/null
+++ b/vcpkg/ports/type-lite/vcpkg.json
@@ -0,0 +1,21 @@
+{
+ "name": "type-lite",
+ "version": "0.2.0",
+ "description": "Strong types for C++98, C++11 and later in a single-file header-only library.",
+ "homepage": "https://github.com/martinmoene/type-lite",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "test": {
+ "description": "Build with test"
+ }
+ }
+}