aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/simpleini
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/simpleini')
-rw-r--r--vcpkg/ports/simpleini/portfile.cmake19
-rw-r--r--vcpkg/ports/simpleini/vcpkg.json7
2 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/simpleini/portfile.cmake b/vcpkg/ports/simpleini/portfile.cmake
new file mode 100644
index 0000000..13ea5e1
--- /dev/null
+++ b/vcpkg/ports/simpleini/portfile.cmake
@@ -0,0 +1,19 @@
+# header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO brofield/simpleini
+ REF "v${VERSION}"
+ SHA512 6c198636816a0018adbf7f735d402c64245c6fcd540b7360d4388d46f007f3a520686cdaec4705cb8cb31401b2cb4797a80b42ea5d08a6a5807c0848386f7ca1
+ HEAD_REF master
+)
+
+# Install codes
+set(SIMPLEINI_SOURCE ${SOURCE_PATH}/SimpleIni.h
+ ${SOURCE_PATH}/ConvertUTF.h
+ ${SOURCE_PATH}/ConvertUTF.c
+)
+
+file(INSTALL ${SIMPLEINI_SOURCE} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# copyright
+file(INSTALL "${SOURCE_PATH}/LICENCE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/simpleini/vcpkg.json b/vcpkg/ports/simpleini/vcpkg.json
new file mode 100644
index 0000000..8026f21
--- /dev/null
+++ b/vcpkg/ports/simpleini/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "simpleini",
+ "version": "4.22",
+ "description": "Cross-platform C++ library providing a simple API to read and write INI-style configuration files",
+ "homepage": "https://github.com/brofield/simpleini",
+ "license": "MIT"
+}