git: 73e201a8653f - 2023Q3 - www/lychee: Reduce memory usage during build

From: Luca Pizzamiglio <pizzamig_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 15:20:15 UTC
The branch 2023Q3 has been updated by pizzamig:

URL: https://cgit.FreeBSD.org/ports/commit/?id=73e201a8653f21dd811cdc520897e8a3e4a7bb2f

commit 73e201a8653f21dd811cdc520897e8a3e4a7bb2f
Author:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
AuthorDate: 2023-07-09 21:28:37 +0000
Commit:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
CommitDate: 2023-07-23 15:19:40 +0000

    www/lychee: Reduce memory usage during build
    
    Removing profile.release is going to create a new binary.
    * no debug information
    * opt-level from 3 to 2
    
    With less memory requirements, we hope to have successful build on
    32 bits architecture
    
    (cherry picked from commit 00f0bec91b74e609af75f442c8e38971d302d3ac)
---
 www/lychee/Makefile               | 2 +-
 www/lychee/files/patch-Cargo.toml | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/www/lychee/Makefile b/www/lychee/Makefile
index 90be5b378642..2e496ab3f8ca 100644
--- a/www/lychee/Makefile
+++ b/www/lychee/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	lychee
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.13.0
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	www net
 
 MAINTAINER=	pizzamig@FreeBSD.org
diff --git a/www/lychee/files/patch-Cargo.toml b/www/lychee/files/patch-Cargo.toml
new file mode 100644
index 000000000000..2e3055eb572a
--- /dev/null
+++ b/www/lychee/files/patch-Cargo.toml
@@ -0,0 +1,9 @@
+--- Cargo.toml.orig	2023-07-09 21:00:15 UTC
++++ Cargo.toml
+@@ -6,6 +6,3 @@ resolver = "2"
+     "benches",
+ ]
+ resolver = "2"
+-
+-[profile.release]
+-debug = true