mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
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
This commit is contained in:
parent
4ca6b84706
commit
c7e31ef1e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user