Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2006 16:09:19 +0800 (CST)
From:      Li-Wen Hsu <lwhsu@lwhsu.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        andrew.nau.ua@gmail.com, lwhsu@lwhsu.org
Subject:   ports/105362: [PATCH] devel/astyle: update to 1.19
Message-ID:  <200611100809.kAA89J9q086881@knight.lwhsu.ckefgisc.org>
Resent-Message-ID: <200611100810.kAA8ALWp050296@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105362
>Category:       ports
>Synopsis:       [PATCH] devel/astyle: update to 1.19
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 10 08:10:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD knight.lwhsu.ckefgisc.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Fri Sep 29 19:45:24 CST 2006
>Description:
- Update to 1.19
- Respect CPPFLAGS, LDFLAGS
- Remove files/patch-ad
    Using ${REINPLACE_CMD} in post-configure to replace g++ with $(CXX)
- Remove files/patch-astyle__main.cpp
    Not needed in new version.

Removed file(s):
- files/patch-ad
- files/patch-astyle__main.cpp


Port maintainer (andrew.nau.ua@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- astyle-1.19.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/astyle/Makefile /home/lwhsu/ports/devel/astyle/Makefile
--- /usr/ports/devel/astyle/Makefile	Wed Oct 12 05:08:29 2005
+++ /home/lwhsu/ports/devel/astyle/Makefile	Fri Nov 10 15:17:03 2006
@@ -6,33 +6,43 @@
 #
 
 PORTNAME=	astyle
-PORTVERSION=	1.15.3
-PORTREVISION=	1
+PORTVERSION=	1.19
 CATEGORIES=	devel textproc
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
-DISTNAME=	${PORTNAME}_${PORTVERSION}
+DISTNAME=	${PORTNAME}_${PORTVERSION}_linux
 
 MAINTAINER=	andrew.nau.ua@gmail.com
-COMMENT=	A reindenter and reformatter of C++, C and Java source code
+COMMENT=	A reindenter and reformatter of C, C++, C\# and Java source code
 
-USE_ZIP=	yes
-EXTRACT_BEFORE_ARGS=	-q -aa
-EXTRACT_AFTER_ARGS=	-d ${DISTNAME}
-CFLAGS+=	"-fpermissive"
 ALL_TARGET=	astyle
-MAKE_ARGS=	CPPFLAGS="${CXXFLAGS}"
+CXXFLAGS+=	-fno-rtti -fno-exceptions
+LDFLAGS+=	-s
+MAKE_ARGS=	CPPFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
+
+WRKSRC=		${WRKDIR}/astyle/src
+
+pre-patch:
+	${REINPLACE_CMD} -e \
+		's,^ifdef,#ifdef,; \
+		s,^else,#else,; \
+		s,^endif,#endif,; \
+		s,^CPPFLAGS,#CPPFLAGS,; \
+		s,^LDFLAGS,#LDFLAGS,;' \
+		${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e 's,g++,$$(CXX),' ${WRKSRC}/Makefile
 
 PLIST_FILES=	bin/astyle
 .if !defined(NOPORTDOCS)
-PORTDOCS=	astyle.html astyle_release_notes.html license.html
+PORTDOCS=	astyle.html astyleX.html astyle_news.html astyle_release_notes.html install.txt license.html
 .endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/astyle ${PREFIX}/bin
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.txt ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/devel/astyle/distinfo /home/lwhsu/ports/devel/astyle/distinfo
--- /usr/ports/devel/astyle/distinfo	Sun Jan 22 16:27:49 2006
+++ /home/lwhsu/ports/devel/astyle/distinfo	Fri Nov 10 13:53:39 2006
@@ -1,3 +1,3 @@
-MD5 (astyle_1.15.3.zip) = 4d8adbcd8703aea00fcd2670be090ddd
-SHA256 (astyle_1.15.3.zip) = 091adc2dbdcc7532c70dfb00e46361271c23726baa9cd0e5e0e3616838693c75
-SIZE (astyle_1.15.3.zip) = 60880
+MD5 (astyle_1.19_linux.tar.gz) = 2cd52822f39b9211846c4070999a492d
+SHA256 (astyle_1.19_linux.tar.gz) = 3582e737bae089e2b81b58166e0fee21e30d846eb357b68525c1e6178a5542f6
+SIZE (astyle_1.19_linux.tar.gz) = 63610
diff -ruN --exclude=CVS /usr/ports/devel/astyle/files/patch-ad /home/lwhsu/ports/devel/astyle/files/patch-ad
--- /usr/ports/devel/astyle/files/patch-ad	Wed Apr 20 05:38:03 2005
+++ /home/lwhsu/ports/devel/astyle/files/patch-ad	Thu Jan  1 08:00:00 1970
@@ -1,15 +0,0 @@
---- Makefile.orig	Fri Feb 11 13:02:00 2000
-+++ Makefile	Sat Oct 26 21:35:38 2002
-@@ -1,10 +1,10 @@
- OBJS = ASResource.o ASBeautifier.o ASFormatter.o astyle_main.o
- 
- astyle: $(OBJS)
--	g++ $(CPPFLAGS) -o astyle  $(OBJS)
-+	$(CXX) $(CPPFLAGS) -o astyle  $(OBJS)
- 
- .cpp.o:
--	g++ $(CPPFLAGS) -c $<
-+	$(CXX) $(CPPFLAGS) -c $<
- .SUFFIXES: .cpp .c .o
- 
- clean:
diff -ruN --exclude=CVS /usr/ports/devel/astyle/files/patch-astyle__main.cpp /home/lwhsu/ports/devel/astyle/files/patch-astyle__main.cpp
--- /usr/ports/devel/astyle/files/patch-astyle__main.cpp	Sun May  8 04:36:56 2005
+++ /home/lwhsu/ports/devel/astyle/files/patch-astyle__main.cpp	Thu Jan  1 08:00:00 1970
@@ -1,20 +0,0 @@
---- astyle_main.cpp.orig	Thu Mar  7 08:22:30 2002
-+++ astyle_main.cpp	Sat May  7 22:31:21 2005
-@@ -267,7 +267,7 @@
-     {
-         manuallySetJavaStyle(formatter);
-     }
--    else if ( IS_OPTIONS(arg, "t", "indent=tab=") )
-+    else if ( IS_PARAM_OPTIONS(arg, "t", "indent=tab=") )
-     {
-         int spaceNum = 4;
-         string spaceNumParam = GET_PARAMS(arg, "t", "indent=tab=");
-@@ -275,7 +275,7 @@
-             spaceNum = atoi(spaceNumParam.c_str());
-         formatter.setTabIndentation(spaceNum, false);
-     }
--    else if ( IS_OPTIONS(arg, "T", "force-indent=tab=") )
-+    else if ( IS_PARAM_OPTIONS(arg, "T", "force-indent=tab=") )
-     {
-         int spaceNum = 4;
-         string spaceNumParam = GET_PARAMS(arg, "T", "force-indent=tab=");
--- astyle-1.19.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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