mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Convert/update colordiff to working recipe
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
DESCRIPTION="Colorizes output of diff"
|
||||
HOMEPAGE="http://colordiff.sourceforge.net/"
|
||||
SRC_URI="http://colordiff.sourceforge.net/colordiff-1.0.10.tar.gz"
|
||||
CHECKSUM_MD5="e3e86e2837deb884e43eacdc96a67baa"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-lang/perl >= 5.10.1
|
||||
sys-apps/diffutils >= 2.8.1"
|
||||
BUILD()
|
||||
{
|
||||
# Nothing to see here
|
||||
cd colordiff-1.0.10
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd colordiff-1.0.10
|
||||
make INSTALL_DIR="$(finddir B_COMMON_BIN_DIRECTORY)" \
|
||||
MAN_DIR="$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1" \
|
||||
ETC_DIR="$(finddir B_USER_SETTINGS_DIRECTORY)" \
|
||||
install
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2002-2012 Dave Ewart"
|
||||
44
app-misc/colordiff/colordiff-1.0.13.recipe
Normal file
44
app-misc/colordiff/colordiff-1.0.13.recipe
Normal file
@@ -0,0 +1,44 @@
|
||||
SUMMARY="Colorizes output of diff"
|
||||
DESCRIPTION="
|
||||
The Perl script colordiff is a wrapper for 'diff' and produces the
|
||||
same output but with pretty 'syntax' highlighting. Colour schemes
|
||||
can be customized."
|
||||
|
||||
HOMEPAGE="http://colordiff.sourceforge.net/"
|
||||
SRC_URI="http://www.colordiff.org/colordiff-1.0.13.tar.gz"
|
||||
CHECKSUM_MD5="77093f7b31b84622bb59e75a12259ca5"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="any"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2002-2012 Dave Ewart"
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
PATCHES="colordiff-1.0.13.patch"
|
||||
|
||||
PROVIDES="
|
||||
colordiff = $portVersion
|
||||
cmd:colordiff = $portVersion
|
||||
cmd:cdiff = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
cmd:diff
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:make
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/colordiffrc keep-old
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make INSTALL_DIR="$prefix/bin" \
|
||||
MAN_DIR="${manDir}/man1" \
|
||||
ETC_DIR="${sysconfDir}" \
|
||||
install
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
diff -up colordiff-1.0.10/colordiff.pl.orig colordiff-1.0.10/colordiff.pl
|
||||
--- colordiff-1.0.10/colordiff.pl.orig 2012-08-05 14:43:30.500432896 -0600
|
||||
+++ colordiff-1.0.10/colordiff.pl 2012-08-05 14:43:41.898367488 -0600
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl -w
|
||||
+#!/boot/common/bin/perl -w
|
||||
|
||||
########################################################################
|
||||
# #
|
||||
18
app-misc/colordiff/patches/colordiff-1.0.13.patch
Normal file
18
app-misc/colordiff/patches/colordiff-1.0.13.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
diff -up colordiff-1.0.13/colordiff.pl.orig colordiff-1.0.13/colordiff.pl
|
||||
--- colordiff-1.0.13/colordiff.pl.orig 2013-10-15 17:51:27.583270400 -0600
|
||||
+++ colordiff-1.0.13/colordiff.pl 2013-10-15 17:58:48.368836608 -0600
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl -w
|
||||
+#!perl -w
|
||||
|
||||
########################################################################
|
||||
# #
|
||||
@@ -67,7 +67,7 @@ my $HOME = $ENV{HOME};
|
||||
my $etcdir = '/etc';
|
||||
my ($setting, $value);
|
||||
my @config_files = ("$etcdir/colordiffrc");
|
||||
-push (@config_files, "$ENV{HOME}/.colordiffrc") if (defined $ENV{HOME});
|
||||
+push (@config_files, "$ENV{HOME}/config/settings/colordiffrc") if (defined $ENV{HOME});
|
||||
my $config_file;
|
||||
my $diff_type = 'unknown';
|
||||
|
||||
Reference in New Issue
Block a user