Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/editors
In directory usw-pr-cvs1:/tmp/cvs-serv14025

Added Files:
        python-mode-4.6.18.2-1.info python-mode-4.6.18.2-1.patch 
Log Message:
New package from tracker


--- NEW FILE: python-mode-4.6.18.2-1.info ---
Package: python-mode
Version: 4.6.18.2
Revision: 1
Maintainer: Rohan Lloyd <[EMAIL PROTECTED]>
Depends: emacsen, python (>= 2.2) | python-nox (>= 2.2), python (<< 2.3) | python-nox 
(<< 2.3)
Description: Emacs - python edit mode
License: OSI-approved
Type: nosource
PatchScript: <<
 cp %p/lib/python2.2/Misc/python-mode.el .
 head -18 python-mode.el >LICENSE
 sed 's|@PREFIX@|%p|g' <%a/%f.patch | patch
<<
CompileScript: echo "No compile needed."
InstallScript: <<
 install -m 755 -d %i/etc/emacs/site-start.d
 install -m 644 emacsen-startup %i/etc/emacs/site-start.d/50%n.el

 install -m 755 -d %i/share/emacs/site-lisp/%n
 install -m 644 *.el %i/share/emacs/site-lisp/%n

 install -m 755 -d %i/lib/emacsen-common/packages/install
 install -m 755 emacsen-install %i/lib/emacsen-common/packages/install/%n

 install -m 755 -d %i/lib/emacsen-common/packages/remove
 install -m 755 emacsen-remove %i/lib/emacsen-common/packages/remove/%n
<<
PostInstScript: %p/lib/emacsen-common/emacs-package-install %n
PreRmScript:    %p/lib/emacsen-common/emacs-package-remove  %n
#
DocFiles: LICENSE
DescDetail: <<
This is a major mode for editing Python programs.  It was developed
by Tim Peters after an original idea by Michael A. Guravage.  Tim
subsequently left the net; in 1995, Barry Warsaw inherited the mode
and is the current maintainer.  Tim's now back but disavows all
responsibility for the mode.  Smart Tim :-)
<<
DescUsage: <<
<<
Homepage: http://www.python.org/emacs/python-mode/
DescPackaging: <<
This package just takes the existing python-mode.el (from python package)
and installs it in emacs, so it works.

I'm not sure if the License field is correct. This package doesn't actually
supply any source itself, it just uses python-mode.el from the python package.
So I just copied the value from the python package.
<<
--- NEW FILE: python-mode-4.6.18.2-1.patch ---
diff -Naur python-mode.orig/emacsen-install python-mode/emacsen-install
--- python-mode.orig/emacsen-install    Thu Jan  1 10:00:00 1970
+++ python-mode/emacsen-install Wed Sep 25 00:59:53 2002
@@ -0,0 +1,40 @@
+#! /bin/sh -e
+
+FLAVOR=$1
+PACKAGE=python-mode
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+if [ ${FLAVOR} == emacs ]; then
+    exit 0
+fi
+
+FLAVORTEST=`echo $FLAVOR | cut -c-6`
+if [ ${FLAVORTEST} = xemacs ] ; then
+    SITEFLAG="-no-site-file"
+else
+    SITEFLAG="--no-site-file"
+fi
+
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=@PREFIX@/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=@PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path)
+      byte-compile-warnings nil)
+EOF
+
+echo install/python-mode: byte-compiling for ${FLAVOR}
+
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0;
diff -Naur python-mode.orig/emacsen-remove python-mode/emacsen-remove
--- python-mode.orig/emacsen-remove     Thu Jan  1 10:00:00 1970
+++ python-mode/emacsen-remove  Wed Sep 25 01:38:47 2002
@@ -0,0 +1,16 @@
+#! /bin/sh -e
+
+FLAVOR=$1
+PACKAGE=python-mode
+
+echo remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR}
+
+if [ ${FLAVOR} == emacs ]
+then
+    exit 0
+fi
+
+echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+rm -rf @PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+exit 0
diff -Naur python-mode.orig/emacsen-startup python-mode/emacsen-startup
--- python-mode.orig/emacsen-startup    Thu Jan  1 10:00:00 1970
+++ python-mode/emacsen-startup Wed Sep 25 01:52:50 2002
@@ -0,0 +1,8 @@
+
+(setq auto-mode-alist
+      (cons '("\\.py$" . python-mode) auto-mode-alist))
+(setq interpreter-mode-alist
+      (cons '("python" . python-mode)
+            interpreter-mode-alist))
+
+(autoload 'python-mode "python-mode" "Python editing mode." t)



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of  Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to