diff --git a/devel/emscripten/Makefile b/devel/emscripten/Makefile index 9f32a57aea9c..d9da7e96be03 100644 --- a/devel/emscripten/Makefile +++ b/devel/emscripten/Makefile @@ -1,76 +1,77 @@ PORTNAME= emscripten DISTVERSION= 4.0.3 +PORTREVISION= 1 CATEGORIES= devel www MAINTAINER= yuri@FreeBSD.org COMMENT= LLVM-to-Web Compiler WWW= https://emscripten.org/ \ https://github.com/emscripten-core/emscripten LICENSE= MIT NCSA LICENSE_COMB= dual # USES doesn't support llvm:devel, so we add it here: BUILD_DEPENDS= llvm-devel>0:devel/llvm-devel RUN_DEPENDS= bash:shells/bash \ binaryen>0:devel/binaryen \ llvm-devel>0:devel/llvm-devel # the upstream requires to use either the latest llvm version, or their own llvm fork called emscripten-fastcomp USES= nodejs:run python shebangfix USE_GITHUB= yes GH_ACCOUNT= emscripten-core LLVM_VERSION= -devel SHEBANG_FILES= ${PYSCRIPTS} emcmake system/bin/sdl-config system/bin/sdl2-config SHEBANG_GLOB= *.py *.sh PYSCRIPTS= em++ em-config emar embuilder emcc emcmake emconfigure emmake emranlib emrun emscons emsize NO_BUILD= yes NO_ARCH= yes TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} CLANG_CC=${LOCALBASE}/bin/clang${LLVM_VERSION} BINARY_ALIAS= python=${PYTHON_CMD} # for tests PORTSCOUT= limit:^\d+\. # prevent i64 post-patch: @${REINPLACE_CMD} -i '' -E " \ s|BINARYEN_ROOT = None|BINARYEN_ROOT = '${LOCALBASE}'| ; \ s|LLVM_ROOT = None|LLVM_ROOT = '${LOCALBASE}/bin'| ; \ s|LLVM_ADD_VERSION = None|LLVM_ADD_VERSION = '${LLVM_VERSION}'| ; \ s|CLANG_ADD_VERSION = None|CLANG_ADD_VERSION = '${LLVM_VERSION}'| ; \ s|^__rootpath__ = .*|__rootpath__ = '${PREFIX}/lib/${PORTNAME}'| ; \ s|find_executable\('llvm-dis'\) or '/usr/bin/llvm-dis'|'${LOCALBASE}/bin/llvm-dis'|" \ ${WRKSRC}/tools/config.py do-install: # the native install target installs files into root, see https://github.com/emscripten-core/emscripten/issues/17193 ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} cd ${WRKSRC} && ${CP} -r em* cmake site src system third_party tools ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/ ${FIND} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} \( -name "*.bat" -o -name "*.orig" \) -delete .for s in ${PYSCRIPTS} @(echo "#!/bin/sh"; \ echo ""; \ echo "${PYTHON_CMD} ${PREFIX}/lib/${PORTNAME}/${s}.py \"$$"@"\"" \ ) > ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${s} @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${s} ${RLN} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${s} ${STAGEDIR}${PREFIX}/bin/${s} .endfor do-test: # some tests fail: Unknown option '--no-stack-ir', see https://github.com/emscripten-core/emscripten/issues/22408 @cd ${WRKSRC} && \ ${SETENV} ${TEST_ENV} test/runner core3.test_*i64* && \ ${SETENV} ${TEST_ENV} test/runner wasm2js1 test-quick: install @cd ${WRKSRC} && \ ${ECHO} "==> Running the test" && \ ${PREFIX}/bin/emcc ${FILESDIR}/hello_world.c && \ node a.out.js && \ ${ECHO} "Test succeeded." .include diff --git a/devel/node-thrift/Makefile b/devel/node-thrift/Makefile index e23a44eeb4ca..2b2eb2ccf2c7 100644 --- a/devel/node-thrift/Makefile +++ b/devel/node-thrift/Makefile @@ -1,26 +1,27 @@ PORTNAME= thrift PORTVERSION= ${THRIFT_PORTVERSION} +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= APACHE/thrift/${PORTVERSION} PKGNAMEPREFIX= node- MAINTAINER= ports@FreeBSD.org COMMENT= Node.js bindings for the Apache Thrift RPC system WWW= https://thrift.apache.org/ USES= cpe nodejs:run CPE_VENDOR= apache NO_BUILD= yes NO_ARCH= yes DISTINFO_FILE= ${.CURDIR}/../thrift/distinfo do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/thrift ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node ${CP} -R ${WRKSRC}/lib/nodejs/* \ ${STAGEDIR}${PREFIX}/lib/node_modules/thrift ${LN} -s ${PREFIX}/lib/node_modules/thrift/lib/thrift ${STAGEDIR}${PREFIX}/lib/node .include "${.CURDIR}/../thrift/bsd.thrift.mk" .include diff --git a/devel/purescript-language-server/Makefile b/devel/purescript-language-server/Makefile index c1e53b9be694..2faeca83166d 100644 --- a/devel/purescript-language-server/Makefile +++ b/devel/purescript-language-server/Makefile @@ -1,25 +1,26 @@ PORTNAME= purescript-language-server PORTVERSION= 0.18.4 +PORTREVISION= 1 CATEGORIES= devel textproc MASTER_SITES= https://github.com/nwolverson/${PORTNAME}/releases/download/v${PORTVERSION}/${PORTNAME}.js?dummy=/ DISTNAME= ${PORTNAME}-${PORTVERSION} EXTRACT_SUFX= .js EXTRACT_ONLY= MAINTAINER= haskell@FreeBSD.org COMMENT= LSP provider implementation for PureScript language WWW= https://github.com/nwolverson/purescript-language-server/ LICENSE= MIT USES= nodejs:run NO_BUILD= yes NO_ARCH= yes PLIST_FILES= bin/${PORTNAME} do-install: ${INSTALL_SCRIPT} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include diff --git a/devel/rubygem-execjs/Makefile b/devel/rubygem-execjs/Makefile index 1abab9da5a72..ef3c7c0b524a 100644 --- a/devel/rubygem-execjs/Makefile +++ b/devel/rubygem-execjs/Makefile @@ -1,21 +1,21 @@ PORTNAME= execjs PORTVERSION= 2.10.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel rubygems MASTER_SITES= RG MAINTAINER= sunpoet@FreeBSD.org COMMENT= ExecJS lets you run JavaScript code from Ruby WWW= https://github.com/rails/execjs LICENSE= MIT LICENSE_FILE= ${WRKSRC}/MIT-LICENSE USES= gem nodejs:run NO_ARCH= yes post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/lib/execjs/runtimes.rb .include diff --git a/devel/sonar-scanner-cli/Makefile b/devel/sonar-scanner-cli/Makefile index 33c2c9734097..65d8ae1a958d 100644 --- a/devel/sonar-scanner-cli/Makefile +++ b/devel/sonar-scanner-cli/Makefile @@ -1,62 +1,62 @@ PORTNAME= sonar-scanner-cli DISTVERSION= 6.2.1.4610 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel security www java MASTER_SITES= https://binaries.sonarsource.com/Distribution/${PORTNAME}/ MAINTAINER= netchild@FreeBSD.org COMMENT= Scanner component of SonarQube WWW= https://www.sonarqube.org/ LICENSE= LGPL3 # node -> JS analysis USES= cpe java nodejs:run zip CPE_VENDOR= sonarsource CPE_PRODUCT= sonarqube_scanner WRKSRC= ${WRKDIR}/sonar-scanner-${DISTVERSION} NO_ARCH= yes NO_BUILD= yes JAVA_VERSION= 17+ JAVA_VENDOR= openjdk APP_NAME= ${PORTNAME} APP_DIR= libexec/${PORTNAME} JAR_VERSION= ${DISTVERSION} SUB_LIST= \ APP_DIR=${APP_DIR} \ JAR_VERSION=${JAR_VERSION} SUB_FILES= \ sonar-scanner \ pkg-message PLIST_SUB= \ APP_DIR=${APP_DIR} \ JAR_VERSION=${JAR_VERSION} post-extract: ${MV} ${WRKSRC}/conf/sonar-scanner.properties ${WRKSRC}/conf/sonar-scanner.properties.sample ${RM} ${WRKSRC}/bin/*.bat do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${APP_DIR} ${INSTALL} ${WRKDIR}/sonar-scanner ${STAGEDIR}${PREFIX}/bin/ .for dir in bin conf lib cd ${WRKSRC}; ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${PREFIX}/${APP_DIR} "! -name *\.orig" .endfor gen-plist: ${ECHO} '@sample ${APP_DIR}/conf/sonar-scanner.properties.sample' >${PLIST}.new ${ECHO} 'bin/sonar-scanner' >>${PLIST}.new .for dir in bin conf lib ${FIND} ${STAGEDIR}${PREFIX}/${APP_DIR}/${dir} -type f | \ ${SED} -e "s:${STAGEDIR}${PREFIX}/::g ; \ s:${JAR_VERSION}:%%JAR_VERSION%%:g" | \ ${GREP} -v conf/sonar-scanner.properties | ${SORT} >> ${PLIST}.new .endfor .include diff --git a/devel/sonarqube-community/Makefile b/devel/sonarqube-community/Makefile index 5a1c8b1fe838..fdbce45e040c 100644 --- a/devel/sonarqube-community/Makefile +++ b/devel/sonarqube-community/Makefile @@ -1,166 +1,166 @@ PORTNAME= sonarqube DISTVERSION= 24.12.0.100206 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel security www java MASTER_SITES= https://binaries.sonarsource.com/Distribution/sonarqube/:m_core \ https://binaries.sonarsource.com/Distribution/sonar-csharp-plugin/:m_csharp \ https://binaries.sonarsource.com/Distribution/sonar-java-plugin/:m_java \ https://binaries.sonarsource.com/Distribution/sonar-javascript-plugin/:m_javascript \ https://binaries.sonarsource.com/Distribution/sonar-php-plugin/:m_php \ https://binaries.sonarsource.com/Distribution/sonar-python-plugin/:m_python \ https://binaries.sonarsource.com/Distribution/sonar-vbnet-plugin/:m_vbnet PKGNAMESUFFIX= -community DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:m_core \ sonar-csharp-plugin-${SONARCSHARP_VER}.jar:m_csharp \ sonar-java-plugin-${SONARJAVA_VER}.jar:m_java \ sonar-javascript-plugin-${SONARJAVASCRIPT_VER}.jar:m_javascript \ sonar-php-plugin-${SONARPHP_VER}.jar:m_php \ sonar-python-plugin-${SONARPYTHON_VER}.jar:m_python \ sonar-vbnet-plugin-${SONARVBNET_VER}.jar:m_vbnet EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= netchild@FreeBSD.org COMMENT= Web-based continuous code inspection tool WWW= https://www.sonarqube.org/ LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING #BUILD_DEPENDS= jna>0:devel/jna RUN_DEPENDS= bash:shells/bash #\ # jna>0:devel/jna USES= cpe java shebangfix zip nodejs:lts,run CPE_VENDOR= sonarsource SHEBANG_FILES= elasticsearch/bin/elasticsearch-cli \ elasticsearch/bin/elasticsearch-env NO_ARCH= yes NO_BUILD= yes JAVA_VERSION= 17+ JAVA_VENDOR= openjdk USE_RC_SUBR= ${PORTNAME} APP_NAME= ${PORTNAME} APP_DIR= libexec/${PORTNAME} LOG_DIR= /var/log/${PORTNAME} PID_DIR= /var/run/${PORTNAME} JAR_VERSION= ${DISTVERSION} DBBASE_DIR= /var/db/${PORTNAME} DATA_DIR= ${DBBASE_DIR}/data TEMP_DIR= ${DBBASE_DIR}/temp # If you want to update plugins, simply update the version number below, # and run "make makesum". SONARCSHARP_VER= 10.4.0.108396 SONARJAVA_VER= 8.8.0.37665 SONARJAVASCRIPT_VER= 10.19.0.29100 SONARPHP_VER= 3.41.0.12692 SONARPYTHON_VER= 4.25.0.19056 SONARVBNET_VER= ${SONARCSHARP_VER} USERS= sonarqube GROUPS= sonarqube SUB_LIST= \ APP_NAME=${APP_NAME} \ APP_DIR=${APP_DIR} \ JAVA_HOME=${JAVA_HOME} \ JAVA=${JAVA} \ LOG_DIR=${LOG_DIR} \ PID_DIR=${PID_DIR} \ JAR_VERSION=${JAR_VERSION} \ DATA_DIR=${DATA_DIR} \ TEMP_DIR=${TEMP_DIR} SUB_FILES= \ ${APP_NAME} \ pkg-message PLIST_SUB= APP_NAME=${APP_NAME} \ APP_DIR=${APP_DIR} \ LOG_DIR=${LOG_DIR} \ PID_DIR=${PID_DIR} \ JAR_VERSION=${JAR_VERSION} \ DBBASE_DIR=${DBBASE_DIR} \ DATA_DIR=${DATA_DIR} \ TEMP_DIR=${TEMP_DIR} \ SONARCSHARP_VER=${SONARCSHARP_VER} \ SONARJAVA_VER=${SONARJAVA_VER} \ SONARJAVASCRIPT_VER=${SONARJAVASCRIPT_VER} \ SONARPHP_VER=${SONARPHP_VER} \ SONARPYTHON_VER=${SONARPYTHON_VER} \ SONARSCMGIT_VER=${SONARSCMGIT_VER} \ SONARSCMSVN_VER=${SONARSCMSVN_VER} \ SONARVBNET_VER=${SONARVBNET_VER} post-extract: ${RM} -r ${WRKSRC}/bin ${WRKSRC}/lib/jsw ${WRKSRC}/conf/wrapper.conf # ${RM} ${WRKSRC}/elasticsearch/lib/jna*.jar ${MV} ${WRKSRC}/conf/sonar.properties ${WRKSRC}/conf/sonar.properties.sample .for plugin in sonar-csharp-plugin \ sonar-java-plugin \ sonar-javascript-plugin \ sonar-php-plugin \ sonar-python-plugin \ sonar-vbnet-plugin ${RM} ${WRKSRC}/lib/extensions/${plugin}-*.jar .endfor .for plugin in sonar-csharp-plugin-${SONARCSHARP_VER}.jar \ sonar-java-plugin-${SONARJAVA_VER}.jar \ sonar-javascript-plugin-${SONARJAVASCRIPT_VER}.jar \ sonar-php-plugin-${SONARPHP_VER}.jar \ sonar-python-plugin-${SONARPYTHON_VER}.jar \ sonar-vbnet-plugin-${SONARVBNET_VER}.jar ${CP} ${DISTDIR}/${plugin} ${WRKSRC}/lib/extensions/ .endfor post-patch: ${REINPLACE_CMD} -e 's:%%LOG_DIR%%:${LOG_DIR}:g ; s:%%DATA_DIR%%:${DATA_DIR}:g ; s:%%TEMP_DIR%%:${TEMP_DIR}:g' ${WRKSRC}/conf/sonar.properties.sample do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${APP_DIR}/elasticsearch/plugins ${MKDIR} ${STAGEDIR}${LOG_DIR} ${STAGEDIR}${PID_DIR} \ ${STAGEDIR}${DATA_DIR} ${STAGEDIR}${TEMP_DIR} .for dir in conf elasticsearch extensions jres lib web cd ${WRKSRC}; ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${PREFIX}/${APP_DIR} "! -name *\.orig" .endfor # ${LN} -s ${JAVASHAREDIR}/classes/jna.jar \ # ${STAGEDIR}${PREFIX}/${APP_DIR}/elasticsearch/lib/jna.jar gen-plist: ${ECHO} '@sample ${APP_DIR}/conf/sonar.properties.sample' >${PLIST}.new ${ECHO} '@dir(sonarqube,sonarqube,755) %%DBBASE_DIR%%' >>${PLIST}.new ${ECHO} '@dir(sonarqube,sonarqube,755) %%DATA_DIR%%' >>${PLIST}.new ${ECHO} '@dir(sonarqube,sonarqube,755) %%TEMP_DIR%%' >>${PLIST}.new ${ECHO} '@dir %%APP_DIR%%/elasticsearch/plugins' >>${PLIST}.new # ${ECHO} '@dir(sonarqube,sonarqube,755) %%APP_DIR%%/extensions' >>${PLIST}.new .for dir in conf elasticsearch jres lib web ${FIND} ${STAGEDIR}${PREFIX}/${APP_DIR}/${dir} -type f -o -type l | \ ${SED} -e "s:${STAGEDIR}${PREFIX}/::g ; \ s:${JAR_VERSION}:%%JAR_VERSION%%:g ; \ s:sonar-csharp-plugin-[0-9.]*.jar:sonar-csharp-plugin-%%SONARCSHARP_VER%%.jar:g ; \ s:sonar-java-plugin-[0-9.]*.jar:sonar-java-plugin-%%SONARJAVA_VER%%.jar:g ; \ s:sonar-javascript-plugin-[0-9.]*.jar:sonar-javascript-plugin-%%SONARJAVASCRIPT_VER%%.jar:g ; \ s:sonar-php-plugin-[0-9.]*.jar:sonar-php-plugin-%%SONARPHP_VER%%.jar:g ; \ s:sonar-python-plugin-[0-9.]*.jar:sonar-python-plugin-%%SONARPYTHON_VER%%.jar:g ; \ s:sonar-vbnet-plugin-[0-9.]*.jar:sonar-vbnet-plugin-%%SONARVBNET_VER%%.jar:g ; \ s:\(.*elasticsearch/bin.*\):@(,,755) \1:g" | \ ${GREP} -v conf/sonar.properties.sample | ${SORT} >> ${PLIST}.new .endfor ${ECHO} '@owner sonarqube' >>${PLIST}.new ${ECHO} '@group sonarqube' >>${PLIST}.new .for dir in extensions ${FIND} ${STAGEDIR}${PREFIX}/${APP_DIR}/${dir} -type d | \ ${SED} -e "s:${STAGEDIR}${PREFIX}/:@dir(sonarqube,sonarqube,755) :g" | \ ${SORT} >> ${PLIST}.new ${FIND} ${STAGEDIR}${PREFIX}/${APP_DIR}/${dir} -type f | \ ${SED} -e "s:${STAGEDIR}${PREFIX}/::g ; \ s:${JAR_VERSION}:%%JAR_VERSION%%:g" | \ ${SORT} >> ${PLIST}.new .endfor ${ECHO} '@dir(sonarqube,sonarqube,755) %%LOG_DIR%%' >> ${PLIST}.new ${ECHO} '@dir(sonarqube,sonarqube,755) %%PID_DIR%%' >> ${PLIST}.new .include diff --git a/games/wipeclean/Makefile b/games/wipeclean/Makefile index 355ecef8c81f..b1560333d74f 100644 --- a/games/wipeclean/Makefile +++ b/games/wipeclean/Makefile @@ -1,28 +1,28 @@ PORTNAME= wipeclean PORTVERSION= 1.1.2 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= games MASTER_SITES= LOCAL/ehaupt MAINTAINER= ehaupt@FreeBSD.org COMMENT= CLI tool to wipe away your error messages in style WWW= https://github.com/JeanJouliaCode/wipeClean LICENSE= ISCL USES= dos2unix nodejs:run tar:xz NO_ARCH= yes NO_BUILD= yes do-install: cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} ${LN} -fs ${DATADIR}/node_modules/wipeclean/index.js \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} dist: clean @npm install --prefix ${WRKSRC} ${PORTNAME}@${PORTVERSION} @${TAR} -C ${WRKDIR} -cvJpf ${DISTDIR}/${DISTFILES} ${DISTNAME} .include diff --git a/lang/antimony/Makefile b/lang/antimony/Makefile index 46da97514ffb..7ec38f548bde 100644 --- a/lang/antimony/Makefile +++ b/lang/antimony/Makefile @@ -1,81 +1,81 @@ PORTNAME= antimony DISTVERSIONPREFIX= v DISTVERSION= 0.9.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang PKGNAMESUFFIX= -language MAINTAINER= yuri@FreeBSD.org COMMENT= Antimony programming language WWW= https://antimony-lang.github.io/antimony/ \ https://github.com/antimony-lang/antimony LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cargo nodejs:run USE_GITHUB= yes GH_ACCOUNT= antimony-lang CARGO_CRATES= aho-corasick-1.0.1 \ ansi_term-0.11.0 \ atty-0.2.14 \ bitflags-1.2.1 \ block-buffer-0.10.4 \ cc-1.0.66 \ cfg-if-1.0.0 \ clap-2.33.3 \ cpufeatures-0.2.17 \ crypto-common-0.1.6 \ digest-0.10.7 \ either-1.6.1 \ generic-array-0.14.7 \ heck-0.3.1 \ hermit-abi-0.1.17 \ inkwell-0.5.0 \ inkwell_internals-0.10.0 \ lazy_static-1.5.0 \ libc-0.2.172 \ llvm-sys-100.2.4 \ memchr-2.6.3 \ once_cell-1.17.0 \ proc-macro-error-1.0.4 \ proc-macro-error-attr-1.0.4 \ proc-macro2-1.0.78 \ qbe-2.4.0 \ quote-1.0.35 \ regex-1.11.1 \ regex-automata-0.4.8 \ regex-syntax-0.8.5 \ rust-embed-8.7.0 \ rust-embed-impl-8.7.0 \ rust-embed-utils-8.7.0 \ same-file-1.0.6 \ semver-0.9.0 \ semver-parser-0.7.0 \ sha2-0.10.8 \ strsim-0.8.0 \ structopt-0.3.26 \ structopt-derive-0.4.18 \ syn-1.0.53 \ syn-2.0.48 \ textwrap-0.11.0 \ thiserror-1.0.56 \ thiserror-impl-1.0.56 \ typenum-1.18.0 \ unicode-ident-1.0.9 \ unicode-segmentation-1.7.1 \ unicode-width-0.1.8 \ unicode-xid-0.2.2 \ vec_map-0.8.2 \ version_check-0.9.2 \ walkdir-2.5.0 \ winapi-0.3.9 \ winapi-i686-pc-windows-gnu-0.4.0 \ winapi-util-0.1.5 \ winapi-x86_64-pc-windows-gnu-0.4.0 PLIST_FILES= bin/sb .include diff --git a/lang/coffeescript/Makefile b/lang/coffeescript/Makefile index e587506aea11..5e546e0a3c86 100644 --- a/lang/coffeescript/Makefile +++ b/lang/coffeescript/Makefile @@ -1,38 +1,38 @@ PORTNAME= coffeescript DISTVERSION= 2.7.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang MAINTAINER= egypcio@FreeBSD.org COMMENT= Unfancy JavaScript WWW= https://coffeescript.org/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= nodejs:run USE_GITHUB= yes GH_ACCOUNT= jashkenas PORTEXAMPLES= *.coffee CONFLICTS_INSTALL= cake OPTIONS_DEFINE= EXAMPLES NO_ARCH= yes NO_BUILD= yes do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/${PORTNAME} ${INSTALL_SCRIPT} ${WRKSRC}/bin/cake ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/bin/coffee ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}/*.js \ ${STAGEDIR}${PREFIX}/lib/node_modules/${PORTNAME} do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/documentation/examples/${PORTEXAMPLES} \ ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/lang/elm/Makefile b/lang/elm/Makefile index 23a3afcc3c0a..767ed722e7b3 100644 --- a/lang/elm/Makefile +++ b/lang/elm/Makefile @@ -1,145 +1,145 @@ PORTNAME= elm PORTVERSION= 0.19.1 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= lang MASTER_SITES= LOCAL/arrowd/:package_list DISTFILES= elm-compiler-bootstrap-${PORTVERSION}${EXTRACT_SUFX}:package_list MAINTAINER= haskell@FreeBSD.org COMMENT= Delightful language for reliable webapps WWW= https://elm-lang.org/ LICENSE= BSD3CLAUSE BUILD_DEPENDS= ghc-9.2.8:lang/ghc92 USES= cabal nodejs:run USE_GITHUB= yes GH_ACCOUNT= elm GH_PROJECT= compiler CONFLICTS_INSTALL= elm # bin/elm (from mail/elm) USE_CABAL= HTTP-4000.4.1_6 \ HUnit-1.6.2.0 \ SHA-1.6.4.4 \ ansi-terminal-1.0.2 \ ansi-terminal-types-0.11.5_1 \ ansi-wl-pprint-0.6.9_4 \ appar-0.1.8 \ asn1-encoding-0.9.6_2 \ asn1-parse-0.9.5 \ asn1-types-0.3.4 \ assoc-1.1.1_1 \ async-2.2.5_3 \ attoparsec-0.14.4_6 \ base-orphans-0.9.3 \ base16-bytestring-1.0.2.0_1 \ base64-bytestring-1.2.1.0_1 \ basement-0.0.16 \ blaze-builder-0.4.3 \ byteorder-1.0.4 \ bytestring-builder-0.10.8.2.0 \ call-stack-0.4.0 \ case-insensitive-1.2.1.0 \ cborg-0.2.10.0_2 \ cereal-0.5.8.3 \ clock-0.8.4 \ colour-2.3.6 \ cookie-0.5.1 \ crypton-1.0.4 \ crypton-connection-0.4.4 \ crypton-x509-1.7.7 \ crypton-x509-store-1.6.10 \ crypton-x509-system-1.6.7 \ crypton-x509-validation-1.6.14 \ data-array-byte-0.1.0.1_4 \ data-default-0.8.0.1 \ data-default-class-0.2.0.0 \ digest-0.0.2.1 \ ech-config-0.0.1 \ edit-distance-0.2.2.1_1 \ file-embed-0.0.16.0 \ filelock-0.1.1.7 \ foldable1-classes-compat-0.1.1_2 \ half-0.3.2 \ hashable-1.4.7.0 \ hourglass-0.2.12_1 \ hpke-0.0.0 \ hsc2hs-0.68.10_4 \ http-client-0.7.19 \ http-client-tls-0.3.6.4_2 \ http-types-0.12.4 \ integer-logarithms-1.0.4 \ io-streams-1.5.2.2_6 \ io-streams-haproxy-1.0.1.0_9 \ iproute-1.7.15 \ language-glsl-0.3.0_1 \ lifted-base-0.2.3.12 \ memory-0.18.0_1 \ mime-types-0.1.2.0 \ monad-control-1.0.3.1 \ network-3.2.7.0 \ network-byte-order-0.1.7 \ network-uri-2.6.4.2_1 \ old-locale-1.0.0.7_2 \ old-time-1.1.0.4 \ optparse-applicative-0.18.1.0_1 \ os-string-2.0.7 \ pem-0.2.4 \ prettyclass-1.0.0.0 \ prettyprinter-1.7.1 \ prettyprinter-ansi-terminal-1.1.3 \ primitive-0.9.1.0 \ random-1.3.1 \ raw-strings-qq-1.1 \ readable-0.3.1_2 \ regex-base-0.94.0.3 \ regex-posix-0.96.0.2 \ scientific-0.3.8.0_2 \ serialise-0.2.6.1_4 \ snap-core-1.0.5.1_6 \ snap-server-1.1.2.1_5 \ socks-0.6.1 \ splitmix-0.1.1 \ streaming-commons-0.2.3.0 \ strict-0.5.1_1 \ tagged-0.8.9 \ tasty-1.5.3_1 \ th-compat-0.1.6 \ these-1.2.1_2 \ tls-2.1.10 \ transformers-base-0.4.6 \ transformers-compat-0.7.2 \ unix-compat-0.7.4 \ unix-time-0.4.16 \ unordered-containers-0.2.20_4 \ utf8-string-1.0.2 \ vector-0.13.2.0_1 \ vector-stream-0.1.0.1_3 \ zip-archive-0.4.3.2_1 \ zlib-0.7.1.0_2 \ zlib-bindings-0.1.1.5_2 MAKE_ENV= ELM_HOME=${WRKDIR}/elm-compiler-bootstrap-${PORTVERSION} .PHONY: create-bootstrap # Create the bootstrapping elm packages and registry files # This is needed because it builds the reactor app, which is written in elm! create-bootstrap: # Prepare source ${MKDIR} ${WRKDIR} ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}_GH${_GITHUB_REV}${EXTRACT_SUFX} -C ${WRKDIR} ${RM} ${WRKSRC}/worker/elm.cabal # Build with a custom home cd ${WRKSRC} && \ ${SETENV} ${MAKE_ENV} HOME=${CABAL_HOME} cabal new-update && \ ${SETENV} ${MAKE_ENV} HOME=${CABAL_HOME} cabal new-build --disable-benchmarks --disable-tests --flags ${CABAL_FLAGS} ${BUILD_ARGS} ${BUILD_TARGET} # Prepare the bootstrap to /tmp ${TAR} --numeric-owner -czf /tmp/elm-compiler-bootstrap-${PORTVERSION}${EXTRACT_SUFX} -C ${WRKDIR} \ elm-compiler-bootstrap-${PORTVERSION} # Now all that's left is manually placing the bootstrap file in ${DISTDIR}/cabal/ # And running make makesum to update the distfile .include diff --git a/lang/typescript/Makefile b/lang/typescript/Makefile index 98f0fdf4f419..8a5804571c3c 100644 --- a/lang/typescript/Makefile +++ b/lang/typescript/Makefile @@ -1,38 +1,39 @@ PORTNAME= typescript DISTVERSION= 5.9.3 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= https://github.com/microsoft/TypeScript/releases/download/v${DISTVERSION}/ \ https://registry.npmjs.org/${PORTNAME}/-/ MAINTAINER= mandree@FreeBSD.org COMMENT= Superset of JavaScript that compiles to JavaScript output WWW= https://www.typescriptlang.org/ LICENSE= APACHE20 DEPRECATED= New port was added without port maintainer, submitter not interested in taking it. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289856 and contact mandree@ if you are willing to maintain typescript and have a track record that lets you appear suitable for maintaining a high-profile port. EXPIRATION_DATE=2025-11-30 USES= nodejs:run tar:tgz NO_ARCH= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/package post-patch: @cd ${WRKSRC}/bin && for f in *; do \ ${REINPLACE_CMD} -e 's|../lib|${LOCALBASE}/lib/node_modules/${PORTNAME}|g' "$$f"; \ done do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/${PORTNAME} cd ${WRKSRC}/bin && for f in *; do \ case "$${f}" in *.bak) ;; *) \ ${INSTALL_SCRIPT} "${WRKSRC}/bin/$$f" ${STAGEDIR}${PREFIX}/bin ; \ esac ; \ done cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . \ ${STAGEDIR}${PREFIX}/lib/node_modules/${PORTNAME} .include diff --git a/misc/claude-code/Makefile b/misc/claude-code/Makefile index fc80b69cf497..bbdf40e605c9 100644 --- a/misc/claude-code/Makefile +++ b/misc/claude-code/Makefile @@ -1,37 +1,38 @@ PORTNAME= claude-code DISTVERSION= 2.0.36 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Agentic coding tool from Anthropic that lives in your terminal WWW= https://github.com/anthropics/claude-code FETCH_DEPENDS= npm:www/npm USES= nodejs:run NO_BUILD= yes NO_ARCH= yes PACKAGE_NAME= @anthropic-ai/claude-code do-fetch: @if ! [ -f ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ]; then \ npm install --prefix ${WRKSRC} -g ${PACKAGE_NAME}@${DISTVERSION} && \ ${FIND} ${WRKDIR} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \ cd ${WRKDIR} && ${FIND} ${PORTNAME}-${DISTVERSION} -print0 | LC_ALL=C ${SORT} -z | \ ${TAR} czf ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T -; \ fi do-install: # install files @cd ${WRKSRC} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX} # update ${REINPLACE_CMD} -i '' \ -e "s|#!/usr/bin/env node|#!${PREFIX}/bin/node|" \ ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/cli.js # set exec bit @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/cli.js .include diff --git a/misc/gemini-cli/Makefile b/misc/gemini-cli/Makefile index 86fff38bef8b..c5c42fd8831e 100644 --- a/misc/gemini-cli/Makefile +++ b/misc/gemini-cli/Makefile @@ -1,72 +1,73 @@ PORTNAME= gemini-cli DISTVERSION= 0.13.0 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Open-source CLI for direct access to Google's Gemini AI model WWW= https://geminicli.com/ \ https://google-gemini.github.io/gemini-cli/ \ https://github.com/google-gemini/gemini-cli LICENSE= APACHE20 BUILD_DEPENDS= npm:www/npm FETCH_DEPENDS= npm:www/npm USES= nodejs:build,run python:build PACKAGE_NAME= @google/gemini-cli do-fetch: @if ! [ -f ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ]; then ( \ ${MKDIR} -p ${WRKDIR}/${PORTNAME}-${DISTVERSION} && \ cd ${WRKDIR}/${PORTNAME}-${DISTVERSION} && \ if [ -f ${FILESDIR}/package-lock.json ]; then \ ${ECHO} '{"name":"gemini-cli-installer","version":"1.0.0","dependencies":{"${PACKAGE_NAME}":"^${DISTVERSION}"}}' > package.json && \ ${CP} ${FILESDIR}/package-lock.json . ; \ ${SETENV} HOME=${WRKDIR} npm ci --ignore-scripts --global-style --legacy-peer-deps --omit=dev ; \ else \ ${ECHO} '{"name":"gemini-cli-installer","version":"1.0.0"}' > package.json && \ npm install --package-lock-only --global-style --legacy-peer-deps ${PACKAGE_NAME}@${DISTVERSION} && \ ${CP} package-lock.json ${WRKDIR}/package-lock.json.generated && \ ${ECHO} "" && \ ${ECHO} "=====================================================================" && \ ${ECHO} "WARNING: package-lock.json not found in files/ directory" && \ ${ECHO} "Generated one at: ${WRKDIR}/package-lock.json.generated" && \ ${ECHO} "" && \ ${ECHO} "To enable reproducible builds, please:" && \ ${ECHO} " 1. mkdir -p ${.CURDIR}/files" && \ ${ECHO} " 2. cp ${WRKDIR}/package-lock.json.generated ${.CURDIR}/files/package-lock.json" && \ ${ECHO} " 3. Re-run 'make clean distclean && make fetch'" && \ ${ECHO} "=====================================================================" && \ ${ECHO} "" && \ ${SETENV} HOME=${WRKDIR} npm ci --ignore-scripts --global-style --legacy-peer-deps --omit=dev ; \ fi && \ ${MKDIR} -p lib/node_modules/@google && \ ${MKDIR} -p bin && \ ${MV} node_modules/${PACKAGE_NAME} lib/node_modules/@google/ && \ ${LN} -sf ../lib/node_modules/${PACKAGE_NAME}/dist/index.js bin/gemini && \ ${RM} -rf node_modules package.json && \ ${FIND} ${WRKDIR} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \ cd ${WRKDIR} && ${FIND} ${PORTNAME}-${DISTVERSION} -print0 | LC_ALL=C ${SORT} -z | \ ${TAR} czf ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T - \ ); fi do-build: # Build native modules for node-pty @cd ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/node-pty && \ ${SETENV} HOME=${WRKDIR} CFLAGS="-I${LOCALBASE}/include" CXXFLAGS="-I${LOCALBASE}/include" \ npm rebuild --nodedir=${LOCALBASE} do-install: # install files @cd ${WRKSRC} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX} # update ${REINPLACE_CMD} -i '' \ -e "s|#!/usr/bin/env node|#!${PREFIX}/bin/node|" \ ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/dist/index.js # set exec bit @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/dist/index.js .include diff --git a/misc/github-copilot-cli/Makefile b/misc/github-copilot-cli/Makefile index 8ed6826fc0e4..f66202f29347 100644 --- a/misc/github-copilot-cli/Makefile +++ b/misc/github-copilot-cli/Makefile @@ -1,144 +1,144 @@ PORTNAME= github-copilot-cli DISTVERSION= 0.0.354 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc # machine-learning DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ ${NODE_HEADERS}${EXTRACT_SUFX} DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= GitHub Copilot CLI brings the power of the coding agent to terminal WWW= https://github.com/github/copilot-cli ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= binaries are installed in folders with architecture encoded in them, patches are welcome to fix this limitation FETCH_DEPENDS= npm:www/npm \ jq:textproc/jq BUILD_DEPENDS= npm:www/npm \ 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 python:build WRKSRC= ${WRKDIR}/copilot-${DISTVERSION} PACKAGE_NAME= @github/copilot NODE_HEADERS= node-v22.19.0-headers JS_ARCH= ${ARCH:S/amd64/x64/:S/aarch64/arm64/} PLIST_SUB= JS_ARCH=${JS_ARCH} DD= ${DISTDIR}/${DIST_SUBDIR} FETCH_SCRIPT= ${PORTSDIR}/Tools/scripts/npmjs-fetch-with-dependencies.sh DEP_MODULES= pty sharp keytar node_addon_api dep_pty_npm_name= @devm33/node-pty dep_pty_version= 1.0.9 dep_sharp_npm_name= sharp dep_sharp_version= 0.34.4 dep_keytar_npm_name= keytar dep_keytar_version= 7.9.0 dep_node_addon_api_npm_name= node-addon-api dep_node_addon_api_version= 8.5.0 .for dep in ${DEP_MODULES} DISTFILES+= ${dep:S/_/-/g}-${dep_${dep}_version}${EXTRACT_SUFX} .endfor do-fetch: @if ! [ -f ${DD}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ] || \ ! [ -f ${DD}/${NODE_HEADERS}${EXTRACT_SUFX} ] || \ ! [ -f ${DD}/pty-${dep_pty_version}${EXTRACT_SUFX} ] || \ ! [ -f ${DD}/sharp-${dep_sharp_version}${EXTRACT_SUFX} ] || \ ! [ -f ${DD}/keytar-${dep_keytar_version}${EXTRACT_SUFX} ] || \ ! [ -f ${DD}/node-addon-api-${dep_node_addon_api_version}${EXTRACT_SUFX} ]; then \ ${MKDIR} ${DD} && \ ${ECHO} "====> Fetching ${NODE_HEADERS}${EXTRACT_SUFX}" && \ ${FETCH_CMD} -q https://nodejs.org/download/release/v22.19.0/${NODE_HEADERS}${EXTRACT_SUFX} -o ${DD}/${NODE_HEADERS}${EXTRACT_SUFX} && \ ${ECHO} "====> Fetching dependency pty" && \ ${SETENV} TMPDIR=${WRKDIR} ${FETCH_SCRIPT} \ ${dep_pty_npm_name} ${dep_pty_version} \ ${FILESDIR}/package-lock-pty.json \ ${DD}/pty-${dep_pty_version}${EXTRACT_SUFX} && \ ${ECHO} "====> Fetching dependency sharp" && \ ${SETENV} TMPDIR=${WRKDIR} ${FETCH_SCRIPT} \ ${dep_sharp_npm_name} ${dep_sharp_version} \ ${FILESDIR}/package-lock-sharp.json \ ${DD}/sharp-${dep_sharp_version}${EXTRACT_SUFX} && \ ${ECHO} "====> Fetching dependency keytar" && \ ${SETENV} TMPDIR=${WRKDIR} ${FETCH_SCRIPT} \ ${dep_keytar_npm_name} ${dep_keytar_version} \ ${FILESDIR}/package-lock-keytar.json \ ${DD}/keytar-${dep_keytar_version}${EXTRACT_SUFX} && \ ${ECHO} "====> Fetching dependency node-addon-api" && \ ${SETENV} TMPDIR=${WRKDIR} ${FETCH_SCRIPT} \ ${dep_node_addon_api_npm_name} ${dep_node_addon_api_version} \ ${FILESDIR}/package-lock-node-addon-api.json \ ${DD}/node-addon-api-${dep_node_addon_api_version}${EXTRACT_SUFX} && \ ${ECHO} "====> Fetching ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}" && \ ${SETENV} TMPDIR=${WRKDIR} ${FETCH_SCRIPT} \ ${PACKAGE_NAME} ${DISTVERSION} \ ${FILESDIR}/package-lock.json \ ${DD}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}; \ fi post-extract: # Extract node-addon-api and install into sharp/node_modules # the tarball has a nested structure, so we need to move the inner directory @${MV} \ ${WRKDIR}/${dep_node_addon_api_npm_name}-${dep_node_addon_api_version}/node_modules/${dep_node_addon_api_npm_name} \ ${WRKDIR}/${dep_sharp_npm_name}-${dep_sharp_version}/node_modules/${dep_sharp_npm_name}/node_modules/node-addon-api do-build: # Create directory for FreeBSD prebuilds @${MKDIR} ${WRKSRC}/node_modules/${PACKAGE_NAME}/prebuilds/freebsd-x64 @${ECHO_MSG} "====> Building pty..." @cd ${WRKDIR}/node-pty-${dep_pty_version}/node_modules/${dep_pty_npm_name} && \ ${SETENV} HOME=${WRKDIR} CFLAGS="-I${LOCALBASE}/include" CXXFLAGS="-I${LOCALBASE}/include" \ npm rebuild --nodedir=${LOCALBASE} && \ ${CP} build/Release/pty.node ${WRKSRC}/node_modules/${PACKAGE_NAME}/prebuilds/freebsd-x64/ @${ECHO_MSG} "====> Building sharp..." @cd ${WRKDIR}/sharp-${dep_sharp_version}/node_modules/${dep_sharp_npm_name}/src && \ ${SETENV} HOME=${WRKDIR} PYTHON=${PYTHON_CMD} CXXFLAGS="-I${LOCALBASE}/include" \ node-gyp configure build --nodedir=${WRKDIR}/node-v22.19.0 && \ ${MKDIR} ${WRKSRC}/node_modules/@img/sharp-freebsd-x64 && \ ${CP} build/Release/sharp-freebsd-x64.node ${WRKSRC}/node_modules/@img/sharp-freebsd-x64/sharp.node @${ECHO_MSG} "====> Building keytar..." @cd ${WRKDIR}/keytar-${dep_keytar_version}/node_modules/${dep_keytar_npm_name} && \ ${SETENV} HOME=${WRKDIR} CFLAGS="-I${LOCALBASE}/include" CXXFLAGS="-I${LOCALBASE}/include" \ npm rebuild --nodedir=${LOCALBASE} && \ ${CP} build/Release/keytar.node ${WRKSRC}/node_modules/${PACKAGE_NAME}/prebuilds/freebsd-x64/ do-install: # install files cd ${WRKSRC} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib # remove *.node files for other OSes @${FIND} ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME} -name "*\\.node" | \ ${GREP} -v freebsd | \ ${XARGS} ${RM} # remove files for other OSes @${FIND} ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME} -name "*linux*" | ${XARGS} ${RM} -r @${FIND} ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME} -name "*win32*" | ${XARGS} ${RM} -r @${FIND} ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME} -name "*darwin*" | ${XARGS} ${RM} -r # remove unnecessary files @${FIND} ${STAGEDIR}${PREFIX}/lib -type f -and -name "*package*.json" -delete @${FIND} ${STAGEDIR}${PREFIX}/lib -type f -and -name "README.md" -delete @${FIND} ${STAGEDIR}${PREFIX}/lib -type f -and -name "LICENSE.md" -delete # update shebang to use system node @${REINPLACE_CMD} -i '' \ -e "s|#!/usr/bin/env node|#!${PREFIX}/bin/node|" \ ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/index.js # set exec bit @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/index.js # create symlink in bin @${RLN} -s ${STAGEDIR}${PREFIX}/lib/node_modules/.bin/copilot ${STAGEDIR}${PREFIX}/bin/copilot # strip binaries @${FIND} ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME} -path "*/build/*" -name *.node | ${XARGS} ${STRIP_CMD} .include diff --git a/misc/github-copilot-language-server/Makefile b/misc/github-copilot-language-server/Makefile index 65a602b5b0d5..5679e816cbbb 100644 --- a/misc/github-copilot-language-server/Makefile +++ b/misc/github-copilot-language-server/Makefile @@ -1,41 +1,42 @@ PORTNAME= github-copilot-language-server DISTVERSION= 1.380.0 +PORTREVISION= 1 CATEGORIES= misc # machine-learning DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= yuri@FreeBSD.org COMMENT= GitHub Copilot Language Server WWW= https://github.com/github/copilot-language-server-release FETCH_DEPENDS= npm:www/npm BUILD_DEPENDS= npm:www/npm USES= nodejs:run PACKAGE_NAME= @github/copilot-language-server do-fetch: @if ! [ -f ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ]; then \ ${ECHO} "Fetching ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}" && \ ${MKDIR} ${WRKDIR}/.npm/_npx/c463d28440264a05 && \ ${SETENV} HOME=${WRKDIR} npm install --ignore-scripts --prefix ${WRKSRC} -g ${PACKAGE_NAME}@${DISTVERSION} && \ ${FIND} ${WRKDIR} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \ (cd ${WRKDIR} && ${FIND} ${PORTNAME}-${DISTVERSION} -print0 | LC_ALL=C ${SORT} -z | \ ${TAR} czf ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T -); \ fi do-build: @${SETENV} HOME=${WRKDIR} npm rebuild --prefix ${WRKSRC} -g ${PACKAGE_NAME}@${DISTVERSION} do-install: # install files cd ${WRKSRC} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX} # update @${REINPLACE_CMD} -i '' \ -e "s|#!/usr/bin/env node|#!${PREFIX}/bin/node|" \ ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/dist/language-server.js # set exec bit @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/dist/language-server.js .include diff --git a/misc/nanocoder/Makefile b/misc/nanocoder/Makefile index b2d639e4e530..f4979d8b835a 100644 --- a/misc/nanocoder/Makefile +++ b/misc/nanocoder/Makefile @@ -1,50 +1,51 @@ PORTNAME= nanocoder DISTVERSION= 1.16.1 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Local-first coding agent running in your terminal WWW= https://github.com/Nano-Collective/nanocoder LICENSE= MIT FETCH_DEPENDS= npm:www/npm \ jq:textproc/jq BUILD_DEPENDS= npm:www/npm USES= nodejs:run PACKAGE_NAME= @nanocollective/nanocoder FETCH_SCRIPT= ${PORTSDIR}/Tools/scripts/npmjs-fetch-with-dependencies.sh NO_ARCH= yes do-fetch: @if ! [ -f ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ]; then \ ${MKDIR} ${DISTDIR} && \ ${ECHO} "====> Fetching ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}" && \ ${SETENV} TMPDIR=${WRKDIR} ${FETCH_SCRIPT} \ ${PACKAGE_NAME} ${DISTVERSION} \ ${FILESDIR}/package-lock.json \ ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}; \ fi do-build: @cd ${WRKSRC} && \ npm rebuild --nodedir=${LOCALBASE} do-install: # install files cd ${WRKSRC} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib # update shebang to use system node @${REINPLACE_CMD} -i '' \ -e "s|#!/usr/bin/env node|#!${PREFIX}/bin/node|" \ ${STAGEDIR}${PREFIX}/lib/node_modules/@nanocollective/nanocoder/node_modules/cli-highlight/dist/cli.js # set exec bit @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/node_modules/.bin/${PORTNAME} # create symlink in bin @${RLN} -s ${STAGEDIR}${PREFIX}/lib/node_modules/.bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include diff --git a/textproc/write-good/Makefile b/textproc/write-good/Makefile index 16c0ab8eea67..44595c9c05cc 100644 --- a/textproc/write-good/Makefile +++ b/textproc/write-good/Makefile @@ -1,77 +1,77 @@ PORTNAME= write-good DISTVERSIONPREFIX= v DISTVERSION= 1.0.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= textproc MASTER_SITES= LOCAL/0mp/:npm DISTFILES= ${_NPM_DISTFILES} MAINTAINER= 0mp@FreeBSD.org COMMENT= Naive linter for English prose WWW= https://github.com/btford/write-good LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= npm:www/npm USES= nodejs:run USE_GITHUB= yes GH_ACCOUNT= btford NO_ARCH= yes NO_BUILD= yes OPTIONS_DEFINE= DOCS PORTDOCS= README.md .if !defined(MAINTAINER_MODE) _NPM_DISTFILES= ${_NPM_DISTFILE_cache}:npm \ ${_NPM_DISTFILE_modules}:npm .endif _NPM_DISTFILE_cache= ${PORTNAME}-${DISTVERSION}.cache${EXTRACT_SUFX} _NPM_DISTFILE_modules= ${PORTNAME}-${DISTVERSION}.modules${EXTRACT_SUFX} _UNNECESSARY_FILES= test .dockerignore \ .eslintrc .gitignore .npmignore .pre-commit-hooks.yaml \ .travis.yml Dockerfile LICENSE README.md _LIBEXEC_REL= libexec/${PORTNAME} _LIBEXEC= ${STAGEDIR}${PREFIX}/${_LIBEXEC_REL} do-install: @${MKDIR} ${_LIBEXEC} (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${_LIBEXEC}) ${RLN} ${_LIBEXEC}/bin/${PORTNAME}.js ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${RLN} ${_LIBEXEC}/bin/${PORTNAME}.js ${STAGEDIR}${PREFIX}/bin/writegood ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/writegood (cd ${_LIBEXEC} && ${RM} -r ${_UNNECESSARY_FILES}) post-install: # Build plist automatically to avoid listing all the node_modules files. (cd ${STAGEDIR}${PREFIX} && \ ${FIND} ${_LIBEXEC_REL}/node_modules -not -type d >> ${TMPPLIST}) post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} # - Requires npm (e.g., from www/npm). # - Remember to set MAINTAINER_MODE, # e.g., "make -DMAINTAINER_MODE _npm-regenerate". _npm-regenerate: ${MAKE} clean patch (cd ${WRKSRC} && ${SETENV} ${_NPM_ENV} npm install --ignore-scripts) ${FIND} ${WRKDIR}/.npm ${WRKSRC}/node_modules -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; (cd ${WRKDIR} && \ ${FIND} .npm/_cacache -print0 | LC_ALL=C ${SORT} -z | \ ${TAR} czf ${WRKDIR}/${_NPM_DISTFILE_cache} --format=ustar --uid 0 --gid 0 --options gzip:!timestamp --no-recursion --null -T -) (cd ${WRKDIR} && \ ${FIND} ${WRKSRC:T}/node_modules -print0 | LC_ALL=C ${SORT} -z | \ ${TAR} czf ${WRKDIR}/${_NPM_DISTFILE_modules} --format=ustar --uid 0 --gid 0 --options gzip:!timestamp --no-recursion --null -T -) scp ${WRKDIR}/${_NPM_DISTFILE_cache} ${WRKDIR}/${_NPM_DISTFILE_modules} 0mp@freefall.freebsd.org:public_distfiles/ cp ${WRKDIR}/${_NPM_DISTFILE_cache} ${WRKDIR}/${_NPM_DISTFILE_modules} ${DISTDIR}/ .include diff --git a/www/csso/Makefile b/www/csso/Makefile index 0355c6c99b3a..169bdbd0eba4 100644 --- a/www/csso/Makefile +++ b/www/csso/Makefile @@ -1,29 +1,29 @@ PORTNAME= csso PORTVERSION= 1.3.9 DISTVERSIONPREFIX= v -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= www MASTER_SITES= http://nivit.altervista.org/FreeBSD/ports/distfiles/ MAINTAINER= nivit@FreeBSD.org COMMENT= CSS optimizer WWW= https://github.com/css/csso/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/MIT-LICENSE.txt USES= nodejs:run USE_GITHUB= yes GH_ACCOUNT= css NO_ARCH= yes NO_BUILD= yes do-install: @${MKDIR} ${STAGEDIR}${DATADIR}/bin ${INSTALL_DATA} ${WRKSRC}/USAGE ${WRKSRC}/VERSION ${STAGEDIR}${DATADIR}/ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${DATADIR}/bin/${PORTNAME} ${LN} -sf ${DATADIR}/bin/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME} cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/lib .include diff --git a/www/filepizza/Makefile b/www/filepizza/Makefile index 33522c14bda7..cbf5203de71d 100644 --- a/www/filepizza/Makefile +++ b/www/filepizza/Makefile @@ -1,39 +1,40 @@ PORTNAME= filepizza DISTVERSION= 2.0.20250804 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= LOCAL/dtxdf/${PORTNAME}/ DISTFILES= ${PORTNAME}-${GITID}${EXTRACT_SUFX} MAINTAINER= dtxdf@FreeBSD.org COMMENT= Peer-to-peer file transfers in your browser WWW= https://file.pizza LICENSE= BSD3CLAUSE OFL11 LICENSE_COMB= multi USES= nodejs:lts,run USE_RC_SUBR= ${PORTNAME} NO_ARCH= yes NO_BUILD= yes SUB_LIST= HOMEDIR=${FILEPIZZA_HOMEDIR} \ USER=${FILEPIZZA_USER} WRKSRC= ${WRKDIR}/${PORTNAME}-files PLIST_SUB= HOMEDIR=${FILEPIZZA_HOMEDIR} GITID= 3bd340d24bb86938450c1eb9e66ae601167b1bba FILEPIZZA_HOMEDIR= ${WWWDIR} FILEPIZZA_USER= www do-install: @${MKDIR} ${STAGEDIR}${FILEPIZZA_HOMEDIR} @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${FILEPIZZA_HOMEDIR} post-install: ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.env ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.env .include diff --git a/www/homepage/Makefile b/www/homepage/Makefile index 7d1863c4d63a..bba346f9df8c 100644 --- a/www/homepage/Makefile +++ b/www/homepage/Makefile @@ -1,42 +1,43 @@ PORTNAME= homepage DISTVERSION= 1.5.0 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= LOCAL/dtxdf/${PORTNAME}/ DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= dtxdf@FreeBSD.org COMMENT= Highly customizable homepage with service API integrations WWW= https://gethomepage.dev LICENSE= GPLv3 USES= nodejs:lts,run USE_RC_SUBR= ${PORTNAME} NO_ARCH= yes NO_BUILD= yes SUB_LIST= HOMEDIR=${HOMEPAGE_HOMEDIR} \ USER=${HOMEPAGE_USER} WRKSRC= ${WRKDIR}/${PORTNAME}-files PLIST_SUB= GROUP=${HOMEPAGE_GROUP} \ USER=${HOMEPAGE_USER} \ HOMEDIR=${HOMEPAGE_HOMEDIR} HOMEPAGE_HOMEDIR= ${WWWDIR} HOMEPAGE_CONFIGDIR= ${HOMEPAGE_HOMEDIR}/config HOMEPAGE_USER= www HOMEPAGE_GROUP= www do-install: @${MKDIR} ${STAGEDIR}${HOMEPAGE_HOMEDIR} @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${HOMEPAGE_HOMEDIR} post-install: ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.env ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.env @${MKDIR} ${STAGEDIR}${HOMEPAGE_CONFIGDIR} @${MKDIR} ${STAGEDIR}${HOMEPAGE_CONFIGDIR}/logs .include diff --git a/www/node/Makefile b/www/node/Makefile index ae96ffed3b5c..4a423dca7ee2 100644 --- a/www/node/Makefile +++ b/www/node/Makefile @@ -1,15 +1,15 @@ PORTNAME= node PORTVERSION= ${NODEJS_PORTVERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MAINTAINER= sunpoet@FreeBSD.org COMMENT= V8 JavaScript for client and server (meta port) WWW= https://nodejs.org/ \ https://github.com/nodejs/node USES= metaport nodejs:run .include .include "${.CURDIR}/../node${NODEJS_VERSION}/Makefile.version" .include diff --git a/www/p5-Nodejs-Util/Makefile b/www/p5-Nodejs-Util/Makefile index a41447bae4ea..3b8d11ae9535 100644 --- a/www/p5-Nodejs-Util/Makefile +++ b/www/p5-Nodejs-Util/Makefile @@ -1,28 +1,28 @@ PORTNAME= Nodejs-Util PORTVERSION= 0.012 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= CPAN:PERLANCAR PKGNAMEPREFIX= p5- MAINTAINER= sunpoet@FreeBSD.org COMMENT= Utilities related to Node.js WWW= https://metacpan.org/dist/Nodejs-Util LICENSE= ART10 GPLv1+ LICENSE_COMB= dual LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= p5-File-Which>=0:sysutils/p5-File-Which \ p5-IPC-System-Options>=0.330:devel/p5-IPC-System-Options TEST_DEPENDS= p5-File-Slurper>=0:devel/p5-File-Slurper \ p5-File-chdir>=0:devel/p5-File-chdir USES= nodejs:run perl5 USE_PERL5= configure NO_ARCH= yes .include diff --git a/www/tailwindcss3/Makefile b/www/tailwindcss3/Makefile index c246057a384c..d8d63c48385f 100644 --- a/www/tailwindcss3/Makefile +++ b/www/tailwindcss3/Makefile @@ -1,57 +1,58 @@ PORTNAME= tailwindcss3 DISTVERSION= 3.4.17 +PORTREVISION= 1 CATEGORIES= www devel MASTER_SITES= LOCAL/dch/${PORTNAME}/:npm DISTFILES= ${PORTNAME}-npm-cache-${DISTVERSION}${EXTRACT_SUFX}:npm MAINTAINER= dch@FreeBSD.org COMMENT= Utility-first CSS framework with npm dependencies WWW= https://tailwindcss.com/ LICENSE= MIT ONLY_FOR_ARCHS= amd64 aarch64 # causes runaway builds in pkg cluster BUILD_DEPENDS= npm:www/npm USES= nodejs:run tar:txz CONFLICTS_INSTALL= tailwindcss* _DAISYUI_VER= 4.12.24 _FORMS_VER= 0.5.10 _POSTCSS_VER= 8.4.49 _PREFIX_VER= 10.4.20 _TAILWIND_VER= ${DISTVERSION} _NPM_CACHE= ${WRKDIR}/cache _NPM_ARCHIVE= ${PORTNAME}-npm-cache-${DISTVERSION}${EXTRACT_SUFX} do-extract: @${MKDIR} ${WRKDIR}/cache ${TAR} -xf ${DISTDIR}/${_NPM_ARCHIVE} -C ${_NPM_CACHE} do-build: # because nodejs is fiddly we can't build & then install .if !defined(MAINTAINER_MODE) ${ECHO_CMD} offline=true > ${WRKDIR}/.npmrc .endif do-install: (cd ${WRKDIR} && \ ${SETENV} HOME=${WRKDIR} npm install --global --no-audit \ --no-fund --no-prune --cache ${_NPM_CACHE} --prefer-offline \ --prefix=${STAGEDIR}${PREFIX} autoprefixer@${_PREFIX_VER} \ tailwindcss@${_TAILWIND_VER} postcss@${_POSTCSS_VER} \ @tailwindcss/forms@${_FORMS_VER} daisyui@${_DAISYUI_VER}) # remove files already present in node, npm, or yarn packages .for m in corepack npm ${RM} -rf ${STAGEDIR}${PREFIX}/lib/node_modules/${m} .endfor _tarball: do-install ${TAR} -caf ${DISTDIR}/${_NPM_ARCHIVE} -C ${_NPM_CACHE} _cacache ${CHMOD} 644 ${DISTDIR}/${_NPM_ARCHIVE} @${ECHO_MSG} Ready to upload tarball to freefall distfiles directory: @${ECHO_MSG} ${DISTDIR}/${_NPM_ARCHIVE} @${ECHO_MSG} scp ${DISTDIR}/${_NPM_ARCHIVE} dch@freefall.freebsd.org:public_distfiles/${PORTNAME}/ .include