ports/184553: [patch] Update devel/astyle to 2.04
Kevin Zheng
kevinz5000 at gmail.com
Fri Dec 6 23:20:00 UTC 2013
>Number: 184553
>Category: ports
>Synopsis: [patch] Update devel/astyle to 2.04
>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: Fri Dec 06 23:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Kevin Zheng
>Release: 9.2-RELEASE
>Organization:
>Environment:
FreeBSD sigma.local 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013 root at bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Update devel/astyle to 2.04. In addition:
- Attach LICENSE (LGPL3)
- Don't include LICENSE_FILE, because port only has a HTML-ified license
- Add missing DOCS option to OPTIONS_DEFINE
- Fix pkg-plist when not installing PORTDOCS
The port also ships with a 'Makefile' that uses `clang`, perhaps it should be used to avoid the dependency on GCC?
>How-To-Repeat:
>Fix:
Apply the attached patch.
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 335786)
+++ Makefile (working copy)
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= astyle
-PORTVERSION= 2.03
-PORTREVISION= 1
+PORTVERSION= 2.04
CATEGORIES= devel textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
@@ -11,6 +10,8 @@
MAINTAINER= lme at FreeBSD.org
COMMENT= Source code indenter and formatter for C, C++, C\#, and Java
+LICENSE= LGPL3
+
ALL_TARGET= astyle
CFLAGS+= -W -Wall -fno-rtti -fno-exceptions
LDFLAGS+= -s
@@ -20,6 +21,8 @@
WRKSRC= ${WRKDIR}/astyle/build/gcc
+OPTIONS_DEFINE= DOCS
+
pre-patch:
@${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},;' ${WRKSRC}/Makefile
@@ -27,7 +30,9 @@
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${STAGEDIR}${DOCSDIR}
+.endif
.include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo (revision 335786)
+++ distinfo (working copy)
@@ -1,2 +1,2 @@
-SHA256 (astyle_2.03_linux.tar.gz) = 22b5249a0b8c9fab3b3bcd467abcb3c6b4a78458b528028634a83dca4c6ca389
-SIZE (astyle_2.03_linux.tar.gz) = 142577
+SHA256 (astyle_2.04_linux.tar.gz) = 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60
+SIZE (astyle_2.04_linux.tar.gz) = 156974
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list