<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8ef65f2ff764a346194f0ca25c8fa7bdd9c5425b">https://github.com/macports/macports-ports/commit/8ef65f2ff764a346194f0ca25c8fa7bdd9c5425b</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 8ef65f2ff76 libcotp: new port in security/devel
</span>8ef65f2ff76 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 8ef65f2ff764a346194f0ca25c8fa7bdd9c5425b
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Mon Oct 23 00:20:04 2023 +0800

<span style='display:block; white-space:pre;color:#404040;'>    libcotp: new port in security/devel
</span>---
 security/libcotp/Portfile                       | 28 +++++++++++++++++++++++++
 security/libcotp/files/patch-unbreak-build.diff | 11 ++++++++++
 2 files changed, 39 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/libcotp/Portfile b/security/libcotp/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e49faeb09cc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/libcotp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem              1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup               cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup               github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup            paolostivanin libcotp 2.0.1 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories              security devel crypto
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers             {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license                 Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description             C library that generates TOTP and HOTP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description        {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums               rmd160  9fd7ee41f10d85aeec97fd945bc32334a06c2adc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        sha256  b111d528bbde7c1a0a392f49293b25ae33e6e78fbcbe378e0cf8bc6d59743d11 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        size    17273
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from     archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append    port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append      port:libgcrypt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Trash wrong linking flags which break the build: https://github.com/paolostivanin/libcotp/issues/50
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append       patch-unbreak-build.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard   2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# TODO: tests require criterion, which is not yet in Macports: https://github.com/Snaipe/Criterion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append   -DBUILD_TESTING=OFF
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/libcotp/files/patch-unbreak-build.diff b/security/libcotp/files/patch-unbreak-build.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..def900f3772
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/libcotp/files/patch-unbreak-build.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig    2023-05-02 20:53:29
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2023-10-20 08:49:35
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,8 +30,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         -fdiagnostics-color=always -Wstrict-prototypes -Wunreachable-code -Wchar-subscripts -Wwrite-strings -Wpointer-arith -Wbad-function-cast
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         -Wcast-align -Werror=format-security -Werror=implicit-function-declaration -Wno-sign-compare -Wno-format-nonliteral -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-add_link_options(-Wl,--no-add-needed -Wl,--as-needed -Wl,-z,relro,-z,now)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_library(cotp SHARED ${SOURCE_FILES})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_link_libraries(cotp ${GCRYPT_LIBRARIES})
</span></pre><pre style='margin:0'>

</pre>