git: 0c0accd4eb7a - main - graphics/rubygem-mini_magick: Add x11 and nox11 flavors

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 15 Aug 2024 11:56:01 UTC
The branch main has been updated by sunpoet:

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

commit 0c0accd4eb7a4752ccb78502923cfcf118e36ca8
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-15 09:50:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-15 11:47:38 +0000

    graphics/rubygem-mini_magick: Add x11 and nox11 flavors
---
 graphics/rubygem-mini_magick/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/graphics/rubygem-mini_magick/Makefile b/graphics/rubygem-mini_magick/Makefile
index 98e3d1f5c281..1fde207b0a55 100644
--- a/graphics/rubygem-mini_magick/Makefile
+++ b/graphics/rubygem-mini_magick/Makefile
@@ -10,8 +10,12 @@ WWW=		https://github.com/minimagick/minimagick
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
 
-USES=		gem magick
+USES=		gem magick:${FLAVOR}
 
 NO_ARCH=	yes
 
+FLAVORS=	x11 nox11
+FLAVOR?=	${FLAVORS:[1]}
+nox11_PKGNAMESUFFIX=	-nox11
+
 .include <bsd.port.mk>