- Update to 1.4

PR:		158473
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2011-07-02 18:22:31 +00:00
parent 80cd28094b
commit 13975c008a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276923
8 changed files with 21 additions and 67 deletions

View File

@ -7,7 +7,7 @@
#
PORTNAME= grc
PORTVERSION= 1.3
PORTVERSION= 1.4
CATEGORIES= misc
MASTER_SITES= http://kassiopeia.juls.savba.sk/~garabik/software/grc/
DISTNAME= ${PORTNAME}_${PORTVERSION}
@ -15,27 +15,30 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Generic Colouriser
DEPRECATED= Look like an abandonware, no more public distifles
EXPIRATION_DATE= 2011-08-01
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
USE_PYTHON_RUN= yes
MAN1= grc.1 grcat.1
post-patch:
.for file in grc grcat
@${REINPLACE_CMD} -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g ; \
s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
.for i in grc grcat
@${REINPLACE_CMD} -e \
's|/usr/bin/python|${SETENV} python|g ; \
s|"/etc/grc|"${PREFIX}/etc/grc|g ; \
s|/usr/local/share/grc|${DATADIR}|g ; \
s|, "/usr/share/grc/"||g' ${WRKSRC}/${i}
@${REINPLACE_CMD} -e \
's| /etc/grc| ${PREFIX}/etc/grc|g ; \
s|/usr/local/share/grc|${DATADIR}|g ; \
s|, /usr/share/grc/||g' ${WRKSRC}/${i}.1
.endfor
do-install:
.for f in grc grcat
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
.for i in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/${i} ${MAN1PREFIX}/man/man1
.for i in grc grcat
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${i}.1 ${MAN1PREFIX}/man/man1
.endfor
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/conf.* ${DATADIR}

View File

@ -1,2 +1,2 @@
SHA256 (grc_1.3.tar.gz) = cee26860a866aa1e905ff9e15b1dd5e4671263a1c109c94a2b70d836a10c0821
SIZE (grc_1.3.tar.gz) = 23658
SHA256 (grc_1.4.tar.gz) = bbfdc5ee074a857a8cff52f4b1941527c1dd192e1c2b45f69c624ce9fad4f4d0
SIZE (grc_1.4.tar.gz) = 24302

View File

@ -1,17 +0,0 @@
--- grc.orig Wed Sep 4 05:01:42 2002
+++ grc Tue Nov 12 00:58:50 2002
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#!%%PYTHON_CMD%%
import os, re, string, sys, getopt, signal
@@ -74,7 +74,7 @@
home = []
if os.environ.has_key('HOME'):
home = [os.environ['HOME']+"/.grc/grc.conf"]
- conffilenames = home + ["/etc/grc.conf"]
+ conffilenames = home + ["%%PREFIX%%/etc/grc.conf"]
for i in conffilenames:
if os.path.isfile(i):
conffile = i

View File

@ -1,14 +0,0 @@
--- grc.1.orig Sun Mar 25 21:10:52 2001
+++ grc.1 Sun Mar 25 21:14:38 2001
@@ -17,9 +17,9 @@
Configuration file for
.BR grc
-is determined by /etc/grc.conf file.
+is determined by %%PREFIX%%/etc/grc.conf file.
-Format of /etc/grc.conf:
+Format of %%PREFIX%%/etc/grc.conf:
each entry consists of 2 lines, between entries there can be any number of empty
lines or lines beginning with # (comments)

View File

@ -1,8 +0,0 @@
--- grcat.orig Sun Mar 25 20:48:10 2001
+++ grcat Sun Mar 25 20:48:51 2001
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#!%%PYTHON_CMD%%
import sys, os, string, getopt, re, signal, sys

View File

@ -1,11 +0,0 @@
--- grcat.1.orig Sun Mar 25 21:15:18 2001
+++ grcat.1 Sun Mar 25 21:15:39 2001
@@ -8,7 +8,7 @@
.SH DESCRIPTION
.I "configuration"
is a name of a configuration file. Directories
-~/.grc/, /usr/local/share/grc/, /usr/share/grc/
+~/.grc/, %%PREFIX%%/share/grc/, /usr/share/grc/
are searched for the file (in this order).
If the file is not found, it is assumed to be an absolute path of a

View File

@ -1,4 +1,4 @@
Generic Colouriser is yet another colouriser for beautifying your logfiles
or output of commands.
WWW: http://melkor.dnp.fmph.uniba.sk/~garabik/grc.html
WWW: http://kassiopeia.juls.savba.sk/~garabik/software/grc.html

View File

@ -1,6 +1,8 @@
bin/grc
bin/grcat
etc/grc.conf
%%DATADIR%%/conf.configure
%%DATADIR%%/conf.cvs
%%DATADIR%%/conf.diff
%%DATADIR%%/conf.esperanto
%%DATADIR%%/conf.gcc
@ -12,5 +14,4 @@ etc/grc.conf
%%DATADIR%%/conf.proftpd
%%DATADIR%%/conf.traceroute
%%DATADIR%%/conf.wdiff
%%DATADIR%%/conf.cvs
@dirrm %%DATADIR%%