git: 145f0ec9835c - main - security/monocypher: update to 4.0.2

From: Dave Cottlehuber <dch_at_FreeBSD.org>
Date: Tue, 05 Sep 2023 20:34:50 UTC
The branch main has been updated by dch:

URL: https://cgit.FreeBSD.org/ports/commit/?id=145f0ec9835c20fcd638549f654200d373f449fa

commit 145f0ec9835c20fcd638549f654200d373f449fa
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2023-09-05 20:34:39 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2023-09-05 20:34:39 +0000

    security/monocypher: update to 4.0.2
    
    - drop local makefile patches thanks to upstream
    
    Differential Revision: https://reviews.freebsd.org/D41732
    
    Sponsored by:   SkunkWerks, GmbH
---
 security/monocypher/Makefile                  |  5 ++++-
 security/monocypher/distinfo                  |  6 +++---
 security/monocypher/files/patch-makefile      | 22 ----------------------
 security/monocypher/files/patch-monocypher.pc |  8 ++++++++
 4 files changed, 15 insertions(+), 26 deletions(-)

diff --git a/security/monocypher/Makefile b/security/monocypher/Makefile
index 86f5916f3566..1bb1bacb2b60 100644
--- a/security/monocypher/Makefile
+++ b/security/monocypher/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	monocypher
-DISTVERSION=	4.0.1
+DISTVERSION=	4.0.2
 CATEGORIES=	security
 MASTER_SITES=	https://monocypher.org/download/
 
@@ -17,4 +17,7 @@ MAKEFILE=	makefile
 ALL_TARGET=	all
 TEST_TARGET=	test
 
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmonocypher.so.*
+
 .include <bsd.port.mk>
diff --git a/security/monocypher/distinfo b/security/monocypher/distinfo
index f958e5abb766..66721b967809 100644
--- a/security/monocypher/distinfo
+++ b/security/monocypher/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1689253203
-SHA256 (monocypher-4.0.1.tar.gz) = 2f5796dba699cfdda5acd7721bf7df2c42e7e01d5cb843294a2a6e0a28cec0e9
-SIZE (monocypher-4.0.1.tar.gz) = 939452
+TIMESTAMP = 1693924071
+SHA256 (monocypher-4.0.2.tar.gz) = 38d07179738c0c90677dba3ceb7a7b8496bcfea758ba1a53e803fed30ae0879c
+SIZE (monocypher-4.0.2.tar.gz) = 939996
diff --git a/security/monocypher/files/patch-makefile b/security/monocypher/files/patch-makefile
deleted file mode 100644
index 97293d462930..000000000000
--- a/security/monocypher/files/patch-makefile
+++ /dev/null
@@ -1,22 +0,0 @@
---- makefile.orig	2023-07-17 16:11:09 UTC
-+++ makefile
-@@ -52,14 +52,14 @@
- .POSIX:
- .SUFFIXES:
- 
--CC=gcc -std=c99
--CFLAGS=-pedantic -Wall -Wextra -O3 -march=native
--DESTDIR=
--PREFIX=usr/local
-+CC?=gcc -std=c99
-+CFLAGS?=-pedantic -Wall -Wextra -O3 -march=native
-+DESTDIR?=
-+PREFIX?=usr/local
- LIBDIR=$(PREFIX)/lib
- INCLUDEDIR=$(PREFIX)/include
- PKGCONFIGDIR=$(LIBDIR)/pkgconfig
--MANDIR=$(PREFIX)/share/man/man3
-+MANDIR?=$(PREFIX)/share/man/man3
- SONAME=libmonocypher.so.4
- 
- .PHONY: all library static-library dynamic-library  \
diff --git a/security/monocypher/files/patch-monocypher.pc b/security/monocypher/files/patch-monocypher.pc
new file mode 100644
index 000000000000..a87a4c06e39a
--- /dev/null
+++ b/security/monocypher/files/patch-monocypher.pc
@@ -0,0 +1,8 @@
+--- monocypher.pc.orig	2023-09-05 14:54:15 UTC
++++ monocypher.pc
+@@ -1,4 +1,4 @@
+-prefix=/PREFIX
++prefix=PREFIX
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ includedir=${prefix}/include