git: c7c803faf8aa - main - print/lilypond: Optionize GUILE versions

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 12 Feb 2024 17:39:08 UTC
The branch main has been updated by bofh:

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

commit c7c803faf8aa3a7e324492282ccdd36c0d8577a6
Author:     Martin Neubauer <m.ne@gmx.net>
AuthorDate: 2024-02-12 17:26:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-12 17:38:58 +0000

    print/lilypond: Optionize GUILE versions
    
    PR:             277004
    Approved by:    submitter is maintainer
---
 print/lilypond/Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/print/lilypond/Makefile b/print/lilypond/Makefile
index 1e69fdafc8c2..6d2458ab1dc9 100644
--- a/print/lilypond/Makefile
+++ b/print/lilypond/Makefile
@@ -27,7 +27,7 @@ RUN_DEPENDS=	${LOCALBASE}/share/fonts/dejavu/DejaVuSans-Bold.ttf:x11-fonts/dejav
 		mftrace:print/mftrace
 
 USES=		bison:build compiler:c++11-lib cpe ghostscript gmake gnome \
-		guile:2.2 magick:7,build perl5 pkgconfig python
+		magick:7,build perl5 pkgconfig python
 USE_CXXSTD=	c++14
 USE_GNOME=	pango
 USE_PERL5=	build
@@ -60,10 +60,17 @@ INFO=		lilypond-changes \
 PLIST_SUB=	DISTVERSION=${DISTVERSION}
 
 OPTIONS_DEFINE=	NLS URW
-OPTIONS_SUB=	yes
+OPTIONS_DEFAULT=	GUILE2
+OPTIONS_SINGLE=	GUILE
+OPTIONS_SINGLE_GUILE=	GUILE2 GUILE3
+OPTIONS_SUB=		yes
 
+GUILE2_DESC=	Use guile2
+GUILE3_DESC=	Use guile3
 URW_DESC=	Use bundled URW fonts
 
+GUILE2_USES=	guile:2.2
+GUILE3_USES=	guile:3.0
 NLS_USES=	gettext
 
 URW_BUILD_DEPENDS=	urw-base35-fonts>0:x11-fonts/urw-base35-fonts