Tools/emacs

- build-script reviewed
- variant for version 26.1 added
This commit is contained in:
2018-10-11 11:04:24 +02:00
parent b30b0f40cb
commit 0284379d31
3 changed files with 23 additions and 23 deletions

View File

@@ -1,29 +1,24 @@
#!/usr/bin/env modbuild
SOURCE_URL="https://ftp.gnu.org/gnu/emacs/$P-$V.tar.xz"
pbuild::set_download_url "https://ftp.gnu.org/gnu/emacs/$P-$V.tar.xz"
case ${OS} in
Darwin )
configure_args='--with-ns --with-jpeg=no'
CC=''
CXX=''
COMPILER=''
COMPILER_VERSION=''
;;
Linux )
# with 24.5 configure complains about missing libjpeg even it
# is installed!
configure_args='--with-jpeg=no'
;;
*)
;;
esac
CC=''
CXX=''
module use System
pbuild::configure() {
"${SRC_DIR}"/configure \
--prefix="${PREFIX}" \
${configure_args} \
|| exit 1
pbuild::pre_configure() {
case ${OS} in
Darwin )
pbuild::add_configure_args '--with-ns' '--with-jpeg=no'
;;
Linux )
# with 24.5 configure complains about missing libjpeg even it
# is installed!
pbuild::add_configure_args '--with-jpeg=no'
;;
*)
;;
esac
install -m 0755 -d "${PREFIX}"
}
@@ -31,6 +26,8 @@ pbuild::post_install() {
mkdir -p "${PREFIX}/bin"
install -m 0755 "${BUILDBLOCK_DIR}/Emacs" "${PREFIX}/bin"
install -m 0755 "${BUILDBLOCK_DIR}/Emacsclient" "${PREFIX}/bin"
#cp -a "${GNUTLS_LIBRARY_DIR}"/libgnutls.so.* "${PREFIX}/lib"
#cp -a "${NETTLE_LIBRARY_DIR}"/libnettle.so.* "${PREFIX}/lib"
}
pbuild::post_install_Darwin() {

View File

@@ -1,3 +1,3 @@
emacs/25.1 stable b:libungif/4.1.4 b:tiff/4.0.3
emacs/25.3 stable b:libungif/4.1.4 b:tiff/4.0.9
emacs/26.1 stable b:libungif/4.1.4 b:tiff/4.0.9
emacs/26.1 unstable b:libungif/4.1.4 b:tiff/4.0.9 b:nettle/3.4 gnutls/3.5.19

View File

@@ -0,0 +1,3 @@
emacs/25.1 stable b:libungif/4.1.4 b:tiff/4.0.3
emacs/25.3 stable b:libungif/4.1.4 b:tiff/4.0.9
emacs/26.1 unstable b:libungif/4.1.4 b:tiff/4.0.9 b:nettle/3.4 b:pkg-config/0.29.2 gnutls/3.5.19