head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.4 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.2 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2025.11.15.12.08.35; author ryoon; state Exp; branches; next 1.1; commitid bHlsUh1q6xeO4EiG; 1.1 date 2025.08.16.01.49.03; author ryoon; state Exp; branches; next ; commitid swJmDEBneJ3FzT6G; desc @@ 1.2 log @lang/clojure-leiningen: Update to 2.12.0 * Fix broken SITES for LEINJAR. Changelog: ## 2.12.0 / 2025-09-12 This will be the last release of Leiningen that is still mirrored on Github; future releases will be Codeberg-only. * Use `:managed-dependencies` instead of `:exclusions` for version ranges. (Phil Hagelberg) * Add `:plugin-tree-data` subcommand to deps task. (Gabriel Giussi) * Fix a bug in `:active-profiles` in middleware plugins. (Rob Browning) * Update to nREPL 1.3.0 (oyakushev) * Update Clojure version (Justin Polchlopek) @ text @$NetBSD: patch-bin_lein-pkg,v 1.1 2025/08/16 01:49:03 ryoon Exp $ * POSIX shell portability. --- bin/lein-pkg.orig 2025-09-12 17:10:19.000000000 +0000 +++ bin/lein-pkg @@@@ -6,39 +6,39 @@@@ export LEIN_VERSION="2.12.0" -if [[ "$CLASSPATH" != "" ]]; then +if [ "$CLASSPATH" != "" ]; then cat <<-'EOS' 1>&2 WARNING: You have $CLASSPATH set, probably by accident. It is strongly recommended to unset this before proceeding. EOS fi -if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then +if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]; then delimiter=";" else delimiter=":" fi -if [[ "$OSTYPE" == "cygwin" ]]; then +if [ "$OSTYPE" = "cygwin" ]; then cygwin=true else cygwin=false fi -function msg { +msg() { echo "$@@" 1>&2 } -function command_not_found { +command_not_found() { msg "Leiningen couldn't find $1 in your \$PATH ($PATH), which is required." exit 1 } -function make_native_path { +make_native_path() { # ensure we have native paths - if $cygwin && [[ "$1" == /* ]]; then + if $cygwin && [ "$1" = /* ]; then echo -n "$(cygpath -wp "$1")" - elif [[ "$OSTYPE" == "msys" && "$1" == /?/* ]]; then + elif [ "$OSTYPE" = "msys" ] && [ "$1" = /?/* ]; then echo -n "$(sh -c "(cd $1 2/dev/null 2>&1; then + if type sha256sum >/dev/null 2>&1; then export SHASUM_CMD="sha256sum" - elif type -p shasum >/dev/null 2>&1; then + elif type shasum >/dev/null 2>&1; then export SHASUM_CMD="shasum --algorithm 256" - elif type -p sha256 >/dev/null 2>&1; then + elif type sha256 >/dev/null 2>&1; then export SHASUM_CMD="sha256 -q" else command_not_found sha256sum @@@@ -220,16 +220,16 @@@@ grep -E -q '^\s*:eval-in\s+:classloader\ run_from_checkout "$1" -if [ ! -x "$JAVA_CMD" ] && ! type -f java >/dev/null +if [ ! -x "$JAVA_CMD" ] && ! type @@PKG_JVM@@-java >/dev/null then msg "Leiningen couldn't find 'java' executable, which is required." msg "Please either set JAVA_CMD or put java (>=1.6) in your \$PATH ($PATH)." exit 1 fi -export LEIN_JAVA_CMD="${LEIN_JAVA_CMD:-${JAVA_CMD:-java}}" +export LEIN_JAVA_CMD="${LEIN_JAVA_CMD:-${JAVA_CMD:-@@PKG_JVM@@-java}}" -if [[ -z "${DRIP_INIT+x}" && "$(basename "$LEIN_JAVA_CMD")" == *drip* ]]; then +if [ -z "${DRIP_INIT+x}" ] && [ "$(basename "$LEIN_JAVA_CMD")" = *drip* ]; then export DRIP_INIT="$(printf -- '-e\n(require (quote leiningen.repl))')" export DRIP_INIT_CLASS="clojure.main" fi @ 1.1 log @lang/clojure-leiningen: import clojure-leiningen-2.11.2 Leiningen is for automating Clojure projects without setting your hair on fire. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- bin/lein-pkg.orig 2024-02-14 00:41:31.000000000 +0000 d9 1 a9 1 export LEIN_VERSION="2.11.2" d90 1 a90 1 @@@@ -162,9 +162,9 @@@@ done d102 1 a102 1 @@@@ -198,17 +198,17 @@@@ BIN_DIR="$(dirname "$SCRIPT")" d124 1 a124 1 @@@@ -221,16 +221,16 @@@@ grep -E -q '^\s*:eval-in\s+:classloader\ @