svn commit: r316082 - head/devel/astyle

Eitan Adler eadler at FreeBSD.org
Fri Apr 19 02:54:11 UTC 2013


Author: eadler
Date: Fri Apr 19 02:54:09 2013
New Revision: 316082
URL: http://svnweb.freebsd.org/changeset/ports/316082

Log:
  - Convert to OptionsNG
  - Strip header
  - Remove leading article
  - Better pkg-descr
  
  PR:		ports/176459
  Submitted by:	Kevin Zheng <kevinz5000 at gmail.com>
  Approved by:	maintainer timeout (> 1 month)
  Feature safe:	yes

Modified:
  head/devel/astyle/Makefile
  head/devel/astyle/pkg-descr

Modified: head/devel/astyle/Makefile
==============================================================================
--- head/devel/astyle/Makefile	Thu Apr 18 23:40:38 2013	(r316081)
+++ head/devel/astyle/Makefile	Fri Apr 19 02:54:09 2013	(r316082)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	astyle
-# Date created:		31 Jan 1999
-# Whom:			Don Croyle <croyle at gelemna.org>
-#
+# Created by: Don Croyle <croyle at gelemna.org>
 # $FreeBSD$
-#
 
 PORTNAME=	astyle
 PORTVERSION=	2.02.1
@@ -12,7 +8,7 @@ MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
 DISTNAME=	${PORTNAME}_${PORTVERSION}_linux
 
 MAINTAINER=	lme at FreeBSD.org
-COMMENT=	A reindenter and reformatter of C, C++, C\#, and Java source code
+COMMENT=	Source code indenter and formatter for C, C++, C\#, and Java
 
 ALL_TARGET=	astyle
 CFLAGS+=	-W -Wall -fno-rtti -fno-exceptions
@@ -26,14 +22,16 @@ WRKSRC=		${WRKDIR}/astyle/build/gcc
 pre-patch:
 	@${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},;' ${WRKSRC}/Makefile
 
+.include <bsd.port.options.mk>
+
 PLIST_FILES=	bin/astyle
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 PORTDOCS=	*
 .endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${DOCSDIR}
 .endif

Modified: head/devel/astyle/pkg-descr
==============================================================================
--- head/devel/astyle/pkg-descr	Thu Apr 18 23:40:38 2013	(r316081)
+++ head/devel/astyle/pkg-descr	Fri Apr 19 02:54:09 2013	(r316082)
@@ -1,3 +1,5 @@
-Artistic Style is a variant on indent that can handle C, C++ and Java source.
+Artistic Style is a source code indenter, formatter, and beautifier for the C,
+C++, C# and Java programming languages. It automatically re-indents and
+re-formats source files and can be used from a command line.
 
 WWW: http://astyle.sourceforge.net/


More information about the svn-ports-head mailing list