aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/munit
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/munit')
-rw-r--r--vcpkg/ports/munit/fix-install.patch13
-rw-r--r--vcpkg/ports/munit/portfile.cmake23
-rw-r--r--vcpkg/ports/munit/vcpkg.json14
3 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/munit/fix-install.patch b/vcpkg/ports/munit/fix-install.patch
new file mode 100644
index 0000000..6ba7461
--- /dev/null
+++ b/vcpkg/ports/munit/fix-install.patch
@@ -0,0 +1,13 @@
+diff --git a/meson.build b/meson.build
+index c15b405..44ee737 100644
+--- a/meson.build
++++ b/meson.build
+@@ -11,7 +11,7 @@ root_include = include_directories('.')
+
+ munit = library('munit',
+ ['munit.c'],
+- install: meson.is_subproject())
++ install: not meson.is_subproject())
+
+ if meson.is_subproject()
+ munit_dep = declare_dependency(
diff --git a/vcpkg/ports/munit/portfile.cmake b/vcpkg/ports/munit/portfile.cmake
new file mode 100644
index 0000000..3780297
--- /dev/null
+++ b/vcpkg/ports/munit/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO nemequ/munit
+ REF da8f73412998e4f1adf1100dc187533a51af77fd
+ SHA512 cd08c1291a73487f15fdba7bf8675fea9177f0ec9766900f65efb5f00c662532a16499447e9087d304de34ff9138f47d04ebf18713f5aa8aacede22c5e23b98b
+ HEAD_REF master
+ PATCHES
+ fix-install.patch
+)
+
+vcpkg_configure_meson(
+ SOURCE_PATH ${SOURCE_PATH}
+)
+
+vcpkg_install_meson()
+
+vcpkg_copy_pdbs()
+
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+
+vcpkg_fixup_pkgconfig()
diff --git a/vcpkg/ports/munit/vcpkg.json b/vcpkg/ports/munit/vcpkg.json
new file mode 100644
index 0000000..4f5cfb8
--- /dev/null
+++ b/vcpkg/ports/munit/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "munit",
+ "version-date": "2019-04-06",
+ "port-version": 5,
+ "description": "A small but full-featured unit testing framework for C",
+ "homepage": "https://github.com/nemequ/munit",
+ "supports": "!(arm | uwp)",
+ "dependencies": [
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ }
+ ]
+}