Github messages for voidlinux
 help / color / mirror / Atom feed
From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: clojure-lsp-2023.08.06
Date: Sat, 24 Feb 2024 09:18:37 +0100	[thread overview]
Message-ID: <20240224081837.7B0F424BA2@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44553@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 840 bytes --]

There is an updated pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages clj-kondo
https://github.com/void-linux/void-packages/pull/44553

New package: clojure-lsp-2023.08.06
#### Description
[Clj-kondo](https://github.com/clj-kondo/clj-kondo) performs static analysis on Clojure, ClojureScript and EDN, without the need of a running REPL.

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

A patch file from https://github.com/void-linux/void-packages/pull/44553.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-clj-kondo-44553.patch --]
[-- Type: text/x-diff, Size: 2835 bytes --]

From ad54cb9dc25094f6269d2b58947470cbdf0655aa Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sat, 22 Jul 2023 01:29:03 +0530
Subject: [PATCH] New package: clojure-lsp-2024.02.01

---
 srcpkgs/clojure-lsp/patches/remove-pgo.patch | 11 +++++++
 srcpkgs/clojure-lsp/template                 | 32 ++++++++++++++++++++
 srcpkgs/clojure-lsp/update                   |  2 ++
 3 files changed, 45 insertions(+)
 create mode 100644 srcpkgs/clojure-lsp/patches/remove-pgo.patch
 create mode 100644 srcpkgs/clojure-lsp/template
 create mode 100644 srcpkgs/clojure-lsp/update

diff --git a/srcpkgs/clojure-lsp/patches/remove-pgo.patch b/srcpkgs/clojure-lsp/patches/remove-pgo.patch
new file mode 100644
index 00000000000000..ad51249b2023de
--- /dev/null
+++ b/srcpkgs/clojure-lsp/patches/remove-pgo.patch
@@ -0,0 +1,11 @@
+--- a/cli/build.clj
++++ b/cli/build.clj
+@@ -134,8 +134,6 @@
+                         "--features=clj_easy.graal_build_time.InitClojureClasses"
+                         (when-not (fs/windows?) "-march=compatibility")
+                         "-O1"
+-                        (when-not (or (:pgo-instrument opts)
+-                                      (fs/windows?)) "--pgo=graalvm/default.iprof")
+                         (or (System/getenv "CLOJURE_LSP_XMX")
+                             "-J-Xmx8g")
+                         (when (= "true" (System/getenv "CLOJURE_LSP_STATIC"))
diff --git a/srcpkgs/clojure-lsp/template b/srcpkgs/clojure-lsp/template
new file mode 100644
index 00000000000000..95ad373642949d
--- /dev/null
+++ b/srcpkgs/clojure-lsp/template
@@ -0,0 +1,32 @@
+# Template file for 'clojure-lsp'
+pkgname=clojure-lsp
+version=2024.02.01
+revision=1
+_ver_hms="11.01.59"
+hostmakedepends="mandrel leiningen babashka"
+makedepends="zlib-devel"
+short_desc="Clojure & ClojureScript language server implementation"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://clojure-lsp.io"
+changelog="https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/master/CHANGELOG.md"
+distfiles="https://github.com/clojure-lsp/clojure-lsp/archive/refs/tags/${version}-${_ver_hms}.tar.gz"
+checksum=fd0b36d209ed677ad6a68fd2a982fd60d0871b4605d24ed25e44a3457f6e1ccb
+nocross="mandrel"
+
+do_build() {
+	export GRAALVM_HOME=/usr/lib/jvm/mandrel21
+	export PATH="/usr/libexec/chroot-git:${PATH}"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		export CLOJURE_LSP_STATIC=true
+		export CLOJURE_LSP_MUSL=true
+	fi
+
+	bb native-cli
+}
+
+do_install() {
+	vbin clojure-lsp
+	vlicense LICENSE
+}
diff --git a/srcpkgs/clojure-lsp/update b/srcpkgs/clojure-lsp/update
new file mode 100644
index 00000000000000..862fef487eb04a
--- /dev/null
+++ b/srcpkgs/clojure-lsp/update
@@ -0,0 +1,2 @@
+site="https://clojure-lsp.io/CHANGELOG/"
+pattern="\K\d{4}\.\d{2}\.\d{2}(?=-\d{2}\.\d{2}\.\d{2})"

  parent reply	other threads:[~2024-02-24  8:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21 19:40 [PR PATCH] New package: clj-kondo-2023.05.26 icp1994
2023-07-22  5:45 ` [PR PATCH] [Updated] " icp1994
2023-07-22  6:27 ` New package: clojure-lsp-2023.07.01 icp1994
2023-08-18 10:50 ` [PR PATCH] [Updated] " icp1994
2023-11-17  1:46 ` New package: clojure-lsp-2023.08.06 github-actions
2023-11-23  7:07 ` [PR PATCH] [Updated] " icp1994
2024-02-23  1:44 ` github-actions
2024-02-24  8:18 ` icp1994 [this message]
2024-04-07 18:55 ` [PR PATCH] [Updated] New package: clojure-lsp-2024.02.01 icp1994
2024-04-23 18:53 ` [PR PATCH] [Updated] New package: clojure-lsp-2024.03.31 icp1994

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240224081837.7B0F424BA2@inbox.vuxu.org \
    --to=icp1994@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).