all buildblocks moved one level up
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -r OS=$(uname -s)
|
||||
|
||||
if [[ "${OS}" == "Darwin" ]]; then
|
||||
open "${EMACS_DIR}/Emacs.app" --args "$@"
|
||||
else
|
||||
"${EMACS_DIR}/bin/emacs" "$@"
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -r OS=$(uname -s)
|
||||
|
||||
if [[ "${OS}" == "Darwin" ]]; then
|
||||
"${EMACS_DIR}/Emacs.app/Contents/MacOS/bin/emacsclient" -c "$@"
|
||||
else
|
||||
"${EMACS_DIR}/bin/emacsclient" -c "$@" &
|
||||
fi
|
||||
|
||||
Executable
+46
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
module use 'Libraries'
|
||||
|
||||
build_dependencies="${COMPILER} libungif tiff"
|
||||
|
||||
case ${OS} in
|
||||
Darwin )
|
||||
configure_args='--with-ns'
|
||||
build_dependencies="libungif tiff"
|
||||
CC=''
|
||||
CXX=''
|
||||
COMPILER=''
|
||||
COMPILER_VERSION=''
|
||||
;;
|
||||
Linux )
|
||||
# with 24.5 configure complains about missing libjpeg even it
|
||||
# is installed!
|
||||
configure_args='--with-jpeg=no'
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
pbuild::configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
${configure_args} \
|
||||
|| exit 1
|
||||
install -m 0755 -d "${PREFIX}"
|
||||
}
|
||||
|
||||
pbuild::post_install() {
|
||||
mkdir -p "${PREFIX}/bin"
|
||||
install -m 0755 "${BUILD_BLOCK_DIR}/Emacs" "${PREFIX}/bin"
|
||||
install -m 0755 "${BUILD_BLOCK_DIR}/Emacsclient" "${PREFIX}/bin"
|
||||
}
|
||||
|
||||
pbuild::post_install_Darwin() {
|
||||
cp -a "${MODULE_BUILDDIR}/nextstep/Emacs.app" "${PREFIX}"
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'Tools'
|
||||
pbuild::set_build_dependencies ${build_dependencies}
|
||||
pbuild::make_all
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
#%Module1.0
|
||||
|
||||
set whatis "extensible, customizable text editor—and more"
|
||||
set url "http://www.gnu.org/software/emacs/"
|
||||
set license "GNU GPL v3"
|
||||
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
|
||||
set help "
|
||||
GNU Emacs is an extensible, customizable text editor—and more. At its
|
||||
core is an interpreter for Emacs Lisp, a dialect of the Lisp programming
|
||||
language with extensions to support text editing. The features of GNU
|
||||
Emacs include:
|
||||
|
||||
- Content-sensitive editing modes, including syntax coloring, for a
|
||||
variety of file types including plain text, source code, and HTML.
|
||||
|
||||
- Complete built-in documentation, including a tutorial for new users.
|
||||
|
||||
- Full Unicode support for nearly all human languages and their scripts.
|
||||
|
||||
- Highly customizable, using Emacs Lisp code or a graphical interface.
|
||||
|
||||
- A large number of extensions that add other functionality, including
|
||||
a project planner, mail and news reader, debugger interface, calendar,
|
||||
and more. Many of these extensions are distributed with GNU Emacs;
|
||||
others are available separately.
|
||||
"
|
||||
|
||||
source $env(PSI_LIBMODULES)
|
||||
|
||||
Reference in New Issue
Block a user