# Description: The one true OS # URL: http://www.gnu.org/software/emacs/ # Maintainer: Antonio SJ Musumeci, bile at landofbile dot com # Depends on: gtk texinfo name=emacs version=cvs-$(date '+%Y-Week%W') release=1 source=() build() { cd $PKGMK_SOURCE_DIR CVS_RSH=ssh if cd emacs ; then cvs -q up -dAP else cvs -z3 -q -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs fi cd $SRC $PKGMK_SOURCE_DIR/emacs/configure \ --with-x-toolkit=gtk \ --prefix=/usr \ --libexecdir=/usr/lib make bootstrap make install prefix=$PKG/usr libexecdir=$PKG/usr/lib # Comment out this line if you do want the emacs info pages. (I do!) rm -rf $PKG/usr/info/ # Comment out these lines if you want to keep the source lisp files. find \ $PKG/usr/share/emacs/*/{leim,lisp} \ $PKG/usr/share/emacs/site-lisp \ -name "*.elc"| while read line; do if [ -r ${line/.elc/.el.gz} ]; then rm ${line/.elc/.el.gz} fi done # Rather useless rm -rf $PKG/usr/var/ $PKG/usr/bin/emacs-* chown -R root:root $PKG }