ports/71872: Update port: devel/codeworker to 3.8

KATO Tsuguru tkato432 at yahoo.com
Sat Sep 18 16:40:47 UTC 2004


>Number:         71872
>Category:       ports
>Synopsis:       Update port: devel/codeworker to 3.8
>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:   Sat Sep 18 16:40:42 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update to version 3.8

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/codeworker/Makefile devel/codeworker/Makefile
--- /usr/ports/devel/codeworker/Makefile	Fri Feb 27 18:56:15 2004
+++ devel/codeworker/Makefile	Mon Sep  6 22:17:11 2004
@@ -7,8 +7,7 @@
 #
 
 PORTNAME=	codeworker
-PORTVERSION=	3.3
-PORTREVISION=	1
+PORTVERSION=	3.8
 CATEGORIES=	devel
 MASTER_SITES=	http://codeworker.free.fr/downloads/
 DISTNAME=	CodeWorker_SRC${PORTVERSION:S/./_/}
@@ -16,13 +15,15 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A parsing tool and a source code generator
 
-PLIST_FILES=	bin/codeworker
+EXTRACT_BEFORE_ARGS=	-qo -aa
+
+WRKSRC=		${WRKDIR}/CodeWorker${PORTVERSION:S/./_/}
+
 USE_ZIP=	yes
-USE_REINPLACE=	yes
-NO_WRKSUBDIR=	yes
-LDFLAGS+=	-lcompat
 USE_GMAKE=	yes
-MAKE_ENV=	LDFLAGS="${LDFLAGS}"
+MAKE_ARGS=	CC="${CXX}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LFLAGS="-lm"
+
+PLIST_FILES=	bin/codeworker
 
 .include <bsd.port.pre.mk>
 
@@ -30,11 +31,9 @@
 BROKEN=		"Does not compile on !i386"
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e "s|^CXXFLAGS|#CXXFLAGS|g" \
-		-e s"|LFLAGS|LDFLAGS|" -e "s|^LDFLAGS|#LDFLAGS|" \
-		-e "s|CC|CXX|g" -e "s|^CXX|#CXX|g" ${WRKSRC}/Makefile
-	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|||"
+.if ${OSVERSION} < 500035
+CFLAGS+=	-fpermissive
+.endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/codeworker ${PREFIX}/bin
diff -urN /usr/ports/devel/codeworker/distinfo devel/codeworker/distinfo
--- /usr/ports/devel/codeworker/distinfo	Thu Jan 29 20:21:09 2004
+++ devel/codeworker/distinfo	Mon Sep  6 22:16:58 2004
@@ -1,2 +1,2 @@
-MD5 (CodeWorker_SRC3_3.zip) = 1a2d88de860652e46356ba37bf9ea341
-SIZE (CodeWorker_SRC3_3.zip) = 1982777
+MD5 (CodeWorker_SRC3_8.zip) = d671dadf60c291659173e7ddba7ff576
+SIZE (CodeWorker_SRC3_8.zip) = 1648999
diff -urN /usr/ports/devel/codeworker/files/patch-DtaPatternScript.h devel/codeworker/files/patch-DtaPatternScript.h
--- /usr/ports/devel/codeworker/files/patch-DtaPatternScript.h	Sun Jan 25 23:25:59 2004
+++ devel/codeworker/files/patch-DtaPatternScript.h	Thu Jan  1 09:00:00 1970
@@ -1,10 +0,0 @@
---- DtaPatternScript.h.orig	Sun Jan 25 21:36:50 2004
-+++ DtaPatternScript.h	Sun Jan 25 21:40:17 2004
-@@ -24,6 +24,7 @@
- 
- #include "DtaScript.h"
- #include <map>
-+#include <memory>
- 
- namespace CodeWorker {
- 	#ifndef EXECUTE_FUNCTION_TYPE
diff -urN /usr/ports/devel/codeworker/files/patch-ScpStream.h devel/codeworker/files/patch-ScpStream.h
--- /usr/ports/devel/codeworker/files/patch-ScpStream.h	Sun Jan 25 23:25:59 2004
+++ devel/codeworker/files/patch-ScpStream.h	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- ScpStream.h.orig	Sun Jan 25 21:34:17 2004
-+++ ScpStream.h	Sun Jan 25 21:34:40 2004
-@@ -34,6 +34,8 @@
- #include <map>
- #include <set>
- 
-+#include <ctime>
-+
- namespace CodeWorker {
- 
- #ifdef IN
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list