summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2023-06-04 17:28:08 +0200
committerNicola Vitale <nivit@FreeBSD.org>2023-06-10 20:02:50 +0200
commitc7e31ef1e136646f3919865af7ebba40ad8cb7e7 (patch)
treebafb64ef383e9d31ce825501f1403d6edd2fb410
parent*/*: Mark IGNORE_WITH_PHP for 8.3.X (diff)
misc/chatgpt-shell-cli: Add nox11 flavor
Add nox11 flavor, so that it can be installed/used on headless servers. PR: 271880 Reported by: olgeni
-rw-r--r--misc/chatgpt-shell-cli/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/misc/chatgpt-shell-cli/Makefile b/misc/chatgpt-shell-cli/Makefile
index e0f10b1190a4..a22104f71249 100644
--- a/misc/chatgpt-shell-cli/Makefile
+++ b/misc/chatgpt-shell-cli/Makefile
@@ -15,7 +15,12 @@ RUN_DEPENDS= bash:shells/bash \
jq:textproc/jq \
xdg-open:devel/xdg-utils
-USES= magick:run shebangfix
+FLAVORS= x11 nox11
+FLAVOR?= ${FLAVORS:[1]}
+
+nox11_PKGNAMESUFFIX= -nox11
+
+USES= magick:${FLAVOR},run shebangfix
USE_GITHUB= yes
GH_ACCOUNT= 0xacx
@@ -30,7 +35,7 @@ NO_BUILD= yes
PLIST_FILES= bin/chatgpt
post-patch:
- ${REINPLACE_CMD} 's/open \("$${image_url}"\)/xdg-open \1/g' ${WRKSRC}/chatgpt.sh
+ ${REINPLACE_CMD} 's/open \("$${image_url}"\)/xdg-open \1/g' ${WRKSRC}/chatgpt.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/chatgpt.sh ${STAGEDIR}${PREFIX}/bin/chatgpt