diff options
author | Grigorios Bouzakis <grbzks@gmail.com> | 2010-05-12 23:28:38 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:28:38 +0200 |
commit | 6a9d6f0f7a33d5ece9ac74453f5d2f986c4253c8 (patch) | |
tree | fa5f0a6f635d7bb392133b80414083819b7388be | |
parent | 93bdcb139c82a1e94c521360cb240109268767c9 (diff) |
development/colordiff: Added to 12.2 repository
-rw-r--r-- | development/colordiff/README | 3 | ||||
-rw-r--r-- | development/colordiff/colordiff.SlackBuild | 58 | ||||
-rw-r--r-- | development/colordiff/colordiff.info | 8 | ||||
-rw-r--r-- | development/colordiff/doinst.sh | 15 | ||||
-rw-r--r-- | development/colordiff/slack-desc | 19 |
5 files changed, 103 insertions, 0 deletions
diff --git a/development/colordiff/README b/development/colordiff/README new file mode 100644 index 0000000000000..75c564524e83d --- /dev/null +++ b/development/colordiff/README @@ -0,0 +1,3 @@ +The Perl script colordiff is a wrapper for 'diff' and produces +the same output but with pretty 'syntax' highlighting. Colour +schemes can be customized. diff --git a/development/colordiff/colordiff.SlackBuild b/development/colordiff/colordiff.SlackBuild new file mode 100644 index 0000000000000..a3daa87a0b708 --- /dev/null +++ b/development/colordiff/colordiff.SlackBuild @@ -0,0 +1,58 @@ +#!/bin/sh + +# Slackware build script for colordiff + +# Written by Grigorios Bouzakis (grbzks@gmail.com) + +PRGNAM=colordiff +VERSION=${VERSION:-1.0.9} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +DOCS="BUGS CHANGES COPYING INSTALL README TODO" + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p $PKG/etc $PKG/usr/bin $PKG/usr/man/man1 +install -m 644 colordiffrc $PKG/etc/colordiffrc.new +install -m 755 colordiff.pl $PKG/usr/bin/colordiff +install -m 755 cdiff.sh $PKG/usr/bin/cdiff +gzip -9c colordiff.1 > $PKG/usr/man/man1/colordiff.1.gz + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/development/colordiff/colordiff.info b/development/colordiff/colordiff.info new file mode 100644 index 0000000000000..2c661664d7b93 --- /dev/null +++ b/development/colordiff/colordiff.info @@ -0,0 +1,8 @@ +PRGNAM="colordiff" +VERSION="1.0.9" +HOMEPAGE="http://colordiff.sourceforge.net" +DOWNLOAD="http://colordiff.sourceforge.net/colordiff-1.0.9.tar.gz" +MD5SUM="31864847eaa4e900f72bbb6bbc64f1ec" +MAINTAINER="Grigorios Bouzakis" +EMAIL="grbzks@gmail.com" +APPROVED="dsomero" diff --git a/development/colordiff/doinst.sh b/development/colordiff/doinst.sh new file mode 100644 index 0000000000000..704751bd124b4 --- /dev/null +++ b/development/colordiff/doinst.sh @@ -0,0 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/colordiffrc.new + diff --git a/development/colordiff/slack-desc b/development/colordiff/slack-desc new file mode 100644 index 0000000000000..f01eb1a99bc1f --- /dev/null +++ b/development/colordiff/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +colordiff: colordiff (colour-highlighted 'diff' output) +colordiff: +colordiff: The Perl script colordiff is a wrapper for 'diff' and produces the +colordiff: same output but with pretty 'syntax' highlighting. +colordiff: Colour schemes can be customized. +colordiff: +colordiff: Homepage: http://colordiff.sourceforge.net/ +colordiff: +colordiff: +colordiff: +colordiff: |