Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/languages
In directory sc8-pr-cvs1:/tmp/cvs-serv18949

Added Files:
        python-mode.info python-mode.patch 
Log Message:
new package from tracker (#747970)


--- NEW FILE: python-mode.info ---
Package: python-mode
Version: 4.35
Revision: 1
Maintainer: Rohan Lloyd <[EMAIL PROTECTED]>
BuildDepends: dlcompat-dev
Depends: emacsen
Recommends: python
Description: Emacs - python edit mode
License: OSI-Approved
Source: mirror:sourceforge:fink/%n-%v.tar.gz
Source-MD5: 88a419b74ff22d9210cf58101ed104e6
PatchScript: <<
 sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
 head -18 python-mode.el >LICENSE
<<
CompileScript: echo "No compile needed."
InstallScript: <<
 install -m 755 -d %i/etc/emacs/site-start.d
 install -m 644 fink/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 fink/emacsen-install %i/lib/emacsen-common/packages/install/%n

 install -m 755 -d %i/lib/emacsen-common/packages/remove
 install -m 755 fink/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: <<
When in a Python mode buffer, do a C-h m for help.
<<
Homepage: http://www.python.org/emacs/python-mode/
DescPackaging: <<
During byte compilation of python-mode.el, there are a few errors. They
don't seem to be harmful, I've asked the python-mode maintainer about them.
<<
--- NEW FILE: python-mode.patch ---
diff -Naur python-mode-4.35/fink/emacsen-install 
python-mode-4.35.fink/fink/emacsen-install
--- python-mode-4.35/fink/emacsen-install       Thu Jan  1 10:00:00 1970
+++ python-mode-4.35.fink/fink/emacsen-install  Mon Jul 28 18:05:02 2003
@@ -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=/sw/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/sw/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-4.35/fink/emacsen-remove 
python-mode-4.35.fink/fink/emacsen-remove
--- python-mode-4.35/fink/emacsen-remove        Thu Jan  1 10:00:00 1970
+++ python-mode-4.35.fink/fink/emacsen-remove   Mon Jul 28 18:05:02 2003
@@ -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 /sw/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+exit 0
diff -Naur python-mode-4.35/fink/emacsen-startup 
python-mode-4.35.fink/fink/emacsen-startup
--- python-mode-4.35/fink/emacsen-startup       Thu Jan  1 10:00:00 1970
+++ python-mode-4.35.fink/fink/emacsen-startup  Mon Jul 28 18:05:02 2003
@@ -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 email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to