ports/162856: Update port: devel/cons-test

KATO Tsuguru tkato432 at yahoo.com
Thu Nov 24 18:30:16 UTC 2011


>Number:         162856
>Category:       ports
>Synopsis:       Update port: devel/cons-test
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 24 18:30:15 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Add LICENSE
- Support MANPREFIX

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/cons-test/Makefile devel/cons-test/Makefile
--- /usr/ports/devel/cons-test/Makefile	2010-01-29 16:13:42.000000000 +0900
+++ devel/cons-test/Makefile	2011-11-25 02:09:02.000000000 +0900
@@ -7,40 +7,48 @@
 
 PORTNAME=	cons-test
 PORTVERSION=	2.2.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://www.dsmit.com/cons/stable/ \
 		http://www.gnu.org/software/cons/stable/ \
-		ftp://ftp.gnu.org/pub/gnu/cons/ \
+		ftp://ftp.gnu.org/pub/old-gnu/cons/ \
 		http://www.baldmt.com/cons/stable/
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A test bed for `Cons' development
 
+LICENSE=	GPLv2 # (or later)
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 RUN_DEPENDS=	${LOCALBASE}/bin/cons:${PORTSDIR}/devel/cons
 
-USE_PERL5=	yes
+WRKSRC=		${WRKDIR}/cons-${PORTVERSION}/test
 NO_BUILD=	yes
-CONS_TEST=	cons-${PORTVERSION}/test
-WRKSRC=		${WRKDIR}/${CONS_TEST}
-PLIST_SUB+=	CONS_VER=${PORTVERSION} CONS_TEST=${CONS_TEST}
+
+USE_PERL5=	yes
+PLIST_SUB=	CONS_VER="${PORTVERSION}" CONS_TEST="${CONS_TEST}"
+
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME:S/-test//}-${PORTVERSION}/test
 
-MAN1=		cons-test.1
 MANCOMPRESSED=	yes
-DOCS=		CHANGES COPYING COPYRIGHT README TODO Tests.txt
+MAN1=		cons-test.1
+
+CONS_TEST=      cons-${PORTVERSION}/test
+DOCS=		CHANGES COPYRIGHT README TODO Tests.txt
 TESTS=		1..83,101..147
 TEST_LIBS=	Cmd.pm Cons.pm
+
+post-patch:
+	@${REINPLACE_CMD} -e 's:/usr/lib:${PREFIX}/lib:g' \
+		${WRKSRC}/cons-test
+
 do-install:
 #
 # Install the script
 #
-	${MKDIR} ${PREFIX}/bin
-	@${SED} -e 's:/usr/lib:${PREFIX}/lib:g' \
-		<${WRKSRC}/cons-test >${PREFIX}/bin/cons-test
-	@${CHMOD} a+x ${PREFIX}/bin/cons-test
-
+	${INSTALL_SCRIPT} ${WRKSRC}/cons-test \
+		${PREFIX}/bin
 #
 # Install the tests
 #
@@ -60,14 +68,14 @@
 # Install the man pages
 #
 	${INSTALL_MAN} ${WRKSRC}/cons-test.1.gz \
-		${PREFIX}/man/man1/cons-test.1.gz
+		${MANPREFIX}/man/man1
 .if !defined(NOPORTDOCS)
 #
 # Install the documentation
 #
 	${MKDIR} ${DOCSDIR}
 .for f in ${DOCS}
-	${INSTALL} -c ${WRKSRC}/$f \
+	${INSTALL_DATA} ${WRKSRC}/${f} \
 		${DOCSDIR}
 .endfor
 .endif
diff -urN /usr/ports/devel/cons-test/pkg-plist devel/cons-test/pkg-plist
--- /usr/ports/devel/cons-test/pkg-plist	2008-11-30 15:14:43.000000000 +0900
+++ devel/cons-test/pkg-plist	2011-11-25 02:08:02.000000000 +0900
@@ -1,6 +1,5 @@
 bin/cons-test
 %%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/TODO
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list