From abfb27c87974121503ac0db838753aa6b84b3424 Mon Sep 17 00:00:00 2001 From: Benno Waldhauer Date: Sun, 24 Nov 2024 23:58:25 +0100 Subject: [PATCH 1/2] Add TempDir to vcpkg --- ports/tempdir/portfile.cmake | 21 +++++++++++++++++++++ ports/tempdir/vcpkg.json | 13 +++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 ports/tempdir/portfile.cmake create mode 100644 ports/tempdir/vcpkg.json diff --git a/ports/tempdir/portfile.cmake b/ports/tempdir/portfile.cmake new file mode 100644 index 00000000000000..d8e04a8863abbc --- /dev/null +++ b/ports/tempdir/portfile.cmake @@ -0,0 +1,21 @@ +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO bw-hro/TempDir + REF "v${VERSION}" + SHA512 75c271b9f84c8eb9256a99683828faecd17f86b9c7a9066266157bf2d10acfe2d057470295b2dc05dbad5cc6fb1d6af60aed2924fba391c0bc292afc37d9e1ea + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DTD_BUILD_EXAMPLES=OFF + -DTD_BUILD_TESTS=OFF + -DTD_ENABLE_COVERAGE=OFF +) + +vcpkg_cmake_install() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/ports/tempdir/vcpkg.json b/ports/tempdir/vcpkg.json new file mode 100644 index 00000000000000..07ab63537f6ca5 --- /dev/null +++ b/ports/tempdir/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "tempdir", + "version": "1.0.0", + "description": "TempDir: Simplified Temporary Directory for C++", + "homepage": "https://github.com/bw-hro/TempDir", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} From b6c940b89bd0fa5fc6171f57ae02addfbe5fd729 Mon Sep 17 00:00:00 2001 From: Benno Waldhauer Date: Mon, 25 Nov 2024 00:01:20 +0100 Subject: [PATCH 2/2] Update version database --- versions/baseline.json | 4 ++++ versions/t-/tempdir.json | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 versions/t-/tempdir.json diff --git a/versions/baseline.json b/versions/baseline.json index 3b519efe645aae..11eb430767c694 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8852,6 +8852,10 @@ "baseline": "3.1.0", "port-version": 0 }, + "tempdir": { + "baseline": "1.0.0", + "port-version": 0 + }, "tensorflow": { "baseline": "2.10.0", "port-version": 0 diff --git a/versions/t-/tempdir.json b/versions/t-/tempdir.json new file mode 100644 index 00000000000000..03ef3b96badab2 --- /dev/null +++ b/versions/t-/tempdir.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "b43bd37abb7e50bbb02664c1bcf446e35f29f12b", + "version": "1.0.0", + "port-version": 0 + } + ] +}