Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv19603

Modified Files:
        gnuplot.info 
Added Files:
        gnuplot.patch 
Log Message:
sync. w/ 10.!4/stable, validated on powerpc-darwin8


--- NEW FILE: gnuplot.patch ---
diff -Naur gnuplot-4.4.4.old/fink/gnuplot-mode-install 
gnuplot-4.4.4/fink/gnuplot-mode-install
--- gnuplot-4.4.4.old/fink/gnuplot-mode-install 1970-01-01 09:00:00.000000000 
+0900
+++ gnuplot-4.4.4/fink/gnuplot-mode-install     2011-12-25 21:05:41.000000000 
+0900
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+# @PREFIX@/lib/emacsen-common/packages/install/gnuplot-mode
+
+# Written by Jim Van Zandt <j...@vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanv...@ctv.es> and octave by Dirk Eddelbuettel <e...@debian.org>.
+
+FLAVOR=$1
+PACKAGE=gnuplot-mode
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+SITEFLAG="-no-site-file"      # Do not load site files when byte-compiling
+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 0755 -d ${ELCDIR}
+
+cd ${ELDIR}
+FILES=`echo *.el`
+
+cd ${ELCDIR}
+for i in $FILES; do
+    ln -sf ${ELDIR}/$i .
+done
+
+cat << EOF > path.el
+    (setq load-path (cons "." load-path) byte-compile-warnings nil)
+    (require 'font-lock)
+    (defun hilit-repaint-command (foo))
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f path.el
+
+exit 0
diff -Naur gnuplot-4.4.4.old/fink/gnuplot-mode-remove 
gnuplot-4.4.4/fink/gnuplot-mode-remove
--- gnuplot-4.4.4.old/fink/gnuplot-mode-remove  1970-01-01 09:00:00.000000000 
+0900
+++ gnuplot-4.4.4/fink/gnuplot-mode-remove      2011-12-25 21:06:38.000000000 
+0900
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# @PREFIX@/lib/emacsen-common/packages/remove/gnuplot-mode
+
+FLAVOR=$1
+PACKAGE=gnuplot-mode
+
+if [ ${FLAVOR} != emacs ]; then
+#    if test -x /usr/sbin/install-info-altdir; then
+#        echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+#        install-info-altdir --quiet --remove --dirname=${FLAVOR} 
/usr/info/gnuplot-mode.info.gz
+#    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf @PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
diff -Naur gnuplot-4.4.4.old/fink/gnuplot-mode-startup 
gnuplot-4.4.4/fink/gnuplot-mode-startup
--- gnuplot-4.4.4.old/fink/gnuplot-mode-startup 1970-01-01 09:00:00.000000000 
+0900
+++ gnuplot-4.4.4/fink/gnuplot-mode-startup     2011-12-25 21:07:26.000000000 
+0900
@@ -0,0 +1,31 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Fink gnuplot-mode package
+;;
+;; Originally contributed by Nils Naumann <naum...@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <e...@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <j...@vanzandt.mv.com>
+
+;; The gnuplot-mode package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...).  The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+
+(debian-pkg-add-load-path-item
+ (concat "@PREFIX@/share/"
+        (symbol-name debian-emacs-flavor)
+        "/site-lisp/gnuplot-mode"))
+
+;; these lines enable the use of gnuplot mode
+  (autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t)
+  (autoload 'gnuplot-make-buffer "gnuplot" "open a buffer in gnuplot mode" t)
+
+;; this line automatically causes all files with the .gp extension to
+;; be loaded into gnuplot mode
+  (setq auto-mode-alist (append '(("\\.gp\\'" . gnuplot-mode)) 
auto-mode-alist))
+
+;; This line binds the function-9 key so that it opens a buffer into
+;; gnuplot mode
+;;  (global-set-key [(f9)] 'gnuplot-make-buffer)
+

Index: gnuplot.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/sci/gnuplot.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gnuplot.info        26 Nov 2011 19:15:07 -0000      1.3
+++ gnuplot.info        28 Dec 2011 00:25:50 -0000      1.4
@@ -1,7 +1,7 @@
 Info2: <<
 Package: gnuplot%type_pkg[-ui]
 Version: 4.4.4
-Revision: 1
+Revision: 2
 Type: -ui (-nox -nogtk .)
 Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>
 Conflicts: gnuplot, gnuplot-nox, gnuplot-nogtk
@@ -56,8 +56,11 @@
 GCC: 4.0
 Source: mirror:sourceforge:%{ni}/%{ni}-%v.tar.gz
 Source-MD5: 97a43328e81e57ebed7f135ca0c07e82
+PatchFile: %{ni}.patch
+PatchFile-MD5: c405371d2fe8ffd50ab09f45a2e39c44
 PatchScript:<<
   perl -pi -e 's/\bClass\b/GP_Class/g' `find src -name \*.c -o -name \*.cpp -o 
-name \*.h`
+  sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
 <<
 ConfigureParams: <<
  --mandir='${prefix}/share/man' --libexecdir='${prefix}/lib' 
--infodir='${prefix}/share/info' \
@@ -69,6 +72,7 @@
  --without-kpsexpand --enable-history-file --enable-thin-splines --enable-rgip 
\
  (%type_raw[-ui] != -nox) --x-includes=/usr/X11R6/include \
  (%type_raw[-ui] != -nox) --x-libraries=/usr/X11R6/lib \
+ --with-lispdir='${prefix}/share/emacs/site-lisp/gnuplot-mode' \
  --enable-dependency-tracking  
 <<
 CompileScript: <<
@@ -98,7 +102,14 @@
  cp -R demo %i/share/doc/%n
  mkdir %i/share/doc/%n/psdoc
  cp docs/psdoc/*ps %i/share/doc/%n/psdoc
- rm -f %i/share/emacs/site-lisp/*.elc
+
+ rm -f %i/share/emacs/site-lisp/gnuplot-mode/*.elc
+ install -m 755 -d                        %i/etc/emacs/site-start.d
+ install -m 644 fink/gnuplot-mode-startup %i/etc/emacs/site-start.d/50%n.el
+ install -m 755 -d                        
%i/lib/emacsen-common/packages/{install,remove}
+ install -m 755 fink/gnuplot-mode-install 
%i/lib/emacsen-common/packages/install/%n
+ install -m 755 fink/gnuplot-mode-remove  
%i/lib/emacsen-common/packages/remove/%n
+
  install -d %i/etc
  install -d %i/etc/app-defaults
  pushd %i/etc/app-defaults
@@ -110,6 +121,7 @@
  install %b/share/LaTeX/%{ni}.cfg %i/etc/texmf.local/latex/%{ni}
  rm -rf %i/share/texmf-local
 <<
+ConfFiles: %p/etc/emacs/site-start.d/50%n.el
 RuntimeVars: <<
  GDFONTPATH: /Library/Fonts
  GNUPLOT_DEFAULT_GDFONT: "Arial"
@@ -117,12 +129,17 @@
 PostInstScript:<<
  if [ `which kpsexpand` ]; then kpsexpand %p/etc/texmf.local/latex/%{ni}; fi
  if [ `which texhash` ]; then texhash %p/etc/texmf.local/latex/%{ni}; fi
- %p/lib/emacsen-common/emacs-package-install %{ni}
+ if [ "$1" = "configure" ] && [ -x %p/lib/emacsen-common/emacs-package-install 
]
+ then
+         %p/lib/emacsen-common/emacs-package-install %n
+ fi
 <<
 PreRmScript:<<
  if [ `which kpsexpand` ]; then kpsexpand %p/etc/texmf.local/latex/%{ni}; fi
  if [ `which texhash` ]; then texhash %p/etc/texmf.local/latex/%{ni}; fi
- %p/lib/emacsen-common/emacs-package-remove %{ni}
+ if [ -x %p/lib/emacsen-common/emacs-package-remove ] ; then
+         %p/lib/emacsen-common/emacs-package-remove %n
+ fi
 <<
 
 DocFiles: BUGS FAQ.pdf README NEWS ChangeLog Copyright


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to