git: 00f0bec91b74 - main - www/lychee: Reduce memory usage during build

From: Luca Pizzamiglio <pizzamig_at_FreeBSD.org>
Date: Sun, 09 Jul 2023 21:30:33 UTC
The branch main has been updated by pizzamig:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00f0bec91b74e609af75f442c8e38971d302d3ac

commit 00f0bec91b74e609af75f442c8e38971d302d3ac
Author:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
AuthorDate: 2023-07-09 21:28:37 +0000
Commit:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
CommitDate: 2023-07-09 21:28:37 +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
---
 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