emacs, remove obseleted files by next version (#3904)

This commit is contained in:
Schrijvers Luc
2019-06-08 14:51:46 +00:00
committed by GitHub
parent 05b27ed37b
commit 50706a5021
2 changed files with 0 additions and 184 deletions

View File

@@ -1,146 +0,0 @@
SUMMARY="The famous text editor"
DESCRIPTION="An extensible, customizable, free/libre 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.
* Content-aware editing modes, including syntax coloring, for many file types.
* Complete built-in documentation, including a tutorial for new users.
* Full Unicode support for nearly all human scripts.
* Highly customizable, using Emacs Lisp code or a graphical interface.
* An entire ecosystem of functionality beyond text editing, including a \
project planner, mail and news reader, debugger interface, calendar, and more.
* A packaging system for downloading and installing extensions."
HOMEPAGE="https://gnu.org/s/emacs/"
COPYRIGHT="2001-2017 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="http://www.artfiles.org/gnu.org/emacs/emacs-$portVersion.tar.xz"
CHECKSUM_SHA256="253ac5e7075e594549b83fd9ec116a9dc37294d415e2f21f8ee109829307c00b"
PATCHES="emacs-$portVersion.patchset"
ADDITIONAL_FILES="emacs.rdef.in"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
GLOBAL_WRITABLE_FILES="
var/games/emacs/snake-scores keep-old
var/games/emacs/tetris-scores keep-old
"
PROVIDES="
emacs$secondaryArchSuffix = $portVersion
cmd:ctags.emacs = $portVersion
cmd:ebrowse = $portVersion
cmd:emacs = $portVersion
cmd:emacs_$portVersion
cmd:emacsclient = $portVersion
cmd:etags = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgnutls$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
# lib:libjpeg$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
# lib:libpng$secondaryArchSuffix
# lib:libtiff$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
# lib:libxpm$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgnutls$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
# devel:libjpeg$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
# devel:libpng$secondaryArchSuffix
# devel:libtiff$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
# devel:libxpm$secondaryArchSuffix
devel:libz$secondaryArchSuffix >= 1.2.8
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:makeinfo
cmd:pkg_config$secondaryArchSuffix
cmd:tar
cmd:which
"
PATCH()
{
# Hard link not supported on BFS.
sed -i 's/ln -f/ln -s/g' src/Makefile.in
# mmaloc temporary fix.
sed -i 's/emacs_cv_sanitize_address=no/emacs_cv_sanitize_address=yes/g' configure.ac
}
BUILD()
{
export LDFLAGS="-lnetwork -lbsd"
CFLAGS="-D_BSD_SOURCE"
export HOME=/boot/home
autoreconf -fi
runConfigure ./configure \
CANNOT_DUMP=yes # known bug in emacs
make clean
# known bug in emacs
mkdir -p $dataDir/emacs/$portVersion/lisp
cp -R lisp/* $dataDir/emacs/$portVersion/lisp
make $jobArgs
}
INSTALL()
{
# Build fix
for f in emacs bootstrap-emacs; do
rm -rf src/$f
done
make install
# ctags fix
mv $binDir/ctags $binDir/ctags.emacs
# Cleanup
strip $binDir/*
find $dataDir -type f -name "*.el.gz" -delete
for f in appdata applications icons; do
rm -rf $dataDir/$f
done
# Extra attribs
for f in $binDir/*; do
if [ -r "$f" ]; then
addattr SYS:ENV DISABLE_ASLR=1 $f
fi
done
# Icon
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
#local MINOR="`echo "$portVersion" | cut -d. -f3`"
local MINOR="`echo 0`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/emacs.rdef.in > emacs.rdef
addResourcesToBinaries emacs.rdef \
$binDir/emacs
}

View File

@@ -1,38 +0,0 @@
From 382d51023f5e54b5c380ec7edb44cc7ea402c403 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 28 May 2017 12:53:20 +0200
Subject: Introduce Haiku as supported platform
diff --git a/configure.ac b/configure.ac
index 5853cbb..f816111 100644
--- a/configure.ac
+++ b/configure.ac
@@ -710,6 +710,7 @@ case "${canonical}" in
*-sysv4.2uw* ) opsys=unixware ;;
*-sysv5uw* ) opsys=unixware ;;
*-sysv5OpenUNIX* ) opsys=unixware ;;
+ *-haiku* ) opsys=haiku ;;
## Otherwise, we'll fall through to the generic opsys code at the bottom.
esac
;;
@@ -722,6 +723,7 @@ case "${canonical}" in
# MinGW overrides and adds some system headers in nt/inc.
GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
;;
+ *-haiku* ) opsys=haiku ;;
## Otherwise, we'll fall through to the generic opsys code at the bottom.
esac
;;
@@ -4465,7 +4467,7 @@ case $opsys in
AC_DEFINE(PTY_TTY_NAME_SPRINTF, [])
;;
- gnu | openbsd )
+ gnu | openbsd | haiku )
AC_DEFINE(FIRST_PTY_LETTER, ['p'])
;;
--
2.12.2