[PKGBUILD] Add Tree-Sitter option in Emacs PKGBUILD
This commit is contained in:
parent
90c42309c0
commit
47235d5040
@ -53,6 +53,10 @@ XWIDGETS="YES" # Use GTK+ widgets pulled from webkit2gtk. Usable.
|
|||||||
DOCS_HTML="YES" # Generate and install html documentation.
|
DOCS_HTML="YES" # Generate and install html documentation.
|
||||||
DOCS_PDF= # Generate and install pdf documentation.
|
DOCS_PDF= # Generate and install pdf documentation.
|
||||||
NOGZ= # Don't compress .el files.
|
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
|
else
|
||||||
pkgname="emacs-phundrak-git"
|
pkgname="emacs-phundrak-git"
|
||||||
fi
|
fi
|
||||||
pkgver=29.0.50.162035
|
pkgver=30.0.50.162621
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="GNU Emacs. Development master branch with Phundrak’s tweaks."
|
pkgdesc="GNU Emacs. Development master branch with Phundrak’s tweaks."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
@ -108,6 +112,14 @@ if [[ $CLANG == "YES" ]]; then
|
|||||||
makedepends+=( 'clang' 'lld' 'llvm') ;
|
makedepends+=( 'clang' 'lld' 'llvm') ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $TREESITTER == "YES" ]]; then
|
||||||
|
if [[ $CLI == "YES" ]]; then
|
||||||
|
depends_nox+=( 'tree-sitter' );
|
||||||
|
else
|
||||||
|
depends+=( 'tree-sitter' );
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $JIT == "YES" ]]; then
|
if [[ $JIT == "YES" ]]; then
|
||||||
if [[ $CLI == "YES" ]]; then
|
if [[ $CLI == "YES" ]]; then
|
||||||
depends_nox+=( 'libgccjit' );
|
depends_nox+=( 'libgccjit' );
|
||||||
@ -285,6 +297,10 @@ if [[ $NOGZ == "YES" ]]; then
|
|||||||
_conf+=( '--without-compress-install' );
|
_conf+=( '--without-compress-install' );
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $TREESITTER == "YES" ]]; then
|
||||||
|
_conf+=( '--with-tree-sitter' );
|
||||||
|
fi
|
||||||
|
|
||||||
# ctags/etags may be provided by other packages, e.g, universal-ctags
|
# ctags/etags may be provided by other packages, e.g, universal-ctags
|
||||||
_conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')
|
_conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user