aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cunit/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cunit/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cunit/portfile.cmake')
-rw-r--r--vcpkg/ports/cunit/portfile.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/cunit/portfile.cmake b/vcpkg/ports/cunit/portfile.cmake
new file mode 100644
index 0000000..94893a2
--- /dev/null
+++ b/vcpkg/ports/cunit/portfile.cmake
@@ -0,0 +1,27 @@
+set(VERSION 2.1)
+set(RELEASE 3)
+
+vcpkg_from_sourceforge(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cunit/CUnit
+ REF "${VERSION}-${RELEASE}"
+ FILENAME "CUnit-${VERSION}-${RELEASE}.tar.bz2"
+ SHA512 547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DVERSION=${VERSION}"
+ "-DRELEASE=${RELEASE}"
+ OPTIONS_DEBUG
+ -DDISABLE_INSTALL_HEADERS=ON
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-cunit)
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)