Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 23:54:42 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359174 - head/sysutils/colorize
Message-ID:  <201406242354.s5ONsg6m030102@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Tue Jun 24 23:54:41 2014
New Revision: 359174
URL: http://svnweb.freebsd.org/changeset/ports/359174
QAT: https://qat.redports.org/buildarchive/r359174/

Log:
  - Support staging
  - Fix fetch by using USE_GITHUB.  Checksum of distfile is different, but
    contents are the same.
  - Remove indefinite article from COMMENT
  - Add LICENSE
  - Use @sample in pkg-plist
  
  Approved by:	portmgr (blanket approval)

Modified:
  head/sysutils/colorize/Makefile
  head/sysutils/colorize/distinfo
  head/sysutils/colorize/pkg-plist

Modified: head/sysutils/colorize/Makefile
==============================================================================
--- head/sysutils/colorize/Makefile	Tue Jun 24 22:53:25 2014	(r359173)
+++ head/sysutils/colorize/Makefile	Tue Jun 24 23:54:41 2014	(r359174)
@@ -3,38 +3,33 @@
 
 PORTNAME=	colorize
 PORTVERSION=	0.3.4
+PORTREVISION=	1
 CATEGORIES=	sysutils
-MASTER_SITES=	ftp://ftp.lissyara.su/distfiles/ \
-		ftp://p3-800.lissyara.su/
-DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	admin@lissyara.su
-COMMENT=	A robust log colorizer
+COMMENT=	Robust log colorizer
+
+LICENSE=	GPLv2
 
 RUN_DEPENDS=	p5-Term-ANSIColor>=0:${PORTSDIR}/devel/p5-Term-ANSIColor
 
-WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
+USE_GITHUB=	yes
+GH_ACCOUNT=	raszi
+GH_TAGNAME=	v${PORTVERSION}
+GH_COMMIT=	e84a7b0
 
 NO_BUILD=	yes
 SUB_FILES=	pkg-message
 USES=		shebangfix perl5
 SHEBANG_FILES=	colorize
 
-MAN1=		colorize.1
-MANCOMPRESSED=	yes
-
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -i '' -e 's|/etc/colorizerc|${PREFIX}/etc/colorizerc|' \
 		${WRKSRC}/colorize
 
 do-install:
-	@${INSTALL_SCRIPT} ${WRKSRC}/colorize ${PREFIX}/bin
-	@${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/etc/colorizerc.dist
-.if !exists(${PREFIX}/etc/colorizerc)
-	@${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/etc/colorizerc
-.endif
-	@${INSTALL_MAN} ${WRKSRC}/colorize.1.gz ${PREFIX}/man/man1
-	@${SED} -e "s!/usr/local/!${PREFIX}/!" < ${PKGMESSAGE}
+	@${INSTALL_SCRIPT} ${WRKSRC}/colorize ${STAGEDIR}${PREFIX}/bin
+	@${INSTALL_DATA} ${WRKSRC}/colorizerc ${STAGEDIR}${PREFIX}/etc/colorizerc.sample
+	@${INSTALL_MAN} ${WRKSRC}/colorize.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
 
 .include <bsd.port.mk>

Modified: head/sysutils/colorize/distinfo
==============================================================================
--- head/sysutils/colorize/distinfo	Tue Jun 24 22:53:25 2014	(r359173)
+++ head/sysutils/colorize/distinfo	Tue Jun 24 23:54:41 2014	(r359174)
@@ -1,2 +1,2 @@
-SHA256 (colorize_0.3.4.tar.gz) = b2271411e2501b73b50e59fb5b3a9ea60444b3c98d784c2ea585fb7ff6ce69fa
-SIZE (colorize_0.3.4.tar.gz) = 17291
+SHA256 (colorize-0.3.4.tar.gz) = a837dceec31050802fc942439dc0038cdefb14dff6a5e081b65fc4016fbb00f4
+SIZE (colorize-0.3.4.tar.gz) = 17408

Modified: head/sysutils/colorize/pkg-plist
==============================================================================
--- head/sysutils/colorize/pkg-plist	Tue Jun 24 22:53:25 2014	(r359173)
+++ head/sysutils/colorize/pkg-plist	Tue Jun 24 23:54:41 2014	(r359174)
@@ -1,4 +1,3 @@
 bin/colorize
-@unexec if cmp -s %D/etc/colorizerc %D/etc/colorizerc.dist; then rm -f %D/etc/colorizerc; fi
-etc/colorizerc.dist
-@exec if [ ! -f %D/etc/colorizerc ]; then cp -f %D/etc/%f %D/etc/colorizerc; fi
+@sample etc/colorizerc.sample
+man/man1/colorize.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406242354.s5ONsg6m030102>