Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2015 10:43:28 +0000 (UTC)
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404227 - head/devel/cut
Message-ID:  <201512221043.tBMAhSfR067755@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wen
Date: Tue Dec 22 10:43:27 2015
New Revision: 404227
URL: https://svnweb.freebsd.org/changeset/ports/404227

Log:
  - Update to 2.7
  
  PR:		204194
  Submitted by:	tkato432@yahoo.com

Modified:
  head/devel/cut/Makefile
  head/devel/cut/distinfo
  head/devel/cut/pkg-descr
  head/devel/cut/pkg-plist

Modified: head/devel/cut/Makefile
==============================================================================
--- head/devel/cut/Makefile	Tue Dec 22 10:37:58 2015	(r404226)
+++ head/devel/cut/Makefile	Tue Dec 22 10:43:27 2015	(r404227)
@@ -2,23 +2,48 @@
 # $FreeBSD$
 
 PORTNAME=	cut
-PORTVERSION=	2.6
+PORTVERSION=	2.7
 CATEGORIES=	devel
-MASTER_SITES=	http://www.falvotech.com/content/cut/${PORTVERSION}/
+MASTER_SITES=	https://bitbucket.org/kc5tja/cut/get/
+DISTNAME=	v${PORTVERSION}
+DIST_SUBDIR=	cut
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Unit Testing Framework for C, C++, and Objective-C
 
-BROKEN=		Does not fetch
-USES=		python:run shebangfix
+LICENSE=	BSD3CLAUSE
+
+WRKSRC=		${WRKDIR}/kc5tja-cut-d4fc09276ea9
+
+USES=		python:run shebangfix tar:bzip2
 SHEBANG_FILES=	*.py
 ALL_TARGET=	build
 
+PLIST_SUB=	VERSION="${PORTVERSION}"
+
+OPTIONS_DEFINE=	DOCS
+
+do-configure:
+	@${ECHO_CMD} -n > ${WRKDIR}/cutgen
+	@${ECHO_CMD} "#!${SH}" >> ${WRKDIR}/cutgen
+	@${ECHO_CMD} "cd ${PYTHONPREFIX_SITELIBDIR}/cut" >> ${WRKDIR}/cutgen
+	@${ECHO_CMD} "exec ${PYTHON_CMD:T} cutgen.py" >> ${WRKDIR}/cutgen
+
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/build/bin/cutgen ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/build/bin/cutgen.py ${STAGEDIR}${PREFIX}/bin
-.for FILE in common.py lexer.py options.py parser.py
-	${INSTALL_SCRIPT} ${WRKSRC}/build/bin/${FILE} ${STAGEDIR}${PREFIX}/bin/cutgen_${FILE}
-.endfor
+	(cd ${WRKDIR} && ${INSTALL_SCRIPT} cutgen \
+		${STAGEDIR}${PREFIX}/bin)
+	@${MKDIR} ${STAGEDIR}${PREFIX}/include/cut/${PORTVERSION}
+	(cd ${WRKSRC} && ${INSTALL_DATA} cut.h \
+		${STAGEDIR}${PREFIX}/include/cut/${PORTVERSION})
+	(cd ${WRKSRC}/build/lib && ${INSTALL_DATA} libcut.a \
+		${STAGEDIR}${PREFIX}/lib)
+	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cut
+	(cd ${WRKSRC} && ${INSTALL_DATA} *.py \
+		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cut)
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} index.html \
+		${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>

Modified: head/devel/cut/distinfo
==============================================================================
--- head/devel/cut/distinfo	Tue Dec 22 10:37:58 2015	(r404226)
+++ head/devel/cut/distinfo	Tue Dec 22 10:43:27 2015	(r404227)
@@ -1,2 +1,2 @@
-SHA256 (cut-2.6.tar.gz) = ca1af2bfde22471f34c3f8852712983bac74150c7f7837367fece750d1ed793e
-SIZE (cut-2.6.tar.gz) = 302932
+SHA256 (cut/v2.7.tar.bz2) = 73cdaec95841b9665397f815c985c2e414eb26f54433e1718ad5d8e75fa8ff59
+SIZE (cut/v2.7.tar.bz2) = 9990

Modified: head/devel/cut/pkg-descr
==============================================================================
--- head/devel/cut/pkg-descr	Tue Dec 22 10:37:58 2015	(r404226)
+++ head/devel/cut/pkg-descr	Tue Dec 22 10:43:27 2015	(r404227)
@@ -8,9 +8,8 @@ CUT was primarily written by Samuel A. F
 starting life as distinct, and even competing, CUT 1.0 and test-assert
 packages. When it was finally decided to combine both packages into a
 single tool, CUT 2.0 was released, and found to be vastly more useful
-than either expected. CUT 2.4 is the latest version of the CUT 2.x
-series.
+than either expected.
 
 CUT follows standard error messages format supported by Emacs.
 
-WWW: http://www.falvotech.com/content/cut/
+WWW: https://bitbucket.org/kc5tja/cut/

Modified: head/devel/cut/pkg-plist
==============================================================================
--- head/devel/cut/pkg-plist	Tue Dec 22 10:37:58 2015	(r404226)
+++ head/devel/cut/pkg-plist	Tue Dec 22 10:43:27 2015	(r404227)
@@ -1,6 +1,9 @@
 bin/cutgen
-bin/cutgen.py
-bin/cutgen_common.py
-bin/cutgen_lexer.py
-bin/cutgen_options.py
-bin/cutgen_parser.py
+include/cut/%%VERSION%%/cut.h
+lib/libcut.a
+%%PYTHON_SITELIBDIR%%/cut/common.py
+%%PYTHON_SITELIBDIR%%/cut/cutgen.py
+%%PYTHON_SITELIBDIR%%/cut/lexer.py
+%%PYTHON_SITELIBDIR%%/cut/options.py
+%%PYTHON_SITELIBDIR%%/cut/parser.py
+%%PORTDOCS%%%%DOCSDIR%%/index.html



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