diff --git a/Documents/code/PKGBUILDs/emacs/PKGBUILD b/Documents/code/PKGBUILDs/emacs/PKGBUILD index cd6e989..15f94fc 100644 --- a/Documents/code/PKGBUILDs/emacs/PKGBUILD +++ b/Documents/code/PKGBUILDs/emacs/PKGBUILD @@ -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 Phundrak’s 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/')