Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/editors
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv4279
Added Files:
git-mode.info
Log Message:
New package.
--- NEW FILE: git-mode.info ---
Package: git-mode
Version: 1.5.3.6
Revision: 1
Description: Emacs mode for Git
License: GPL
Maintainer: Sebastien Maret <[EMAIL PROTECTED]>
Source: http://www.kernel.org/pub/software/scm/git/git-%v.tar.bz2
Source-MD5: 9b0a6cea7b084f3fc78f264cd2fb49bd
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 vc-git.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
<<
CompileScript: true
InstallScript: <<
install -d %i/share/emacs/site-lisp/git-mode
install -m 644 contrib/emacs/*.el %i/share/emacs/site-lisp/git-mode
install -d %i/etc/emacs/site-start.d
install -m 644 contrib/emacs/fink/50git-mode-vars.el %i/etc/emacs/site-start.d
install -d %i/lib/emacsen-common/packages/install
install -d %i/lib/emacsen-common/packages/remove
install -m 755 contrib/emacs/fink/install
%i/lib/emacsen-common/packages/install/git-mode
install -m 755 contrib/emacs/fink/remove
%i/lib/emacsen-common/packages/remove/git-mode
<<
PostInstScript: %p/lib/emacsen-common/emacs-package-install %n
PreRmScript: %p/lib/emacsen-common/emacs-package-remove %n
Homepage:
DescDetail: <<
This package provides:
- an Emacs interface for the git version control system. It allows for
easy access to the most frequently used git commands. The user
interface is as far as possible identical to that of the PCL-CVS
mode.
- an Emacs implementation of incremental git-blame. When you turn it
on while viewing a file, the editor buffer will be updated by
setting the background of individual lines to a color that reflects
which commit it comes from. And when you move around the buffer, a
one-line summary will be shown in the echo area.
- a VC backend for git
<<
DescUsage: <<
Start the git mode with `M-x git-status', and the git-blame mode with
'M-x git-blame-mode'.
<<
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs