Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/editors
In directory vz-cvs-3.sog:/tmp/cvs-serv31956

Modified Files:
        git-mode.info 
Added Files:
        git-mode.patch 
Log Message:
Update git-mode packaging to avoid triggering false validator warnings

Index: git-mode.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/editors/git-mode.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- git-mode.info       11 Apr 2011 13:12:44 -0000      1.5
+++ git-mode.info       26 Apr 2011 13:25:47 -0000      1.6
@@ -1,69 +1,15 @@
 Package: git-mode
-Version: 1.6.3.3
+Version: 1.7.4.4
 Revision: 1
-Description: Emacs mode for Git
-License: GPL
 Maintainer: None <fink-de...@lists.sourceforge.net>
+Depends: emacsen, git
+BuildDepends: fink (>= 0.24.12) 
 Source: http://www.kernel.org/pub/software/scm/git/git-%v.tar.bz2
-Source-MD5: 91ae46ac01dadab1962beb064abd5b60
+Source-MD5: 1313f71d62fa100b32fa313769a85f2a
 SourceDirectory: git-%v
-Depends: emacsen, git
-PatchScript: <<
-#!/bin/bash -ev
-cd %b/contrib/emacs
-mkdir fink
-cd fink
-cat <<END > 50git-mode-vars.el
-(require 'git)
-(require 'git-blame)
-(add-to-list 'vc-handled-backends 'GIT)
-END
-cat <<END > install
-#!/bin/sh
-set -e
-FLAVOR=\$1
-echo install/git-mode: Handling install of emacsen flavor \${FLAVOR}
-byte_compile_options="-batch -f batch-byte-compile"
-el_files="git.el git-blame.el"
-el_dir=%p/share/emacs/site-lisp/git-mode/
-elc_dir=%p/share/\${FLAVOR}/site-lisp/git-mode/
-el_var_file="50git-mode-vars.el"
-el_var_dir=%p/etc/emacs/site-start.d/
-elc_var_dir=%p/etc/\${FLAVOR}/site-start.d/
-if [ \${FLAVOR} != emacs ]
-then
-  echo install/git-mode: Byte-compiling for \${FLAVOR}
-  [ -d \${elc_dir} ] || mkdir \${elc_dir}
-  # Copy the temp .el files
-  (cd \${el_dir} && cp \${el_files} \${elc_dir})
-  (cd \${el_var_dir} && cp \${el_var_file} \${elc_var_dir})
-  # Byte compile them
-  (cd \${elc_dir} && \${FLAVOR} \${byte_compile_options} \${el_files} 2> 
/dev/null)
-  (cd \${elc_var_dir} && \${FLAVOR} \${byte_compile_options} \${el_var_file} 
2> /dev/null)
-  # Remove the redundant .el files. Presumes that any .el files in
-  # the <flavor> dir are trash.
-  rm \${elc_dir}/*.el \${elc_var_dir}/*.el 
-fi
-exit 0;
-END
-cat <<END > remove
-#!/bin/sh
-set -e
-FLAVOR=\$1
-el_dir=%p/share/emacs/site-lisp/git-mode/
-elc_dir=%p/share/\${FLAVOR}/site-lisp/git-mode/
-elc_var_file="50git-mode-vars.elc"
-elc_var_dir=%p/etc/\${FLAVOR}/site-start.d/
-echo remove/git-mode: Handling removal of emacsen flavor \${FLAVOR}
-if [ \${FLAVOR} != emacs ]
-then
-  echo remove/git-mode: Purging byte-compiled files for \${FLAVOR}
-  rm -f \${elc_dir}/*.elc \${elc_var_dir}/\${elc_var_file}
-  [ -d \${elc_dir} -a \`ls -la \${elc_dir}|wc -l\` -le 3 ] && rmdir \${elc_dir}
-fi
-exit 0;
-END
-<<
+PatchFile: %n.patch
+PatchFile-MD5: 8454b37126615abec158cd67f9eab8ea
+PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
 CompileScript: true
 InstallScript: <<
   install -d %i/share/emacs/site-lisp/git-mode
@@ -77,7 +23,7 @@
 <<
 PostInstScript: %p/lib/emacsen-common/emacs-package-install %n
 PreRmScript: %p/lib/emacsen-common/emacs-package-remove %n
-Homepage:
+Description: Emacs mode for Git
 DescDetail: <<
 This package provides:
 
@@ -100,4 +46,5 @@
 Start the git mode with `M-x git-status', and the git-blame mode with
 'M-x git-blame-mode'.
 <<
-
+Homepage:
+License: GPL

--- NEW FILE: git-mode.patch ---
diff -ruN git-1.7.4.4/contrib/emacs/fink/50git-mode-vars.el 
git-1.7.4.4-patched/contrib/emacs/fink/50git-mode-vars.el
--- git-1.7.4.4/contrib/emacs/fink/50git-mode-vars.el   1970-01-01 
01:00:00.000000000 +0100
+++ git-1.7.4.4-patched/contrib/emacs/fink/50git-mode-vars.el   2011-04-26 
14:47:45.000000000 +0200
@@ -0,0 +1,3 @@
+(require 'git)
+(require 'git-blame)
+(add-to-list 'vc-handled-backends 'GIT)
diff -ruN git-1.7.4.4/contrib/emacs/fink/install 
git-1.7.4.4-patched/contrib/emacs/fink/install
--- git-1.7.4.4/contrib/emacs/fink/install      1970-01-01 01:00:00.000000000 
+0100
+++ git-1.7.4.4-patched/contrib/emacs/fink/install      2011-04-26 
14:48:02.000000000 +0200
@@ -0,0 +1,26 @@
+#!/bin/sh
+set -e
+FLAVOR=$1
+echo install/git-mode: Handling install of emacsen flavor ${FLAVOR}
+byte_compile_options="-batch -f batch-byte-compile"
+el_files="git.el git-blame.el"
+el_dir=@PREFIX@/share/emacs/site-lisp/git-mode/
+elc_dir=@PREFIX@/share/${FLAVOR}/site-lisp/git-mode/
+el_var_file="50git-mode-vars.el"
+el_var_dir=@PREFIX@/etc/emacs/site-start.d/
+elc_var_dir=@PREFIX@/etc/${FLAVOR}/site-start.d/
+if [ ${FLAVOR} != emacs ]
+then
+  echo install/git-mode: Byte-compiling for ${FLAVOR}
+  [ -d ${elc_dir} ] || mkdir ${elc_dir}
+  # Copy the temp .el files
+  (cd ${el_dir} && cp ${el_files} ${elc_dir})
+  (cd ${el_var_dir} && cp ${el_var_file} ${elc_var_dir})
+  # Byte compile them
+  (cd ${elc_dir} && ${FLAVOR} ${byte_compile_options} ${el_files} 2> /dev/null)
+  (cd ${elc_var_dir} && ${FLAVOR} ${byte_compile_options} ${el_var_file} 2> 
/dev/null)
+  # Remove the redundant .el files. Presumes that any .el files in
+  # the <flavor> dir are trash.
+  rm ${elc_dir}/*.el ${elc_var_dir}/*.el 
+fi
+exit 0;
diff -ruN git-1.7.4.4/contrib/emacs/fink/remove 
git-1.7.4.4-patched/contrib/emacs/fink/remove
--- git-1.7.4.4/contrib/emacs/fink/remove       1970-01-01 01:00:00.000000000 
+0100
+++ git-1.7.4.4-patched/contrib/emacs/fink/remove       2011-04-26 
14:48:15.000000000 +0200
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+FLAVOR=$1
+el_dir=@PREFIX@/share/emacs/site-lisp/git-mode/
+elc_dir=@PREFIX@/share/${FLAVOR}/site-lisp/git-mode/
+elc_var_file="50git-mode-vars.elc"
+elc_var_dir=@PREFIX@/etc/${FLAVOR}/site-start.d/
+echo remove/git-mode: Handling removal of emacsen flavor ${FLAVOR}
+if [ ${FLAVOR} != emacs ]
+then
+  echo remove/git-mode: Purging byte-compiled files for ${FLAVOR}
+  rm -f ${elc_dir}/*.elc ${elc_var_dir}/${elc_var_file}
+  [ -d ${elc_dir} -a `ls -la ${elc_dir}|wc -l` -le 3 ] && rmdir ${elc_dir}
+fi
+exit 0;


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to