2006-04-09 04:33:03 +00:00
|
|
|
# Description: an extensible, customizable, self-documenting real-time display editor
|
2006-04-09 07:53:28 +00:00
|
|
|
# URL: http://www.gnu.org/software/emacs/
|
2007-06-04 21:27:39 +03:00
|
|
|
# Maintainer: Antti Nykanen, aon at iki dot fi
|
2008-04-26 23:37:34 +03:00
|
|
|
# Depends on: xorg, libtiff, ctags
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=emacs
|
2008-04-11 18:49:41 +03:00
|
|
|
version=22.2
|
2008-07-19 12:39:15 +03:00
|
|
|
release=4
|
2008-06-14 22:33:07 +03:00
|
|
|
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
|
|
|
|
$name-$version-etc-blacklist)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2007-06-04 21:27:39 +03:00
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2006-02-23 15:26:10 +00:00
|
|
|
--libexecdir=/usr/lib \
|
2007-06-04 21:27:39 +03:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--localstatedir=/usr/lib/emacs/$version \
|
2006-02-23 15:26:10 +00:00
|
|
|
--with-x
|
2007-06-04 21:27:39 +03:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/share/info
|
|
|
|
find $PKG/usr/share/emacs -name "*.el.gz" | while read file; do
|
|
|
|
[ -f ${file%.gz}c ] && rm -f $file
|
|
|
|
done
|
2008-06-14 22:33:07 +03:00
|
|
|
|
2008-04-26 23:37:34 +03:00
|
|
|
rm -f $PKG/usr/bin/emacs-$version
|
|
|
|
rm -f $PKG/usr/{bin/{c,e}tags,man/man1/{c,e}tags.1}
|
2008-06-14 22:33:07 +03:00
|
|
|
rm -f $PKG/usr/share/emacs/$version/lisp/{COPYING,{,term/}README}
|
|
|
|
|
|
|
|
for i in $(< $SRC/$name-$version-etc-blacklist); do
|
|
|
|
rm -rf $PKG/usr/share/emacs/$version/etc/$i
|
|
|
|
done
|
2007-06-04 21:27:39 +03:00
|
|
|
|
|
|
|
chown -R root:root $PKG
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|