Merge pull request #176 from dvargas46/v3-add-emacs

pkg(emacs-27.1.0): Add emacs 27.1.0
This commit is contained in:
Thomas 2021-03-19 13:38:42 +13:00 committed by GitHub
commit 9c485595d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 0 deletions

24
packages/emacs/27.1.0/build.sh vendored Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
export PATH=$PWD/bin:$PATH
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
# Emacs version 27.1 supports Docker builds
# Otherwise, older versions will work too, but you will have to disable `/proc/sys/kernel/randomize_va_space` which is less secure
curl -L "http://ftpmirror.gnu.org/emacs/emacs-27.1.tar.gz" -o emacs.tar.gz
tar xzf emacs.tar.gz --strip-components=1
rm emacs.tar.gz
# Building without all that X11 stuff
./configure --prefix="$PREFIX" --with-x=no --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --with-gnutls=no
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

4
packages/emacs/27.1.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/emacs/27.1.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "emacs",
"version": "27.1.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["emacs", "el", "elisp"]
}

4
packages/emacs/27.1.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
emacs -Q --script "$@"

1
packages/emacs/27.1.0/test.el vendored Normal file
View File

@ -0,0 +1 @@
(princ "OK")