# HG changeset patch # User Dominique Corbex # Date 1215855967 -7200 # Node ID 12de48f5338ac95b7437d37e38aaee0769fc6282 # Parent df8aef2144b14c6715908b97b267858a97c3b90b Add emacs diff -r df8aef2144b1 -r 12de48f5338a emacs/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emacs/description.txt Sat Jul 12 11:46:07 2008 +0200 @@ -0,0 +1,7 @@ +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 and much more. + +Emacs has been stripped down for SliTaz: POP mail, x-window, +games, sound, info, man pages, Lisp sources are not available. diff -r df8aef2144b1 -r 12de48f5338a emacs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emacs/receipt Sat Jul 12 11:46:07 2008 +0200 @@ -0,0 +1,86 @@ +# SliTaz package receipt. + +PACKAGE="emacs" +VERSION="22.2" +CATEGORY="development" +SHORT_DESC="The GNU Emacs editor" +MAINTAINER="domcox@users.sourceforge.net" +DEPENDS="" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/emacs/" +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + # Gzip workaround in busybox + sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in > Makefile.slitaz + cp Makefile.slitaz Makefile.in + sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in > leim/Makefile.slitaz + cp leim/Makefile.slitaz leim/Makefile.in + # Configure + ./configure $CONFIGURE_ARGS \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --without-pop \ + --without-sound \ + --without-x \ + --with-x-toolkit=no \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --prefix=/usr + # make + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + echo "Copying files" + # Binary files + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + # emacs-22.2 = emacs + rm -f $fs/usr/bin/emacs-22.2 + # Conf files + mkdir -p $fs/usr/share/$PACKAGE/$VERSION + mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.de $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.es $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.fr $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/ORDERS $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/COPYING $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DISTRIB $fs/usr/share/$PACKAGE/$VERSION/etc + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION + cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE + cp -a $_pkg/usr/lib $fs/usr + # Delete Lisp sources + find $fs/usr/share -name *el.gz > lisp-sources + cat lisp-sources | while read filename + do + rm $filename + done + # Delete Games + rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play + # Use linux term only + rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/* + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term + cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term + # Strip executable files + strip -s $fs/usr/bin/* > /dev/null + strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null + # Install specific site file + cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp + # Add lua support + cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes + # Directory workaround + cd $fs/usr/share/$PACKAGE/$VERSION + ln -s ../site-lisp site-lisp +} diff -r df8aef2144b1 -r 12de48f5338a emacs/stuff/default.el --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emacs/stuff/default.el Sat Jul 12 11:46:07 2008 +0200 @@ -0,0 +1,65 @@ +;; SilTaz Emacs site file +;; +;; Last update: 2008-06-28 +;; +;; SliTaz receipt files +;; Force emacs in shell-script-mode +(setq auto-mode-alist (cons '("receipt" . shell-script-mode) auto-mode-alist)) + +;; LUA programming Language +;; add major-mode for editing Lua scripts +(setq auto-mode-alist (cons '("\\.lua$" . lua-mode) auto-mode-alist)) + (autoload 'lua-mode "lua-mode" "Lua editing mode." t) + + +;; Force emacs to use tabs +;; From Scott Hurring's HOWTO +;; Turn on tabs +(setq indent-tabs-mode t) +(setq-default indent-tabs-mode t) + +;; Bind the TAB key +(global-set-key (kbd "TAB") 'self-insert-command) + +;; Set the tab width +(setq default-tab-width 4) +(setq tab-width 4) +(setq c-basic-indent 4) + + +;; Following lines has been grabbed from dot emacs file for Maemo (nokia tablets): +;; christof sietchtabr at gmail +;; +;; the dired, list-directory, and gzip fixes all come from the +;; packager of the emacs deb and responses from other maemo community members +;; http://danielsz.freeshell.org/code/mine/emacs-for-maemo/index.shtml +;; +;; make dired work +;; --dired option is not supported on busybox ls command +(setq dired-use-ls-dired nil) + +;; make list-directory work +;; -F not supported by busybox ls command +(setq list-directory-brief-switches "-C") + + +;; we *REALLY* don't want to spew file backups all over the fs. +;; code to place all backups in one location +(when (not (file-directory-p "~/.backup")) + (make-directory "~/.backup")) +(if (file-directory-p "~/.backup") + (setq backup-directory-alist '(("." . "~/.backup")))) + +;; custom variable setting to make info work using busybox gzip + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(jka-compr-compression-info-list (quote (["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "compress" ("-c") "u\ +ncompressing" "uncompress" ("-c") nil t "^_\x9d"] ["\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" "bzip2ing" "bzip2" nil "b\ +unzip2ing" "bzip2" ("-d") nil t "BZh"] ["\\.tbz\\'" "bzip2ing" "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil nil\ + "BZh"] ["\\.tgz\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-q" "-d") t nil "^_\x8b"] ["\\.\ +g?z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-d") t t "^_\x8b"] ["\\ +\.dz\\'" nil nil nil "uncompressing" "gzip" ("-c" "-d") nil t "^_\x8b"])))) diff -r df8aef2144b1 -r 12de48f5338a emacs/stuff/emacs.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emacs/stuff/emacs.desktop Sat Jul 12 11:46:07 2008 +0200 @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Emacs (Text mode) +Name[fr]=Emacs (Mode texte) +Exec=xterm -e emacs %F +Icon=emacs.png +Terminal=true +Categories=Development; +MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php*;application/xml;text/html;text/css;text/x-sql;text/x-diff; +StartupNotify=true diff -r df8aef2144b1 -r 12de48f5338a emacs/stuff/emacs.png Binary file emacs/stuff/emacs.png has changed diff -r df8aef2144b1 -r 12de48f5338a emacs/stuff/lua-mode.elc Binary file emacs/stuff/lua-mode.elc has changed