From e57ef95e0276fad3c16f671ca03e858402bb2587 Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Thu, 18 Mar 2021 19:28:35 -0500 Subject: [PATCH] pkg(emacs-27.1.0): Add emacs 27.1.0 --- packages/emacs/27.1.0/build.sh | 24 ++++++++++++++++++++++++ packages/emacs/27.1.0/environment | 4 ++++ packages/emacs/27.1.0/metadata.json | 6 ++++++ packages/emacs/27.1.0/run | 4 ++++ packages/emacs/27.1.0/test.el | 1 + 5 files changed, 39 insertions(+) create mode 100755 packages/emacs/27.1.0/build.sh create mode 100644 packages/emacs/27.1.0/environment create mode 100644 packages/emacs/27.1.0/metadata.json create mode 100644 packages/emacs/27.1.0/run create mode 100644 packages/emacs/27.1.0/test.el diff --git a/packages/emacs/27.1.0/build.sh b/packages/emacs/27.1.0/build.sh new file mode 100755 index 0000000..a4aecc6 --- /dev/null +++ b/packages/emacs/27.1.0/build.sh @@ -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 diff --git a/packages/emacs/27.1.0/environment b/packages/emacs/27.1.0/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/emacs/27.1.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/emacs/27.1.0/metadata.json b/packages/emacs/27.1.0/metadata.json new file mode 100644 index 0000000..bcd3d08 --- /dev/null +++ b/packages/emacs/27.1.0/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "emacs", + "version": "27.1.0", + "author": "Dan Vargas ", + "aliases": ["emacs", "el", "elisp"] +} \ No newline at end of file diff --git a/packages/emacs/27.1.0/run b/packages/emacs/27.1.0/run new file mode 100644 index 0000000..8bf46e4 --- /dev/null +++ b/packages/emacs/27.1.0/run @@ -0,0 +1,4 @@ +#!/bin/bash + +# Put instructions to run the runtime +emacs -Q --script "$@" \ No newline at end of file diff --git a/packages/emacs/27.1.0/test.el b/packages/emacs/27.1.0/test.el new file mode 100644 index 0000000..ebe0215 --- /dev/null +++ b/packages/emacs/27.1.0/test.el @@ -0,0 +1 @@ +(princ "OK") \ No newline at end of file