Browse Source

add files from pod-mode-0.5-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@740 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 15 years ago
parent
commit
9fc4d3178d

+ 16 - 0
p/pod-mode/pod-mode-init.el

@@ -0,0 +1,16 @@
+;;
+;; pod-mode-init.el
+;;
+;;      for Vine Linux with emacsen-common
+;;      IWAI, Masaharu <iwai@alib.jp>
+
+(defcustom vine-default-pod-mode t
+  "A boolean for vine-default-pod-mode"
+  :type 'boolean)
+
+(add-hook 'vine-default-setup-hook
+          (lambda()
+            (if vine-default-pod-mode
+                (require 'vine-default-pod-mode))))
+
+;;; end of file

+ 34 - 0
p/pod-mode/pod-mode-install.sh

@@ -0,0 +1,34 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/pod-mode
+
+FLAVOR=$1
+PACKAGE=pod-mode
+
+FLAGS="${SITEFLAG} -q -batch -f batch-byte-compile"
+
+ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}"
+ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}"
+STARTDIR=/etc/${FLAVOR}/site-start.d
+STARTFILE="${PACKAGE}-init.el"
+
+SOURCES="pod-mode.el"
+
+case "${FLAVOR}" in
+    emacs)
+    ;;
+    *) 
+    install -m 755 -d ${ELCDIR}
+    cd ${ELDIR}
+    cp *.el ${ELCDIR}
+    FILES="${SOURCES}"
+    cd ${ELCDIR}
+    ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
+    rm -f ${SOURCES}
+    gzip -9 ${ELCDIR}/CompilationLog
+
+    ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE};
+    echo " done."
+    ;;
+esac
+
+exit 0 ;

+ 32 - 0
p/pod-mode/pod-mode-remove.sh

@@ -0,0 +1,32 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/pod-mode
+
+FLAVOR=$1
+PACKAGE=pod-mode
+STARTDIR=/etc/${FLAVOR}/site-start.d
+STARTFILE="${PACKAGE}-init.el"
+
+if [ "X${FLAVOR}" = "X" ]; then
+    echo Need argument to determin FLAVOR of emacs;
+    exit 1
+fi
+
+if [ "X${PACKAGE}" = "X" ]; then
+    echo Internal error: need package name;
+    exit 1;
+fi
+
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+case "${FLAVOR}" in
+    emacs)
+    ;;
+    *)
+    echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
+    rm -rf ${ELCDIR}
+    rm -f ${STARTDIR}/95${STARTFILE}*
+    echo " done."
+    ;;
+esac
+
+exit 0

+ 20 - 0
p/pod-mode/vine-default-pod-mode.el

@@ -0,0 +1,20 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;  -*- coding: utf-8-unix -*-
+;;  FSF Emacs 23 用 Vine Linux pod-mode 設定
+;;    IWAI, Masaharu <iwai@alib.jp>
+;;      $Id$
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; pod-mode の設定
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(autoload 'pod-mode "pod" "POD major mode" t)
+(setq auto-mode-alist
+      (append '(("\\.pod$" . pod-mode)) auto-mode-alist))
+
+(provide 'vine-default-pod-mode)
+
+;; Local Variables:
+;; mode: emacs-lisp
+;; End: