ports/176575: devel/codeworker: Update to version 4.5.3

KATO Tsuguru tkato432 at yahoo.com
Thu Feb 28 18:10:17 UTC 2013


>Number:         176575
>Category:       ports
>Synopsis:       devel/codeworker: Update to version 4.5.3
>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 Feb 28 18:10:16 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 4.5.3

Remove file:
files/patch-GrfForeach.h
files/patch-NetSocket.cpp

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/codeworker/Makefile devel/codeworker/Makefile
--- /usr/ports/devel/codeworker/Makefile	2012-11-08 04:37:01.000000000 +0900
+++ devel/codeworker/Makefile	2013-02-20 05:29:59.000000000 +0900
@@ -1,34 +1,37 @@
-# ex:ts=8
-# Ports collection makefile for:	CodeWorker
-# Date created:			Dec 31, 2003
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD: head/devel/codeworker/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	codeworker
-PORTVERSION=	4.2
+PORTVERSION=	4.5.3
 CATEGORIES=	devel
 MASTER_SITES=	http://codeworker.free.fr/downloads/
 DISTNAME=	CodeWorker_SRC${PORTVERSION:S/./_/g}
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A parsing tool and a source code generator
+COMMENT=	Versatile parsing tool and source code generator
 
-EXTRACT_BEFORE_ARGS=	-qo -aa
+LICENSE=	LGPL21
 
 WRKSRC=		${WRKDIR}/CodeWorker${PORTVERSION:S/./_/g}
 
 USE_ZIP=	yes
+USE_DOS2UNIX=	yes
 USE_GMAKE=	yes
 MAKE_ARGS=	CC="${CXX}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LFLAGS="-lm"
 ALL_TARGET=	build
+MAKE_JOBS_SAFE=	yes
 
 CFLAGS+=	-Dstricmp=strcasecmp
 
 PLIST_FILES=	bin/codeworker
 
+post-patch:
+	@${FIND} ${WRKSRC} -name "*.cpp" -or -name "*.h" | ${XARGS} \
+		${REINPLACE_CMD} -e \
+		's|<features.h>|<cstdio>| ; \
+		 s|__GNUC_PREREQ |__GNUC_PREREQ__|'
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/codeworker ${PREFIX}/bin
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} codeworker ${PREFIX}/bin)
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/codeworker/distinfo devel/codeworker/distinfo
--- /usr/ports/devel/codeworker/distinfo	2012-11-08 04:37:01.000000000 +0900
+++ devel/codeworker/distinfo	2013-02-20 04:56:56.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (CodeWorker_SRC4_2.zip) = b6749f97ca5ba16ed6fd3be4fbb0ad6e98056f8c43c5854da17f3cd7325c5756
-SIZE (CodeWorker_SRC4_2.zip) = 3178438
+SHA256 (CodeWorker_SRC4_5_3.zip) = b5fdf7b01d280d37b5534fe29890cb21357e11393bcab6f129c1a141485f799f
+SIZE (CodeWorker_SRC4_5_3.zip) = 3277274
diff -urN /usr/ports/devel/codeworker/files/patch-GrfForeach.h devel/codeworker/files/patch-GrfForeach.h
--- /usr/ports/devel/codeworker/files/patch-GrfForeach.h	2012-11-08 04:37:01.000000000 +0900
+++ devel/codeworker/files/patch-GrfForeach.h	1970-01-01 09:00:00.000000000 +0900
@@ -1,14 +0,0 @@
-
-$FreeBSD: head/devel/codeworker/files/patch-GrfForeach.h 300896 2012-07-14 13:54:48Z beat $
-
---- GrfForeach.h.orig
-+++ GrfForeach.h
-@@ -83,7 +83,7 @@
- 		virtual SEQUENCE_INTERRUPTION_LIST executeReverseSortedForeach(DtaScriptVariable& theVariable, DtaScriptVariable& stackForeach);
- 		virtual SEQUENCE_INTERRUPTION_LIST executeReverseSortedIndirectForeach(DtaScriptVariable& theVariable, DtaScriptVariable& stackForeach);
- 
--		SEQUENCE_INTERRUPTION_LIST GrfForeach::iterate(DtaArrayIterator& iteratorData, DtaScriptVariable& stackForeach);
-+		SEQUENCE_INTERRUPTION_LIST iterate(DtaArrayIterator& iteratorData, DtaScriptVariable& stackForeach);
- 	};
- }
- 
diff -urN /usr/ports/devel/codeworker/files/patch-NetSocket.cpp devel/codeworker/files/patch-NetSocket.cpp
--- /usr/ports/devel/codeworker/files/patch-NetSocket.cpp	2012-11-08 04:37:01.000000000 +0900
+++ devel/codeworker/files/patch-NetSocket.cpp	1970-01-01 09:00:00.000000000 +0900
@@ -1,23 +0,0 @@
-
-$FreeBSD: head/devel/codeworker/files/patch-NetSocket.cpp 300896 2012-07-14 13:54:48Z beat $
-
---- NetSocket.cpp.orig
-+++ NetSocket.cpp
-@@ -45,7 +45,7 @@
- namespace CodeWorker {
- 	bool socketReaderCBK(ScpStream& theStream, void* pData) {
- 		char tcBuffer[2048];
--		int hSocket = (int) pData;
-+		int hSocket = (intptr_t) pData;
- 		int iLength = recv(hSocket, tcBuffer, 2047, 0);
- 		if (iLength <= 0) return false;
- 		theStream.writeBinaryData(tcBuffer, iLength);
-@@ -53,7 +53,7 @@
- 	}
- 
- 	bool socketWriterCBK(ScpStream& theStream, void* pData) {
--		int hSocket = (int) pData;
-+		int hSocket = (intptr_t) pData;
- 		int iLength = theStream.size();
- 		if (iLength <= 0) return false;
- 		return NetSocket::sendToSocket(hSocket, theStream.readBuffer(), iLength);
diff -urN /usr/ports/devel/codeworker/pkg-descr devel/codeworker/pkg-descr
--- /usr/ports/devel/codeworker/pkg-descr	2012-11-08 04:37:01.000000000 +0900
+++ devel/codeworker/pkg-descr	2013-02-20 04:45:13.000000000 +0900
@@ -1,13 +1,15 @@
-CodeWorker is a parsing tool and a source code generator, available in Open
-Source (distributed under the GNU Lesser General Public License) devoted to
-cover many aspects of the generative programming. Generative programming is
-a software engineering approach for producing reusable, tailor-made, evolvable
-and reliable IT systems with a high level of automation.
+CodeWorker is a parsing tool and a source code generator, available in
+Open Source (distributed under the GNU Lesser General Public License)
+devoted to cover many aspects of the generative programming. Generative
+programming is a software engineering approach for producing reusable,
+tailor-made, evolvable and reliable IT systems with a high level of
+automation.
 
-The tool interprets a scripting language that drives the processing of parsing
-and source code generation in a quite familiar syntax for developers. It
-insists on adapting the syntax of the language to the particularities of tasks
-to resolve (parse, code generation, procedural) and on offering powerful
-functionalities to do intensive source code generation.
+The tool interprets a scripting language that drives the processing of
+parsing and source code generation in a quite familiar syntax for
+developers. It insists on adapting the syntax of the language to the
+particularities of tasks to resolve (parse, code generation, procedural)
+and on offering powerful functionalities to do intensive source code
+generation.
 
 WWW: http://codeworker.free.fr/
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list