From 04f453a2d03511b6ea5a9d1e13b92287af80f68d Mon Sep 17 00:00:00 2001 From: giskard Date: Sun, 27 Oct 2024 21:18:06 +0800 Subject: [PATCH 1/3] monocypher: new with v4.0.2-1 --- releases.json | 8 ++++++++ subprojects/monocypher.wrap | 9 +++++++++ .../packagefiles/monocypher/meson.build | 19 +++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 subprojects/monocypher.wrap create mode 100644 subprojects/packagefiles/monocypher/meson.build diff --git a/releases.json b/releases.json index d23f7ef28..6554e49f0 100644 --- a/releases.json +++ b/releases.json @@ -2424,6 +2424,14 @@ "1.0-2" ] }, + "monocypher": { + "dependency_names": [ + "monocypher" + ], + "versions": [ + "4.0.2-1" + ] + }, "mpdecimal": { "dependency_names": [ "mpdec", diff --git a/subprojects/monocypher.wrap b/subprojects/monocypher.wrap new file mode 100644 index 000000000..0c7dc4c7d --- /dev/null +++ b/subprojects/monocypher.wrap @@ -0,0 +1,9 @@ +[wrap-file] +source_url = https://github.com/LoupVaillant/Monocypher/releases/download/4.0.2/monocypher-4.0.2.tar.gz +directory = monocypher-4.0.2 +source_filename = monocypher-4.0.2.tar.gz +source_hash = 38d07179738c0c90677dba3ceb7a7b8496bcfea758ba1a53e803fed30ae0879c +patch_directory = monocypher + +[provide] +monocypher = monocypher_dep diff --git a/subprojects/packagefiles/monocypher/meson.build b/subprojects/packagefiles/monocypher/meson.build new file mode 100644 index 000000000..f6007f51b --- /dev/null +++ b/subprojects/packagefiles/monocypher/meson.build @@ -0,0 +1,19 @@ +project( + 'monocypher', 'c', + version: '4.0.2', + license: 'CC0-1.0' +) + +monocypher_lib = library( + 'monocypher', [ + 'src/monocypher.c', + 'src/optional/monocypher-ed25519.c', + ], + include_directories: ['src', 'src/optional'], + install: true, +) + +monocypher_dep = declare_dependency( + include_directories: ['src', 'src/optional'], + link_with: monocypher_lib, +) From 19880c6290cc42333d80dac3b69e7b66cd721215 Mon Sep 17 00:00:00 2001 From: giskard Date: Sun, 27 Oct 2024 21:57:40 +0800 Subject: [PATCH 2/3] monocypher: add the test by default --- subprojects/packagefiles/monocypher/meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/subprojects/packagefiles/monocypher/meson.build b/subprojects/packagefiles/monocypher/meson.build index f6007f51b..4291c876e 100644 --- a/subprojects/packagefiles/monocypher/meson.build +++ b/subprojects/packagefiles/monocypher/meson.build @@ -17,3 +17,14 @@ monocypher_dep = declare_dependency( include_directories: ['src', 'src/optional'], link_with: monocypher_lib, ) + +monocypher_test = executable( + 'monocypher_test', [ + 'tests/test.c', + 'tests/utils.c', + ], + include_directories: ['tests'], + dependencies: monocypher_dep, +) + +test('monocypher', monocypher_test) From 73e7ce2c4f316048048084e8b8fff94b04a78fe6 Mon Sep 17 00:00:00 2001 From: giskard Date: Sun, 27 Oct 2024 22:26:32 +0800 Subject: [PATCH 3/3] monocypher: disable windows ci --- ci_config.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci_config.json b/ci_config.json index 8ef616fe8..18c6717be 100644 --- a/ci_config.json +++ b/ci_config.json @@ -736,6 +736,11 @@ ], "skip_tests": true }, + "monocypher": { + "build_on": { + "windows": false + } + }, "mpdecimal": { "build_options": [ "mpdecimal:examples=true",