Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mesonlsp #21812

Open
6 tasks done
Freed-Wu opened this issue Sep 1, 2024 · 5 comments · May be fixed by #21826
Open
6 tasks done

Add mesonlsp #21812

Freed-Wu opened this issue Sep 1, 2024 · 5 comments · May be fixed by #21826

Comments

@Freed-Wu
Copy link
Contributor

Freed-Wu commented Sep 1, 2024

Package name

mesonlsp

Brief description of package

An unofficial, unendorsed language server for meson written in C++

URL for package's homepage

https://github.com/JCWasmx86/mesonlsp

Provide a basic test case to validate the package's functionality.

mesonlsp --version

MINGW environments where you need the package

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

No response

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Sep 1, 2024

# Maintainer: Wu, Zhenyu <[email protected]>

_realname=mesonlsp
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=4.3.3
pkgrel=1
pkgdesc='Meson language server (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url=https://github.com/JCWasmx86/mesonlsp
license=(GPL-3.0-or-later)
depends=(
  "${MINGW_PACKAGE_PREFIX}-curl"
  git
  "${MINGW_PACKAGE_PREFIX}-libarchive"
  mercurial
  patch
  "${MINGW_PACKAGE_PREFIX}-pkgconf"
  subversion
  "${MINGW_PACKAGE_PREFIX}-tree-sitter"
)
makedepends=(
  "${MINGW_PACKAGE_PREFIX}-gtest"
  "${MINGW_PACKAGE_PREFIX}-meson"
  "${MINGW_PACKAGE_PREFIX}-ninja"
  "${MINGW_PACKAGE_PREFIX}-nlohmann-json"
  "${MINGW_PACKAGE_PREFIX}-python-lsprotocol"
  "${MINGW_PACKAGE_PREFIX}-python-pygls"
)
source=(
  "git+$url.git#tag=v$pkgver"
  "git+https://github.com/ada-url/ada#tag=v2.7.4"
  "sha256::git+https://github.com/amosnier/sha-2#commit=49265c656f9b370da660531db8cc6bf0a2e110a6"
  git+https://github.com/JCWasmx86/muon
  git+https://github.com/JCWasmx86/tree-sitter-ini
  git+https://github.com/JCWasmx86/tree-sitter-meson
)
b2sums=('eb85569f5d18256247d057e7e269258ae71d09fde64c39812cca841b848fda5250f7213804c10c9f0ea65aad834e1c1f84bee50cb98047cce2915922a71b266c'
        'a1bb73cac9898267aec9b019857581f2895351f3014727a297654a3c55a32d69e480e93c53a0089f342268049e0f23e9ba6c0ae1cefa703795e2655eacc74f8a'
        'e4e59dcd348ea3ec9fc6ce7f62f944b8f5b40370c5738e6453e45aa201eadb9eb0b58d9d08e7068b8b1a4a6c90e94d58fb7df81337124c8e96e6e418fce488ae'
        'SKIP'
        'SKIP'
        'SKIP')

build() {
  MSYS2_ARG_CONV_EXCL="--prefix=" \
    meson setup \
      --prefix="${MINGW_PREFIX}" \
      --wrap-mode=nodownload \
      --auto-features=enabled \
      --buildtype=plain \
      "build-${MSYSTEM}" \
      "${_realname}"

  meson compile -C "build-${MSYSTEM}"
}

check() {
  meson test -C "build-${MSYSTEM}"
}

package() {
  meson install -C "build-${MSYSTEM}" --destdir "${pkgdir}"

  install -Dm644 "${srcdir}/${_realname}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
}
mesonlsp/meson.build:73:23: ERROR: Automatic wrap-based subproject downloading is disabled

@ognevny
Copy link
Collaborator

ognevny commented Sep 1, 2024

add export MESON_PACKAGE_CACHE_DIR="${srcdir}" before setup

@ognevny
Copy link
Collaborator

ognevny commented Sep 1, 2024

also -Dbenchmarks=false -Duse_own_tree_sitter=false would be useful

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Sep 1, 2024

@ognevny
Copy link
Collaborator

ognevny commented Sep 1, 2024

try to add it as separate package

Freed-Wu added a commit to Freed-Wu/MINGW-packages that referenced this issue Sep 1, 2024
@Freed-Wu Freed-Wu linked a pull request Sep 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants