[PKGBUILD] Add Tree-Sitter option in Emacs PKGBUILD

This commit is contained in:
Lucien Cartier-Tilet 2022-12-07 16:06:30 +01:00
parent 90c42309c0
commit 47235d5040
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 17 additions and 1 deletions

View File

@ -53,6 +53,10 @@ XWIDGETS="YES" # Use GTK+ widgets pulled from webkit2gtk. Usable.
DOCS_HTML="YES" # Generate and install html documentation.
DOCS_PDF= # Generate and install pdf documentation.
NOGZ= # Don't compress .el files.
TREESITTER="YES" # Enable Emacs' native tree-sitter implementation.
# It is necessary to also install tree-sitter
# packages per language, such as tree-sitter-c for
# c-ts-mode.
################################################################################
################################################################################
@ -61,7 +65,7 @@ if [[ $CLI == "YES" ]] ; then
else
pkgname="emacs-phundrak-git"
fi
pkgver=29.0.50.162035
pkgver=30.0.50.162621
pkgrel=1
pkgdesc="GNU Emacs. Development master branch with Phundraks tweaks."
arch=('x86_64')
@ -108,6 +112,14 @@ if [[ $CLANG == "YES" ]]; then
makedepends+=( 'clang' 'lld' 'llvm') ;
fi
if [[ $TREESITTER == "YES" ]]; then
if [[ $CLI == "YES" ]]; then
depends_nox+=( 'tree-sitter' );
else
depends+=( 'tree-sitter' );
fi
fi
if [[ $JIT == "YES" ]]; then
if [[ $CLI == "YES" ]]; then
depends_nox+=( 'libgccjit' );
@ -285,6 +297,10 @@ if [[ $NOGZ == "YES" ]]; then
_conf+=( '--without-compress-install' );
fi
if [[ $TREESITTER == "YES" ]]; then
_conf+=( '--with-tree-sitter' );
fi
# ctags/etags may be provided by other packages, e.g, universal-ctags
_conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')