[emacs] embed some tree-sitter thingies
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
789737cbbb
commit
2bd989df82
1 changed files with 48 additions and 33 deletions
|
@ -115,39 +115,40 @@ SRCDIR=$REPOSITORY
|
||||||
EMACS_VERSION=$(grep "AC_INIT(\[GNU Emacs\]," $SRCDIR/configure.ac | cut -d, -f 2 | tr -d \ | tr -d [ | tr -d ])
|
EMACS_VERSION=$(grep "AC_INIT(\[GNU Emacs\]," $SRCDIR/configure.ac | cut -d, -f 2 | tr -d \ | tr -d [ | tr -d ])
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
$SRCDIR/configure \
|
$SRCDIR/configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--libdir=/usr/lib$(uname -m | grep -o 64 ) \
|
||||||
--localstatedir=/var \
|
--sysconfdir=/etc \
|
||||||
--program-prefix="" \
|
--localstatedir=/var \
|
||||||
--program-suffix="" \
|
--program-prefix="" \
|
||||||
--mandir=/usr/man \
|
--program-suffix="" \
|
||||||
--infodir=/usr/info \
|
--mandir=/usr/man \
|
||||||
--without-gconf \
|
--infodir=/usr/info \
|
||||||
--without-gsettings \
|
--without-gconf \
|
||||||
--with-modules \
|
--without-gsettings \
|
||||||
--with-dbus \
|
--with-modules \
|
||||||
--with-gif \
|
--with-dbus \
|
||||||
--with-jpeg \
|
--with-gif \
|
||||||
--with-png \
|
--with-jpeg \
|
||||||
--with-rsvg \
|
--with-png \
|
||||||
--with-tiff \
|
--with-rsvg \
|
||||||
--with-xft \
|
--with-tiff \
|
||||||
--with-xpm \
|
--with-xft \
|
||||||
--with-gpm=yes \
|
--with-xpm \
|
||||||
--with-pgtk \
|
--with-gpm=yes \
|
||||||
--with-tree-sitter \
|
--with-pgtk \
|
||||||
--with-native-compilation=aot \
|
--with-tree-sitter \
|
||||||
--enable-link-time-optimization \
|
--with-native-compilation=aot \
|
||||||
--with-compress-install \
|
--enable-link-time-optimization \
|
||||||
--without-gconf \
|
--with-compress-install \
|
||||||
--with-gameuser=":games" \
|
--without-gconf \
|
||||||
--build=${ARCH}-slackware-linux || exit 1
|
--with-gameuser=":games" \
|
||||||
# --disable-libsystemd \
|
--build=${ARCH}-slackware-linux || exit 1
|
||||||
# --with-x \
|
# --disable-libsystemd \
|
||||||
# --with-x-toolkit=${X_TOOLKIT:-gtk3} \
|
# --with-x \
|
||||||
# --without-toolkit-scroll-bars \
|
# --with-x-toolkit=${X_TOOLKIT:-gtk3} \
|
||||||
|
# --without-toolkit-scroll-bars \
|
||||||
|
|
||||||
make $NUMJOBS || make || exit 1
|
make $NUMJOBS || make || exit 1
|
||||||
make install DESTDIR=$PKG || exit 1
|
make install DESTDIR=$PKG || exit 1
|
||||||
|
@ -179,6 +180,20 @@ elif [ -r $PKG/usr/man/man1/ctags.1.gz ]; then
|
||||||
mv $PKG/usr/man/man1/ctags.1.gz $PKG/usr/man/man1/ctags-emacs.1.gz
|
mv $PKG/usr/man/man1/ctags.1.gz $PKG/usr/man/man1/ctags-emacs.1.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# gwh: 2022-12-06
|
||||||
|
# tree-sitter grammars
|
||||||
|
git clone https://github.com/casouri/tree-sitter-module
|
||||||
|
cd tree-sitter-module
|
||||||
|
sed -i 's|cc -c -I. parser.c|cc -fPIC -c -I. parser.c|' build.sh
|
||||||
|
bash ./batch.sh
|
||||||
|
cp dist/*.so "$PKG/usr/lib$(uname -m | grep -o 64)/"
|
||||||
|
cd ..
|
||||||
|
# /tree-sitter grammars
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" \
|
||||||
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue