colordiff stable port information

Package: colordiff
Version: 1.0.7
Revision: 1
Depends: system-perl
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 940d4d1c388e66d352bce0887a39a3c5
PatchScript: <<
sed -e "s|/etc|%p/etc|g" colordiff.pl > colordiff
sed -i.bak 's|\(color_patch\)es|\1|g' colordiffrc*
rm *.bak
mv cdiff.sh cdiff
<<
####
CompileScript: echo nothing to do
InstallScript: <<
install -m 755 -d %i/bin
install -m 755 colordiff cdiff %i/bin
install -m 755 -d %i/share/man/man1
install -m 644 colordiff.1 %i/share/man/man1
install -m 755 -d %i/etc
install -m 644 colordiffrc* %i/etc
<<
Description: Colorized diff wrapper
DescDetail: <<
colordiff is a wrapper for diff and produces the same output as diff
but with coloured syntax highlighting at the command line to improve
readability. Theoutput is similar to how a diff-generated patch might
appear in Vim or Emacs with the appropriate syntax highlighting
options enabled. The colour schemes can be read from a central
configuration file or from a local user ~/.colordiffrc file.
colordiff makes use of ANSI colours and as such will only work when
ANSI colours can be used - typical examples are xterms and Eterms, as
well as console sessions.
colordiff has been tested on various flavours of Linux and under
OpenBSD, but should be broadly portable to other systems.
<<
DocFiles: BUGS CHANGES COPYING INSTALL README TODO
Maintainer: Corey Halpin
Homepage: http://colordiff.sourceforge.net/
License: GPL/LGPL

colordiff stable port .patch

diff -ru colordiff-1.0.5/Makefile colordiff-1.0.5-patched/Makefile
--- colordiff-1.0.5/Makefile 2005-03-28 15:07:03.000000000 -0600
+++ colordiff-1.0.5-patched/Makefile 2005-10-30 13:51:52.000000000 -0600
@@ -1,8 +1,9 @@
# $Id: Makefile,v 1.2.2.12 2005/03/28 21:07:03 daveewart Exp $

-INSTALL_DIR=/usr/local/bin
-MAN_DIR=/usr/local/man/man1
-ETC_DIR=/etc
+INSTALL_DIR=${PFX}/${SW}/bin
+MAN_DIR=${PFX}/${SW}/share/man/man1
+ETC_DIR=${SW}/etc
+ETC_DIR_INST=${PFX}/${ETC_DIR}
VERSION=1.0.5
DIST_FILES=COPYING INSTALL Makefile README \
colordiff.pl colordiffrc colordiffrc-lightbg cdiff.sh BUGS TODO CHANGES colordiff.1
@@ -24,17 +25,19 @@
sed -e "s%/etc%$(ETC_DIR)%g" colordiff.pl > colordiff.pl.for.install

install: etc
+ mkdir -p ${INSTALL_DIR}
+ mkdir -p ${MAN_DIR}
+ mkdir -p ${ETC_DIR_INST}
install -D colordiff.pl.for.install ${INSTALL_DIR}/colordiff
if [ ! -f ${INSTALL_DIR}/cdiff ] ; then \
install cdiff.sh ${INSTALL_DIR}/cdiff; \
fi
install -D colordiff.1 ${MAN_DIR}/colordiff.1
- if [ -f ${ETC_DIR}/colordiffrc ]; then \
- mv -f ${ETC_DIR}/colordiffrc ${ETC_DIR}/colordiffrc.old; \
+ if [ -f ${ETC_DIR_INST}/colordiffrc ]; then \
+ mv -f ${ETC_DIR_INST}/colordiffrc ${ETC_DIR_INST}/colordiffrc.old; \
fi
- cp colordiffrc ${ETC_DIR}/colordiffrc
- chown root.root ${ETC_DIR}/colordiffrc
- chmod 644 ${ETC_DIR}/colordiffrc
+ cp colordiffrc ${ETC_DIR_INST}/colordiffrc
+ chmod 644 ${ETC_DIR_INST}/colordiffrc
rm -f colordiff.pl.for.install

dist:
Only in colordiff-1.0.5-patched/: Makefile~

colordiff _unstable_ port .patch