diff options
Diffstat (limited to 'misc/github-copilot-cli/Makefile')
-rw-r--r-- | misc/github-copilot-cli/Makefile | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/misc/github-copilot-cli/Makefile b/misc/github-copilot-cli/Makefile index 29375652c3d9..7332f5386343 100644 --- a/misc/github-copilot-cli/Makefile +++ b/misc/github-copilot-cli/Makefile @@ -1,6 +1,5 @@ PORTNAME= github-copilot-cli -DISTVERSION= 0.0.330 -PORTREVISION= 1 +DISTVERSION= 0.0.340 CATEGORIES= misc # machine-learning DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ${NODE_HEADERS}${EXTRACT_SUFX} @@ -8,12 +7,16 @@ MAINTAINER= yuri@FreeBSD.org COMMENT= GitHub Copilot CLI brings the power of the coding agent to terminal WWW= https://github.com/github/copilot-cli +BROKEN_i386= fails to package due to sharp-freebsd-x64.node file in the plist + FETCH_DEPENDS= npm:www/npm BUILD_DEPENDS= npm:www/npm \ - libsecret>0:security/libsecret -RUN_DEPENDS= libsecret>0:security/libsecret + libsecret>0:security/libsecret \ + vips>=8.17.2:graphics/vips +RUN_DEPENDS= libsecret>0:security/libsecret \ + vips>=8.17.2:graphics/vips -USES= nodejs:run pkgconfig +USES= nodejs:run pkgconfig python:build PACKAGE_NAME= @github/copilot NODE_HEADERS= node-v22.19.0-headers @@ -34,7 +37,19 @@ do-fetch: do-build: @${SETENV} HOME=${WRKDIR} npm rebuild --prefix ${WRKSRC} -g ${PACKAGE_NAME}@${DISTVERSION} && \ (cd ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/node-pty && ${SETENV} HOME=${WRKDIR} npm_config_tarball=${DISTDIR}/${NODE_HEADERS}${EXTRACT_SUFX} npm run install) && \ - (cd ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/keytar-forked-forked && ${SETENV} HOME=${WRKDIR} npm run install) + (cd ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/keytar-forked-forked && ${SETENV} HOME=${WRKDIR} npm run install) && \ + (cd ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src && ${SETENV} HOME=${WRKDIR} PYTHON=${PYTHON_CMD} node-gyp rebuild) && \ + ${RM} -rf \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/Release/obj.target \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/Release/.deps \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/Release/node-addon-api \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/Release/nothing.a \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/node-addon-api \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/node-addon-api \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/*.mk \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/Makefile \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/binding.Makefile \ + ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/sharp/src/build/config.gypi do-install: # install files @@ -47,4 +62,8 @@ do-install: # set exec bit @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/index.js +post-install: + # strip binaries + @${FIND} ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME} -path "*/build/*" -name *.node | ${XARGS} ${STRIP_CMD} + .include <bsd.port.mk> |