aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2017-10-23 15:32:36 +0800
committertobik <tobik@FreeBSD.org>2017-10-23 15:32:36 +0800
commitfa429ff9cd810be875c7fe3308f217ffa33fb35b (patch)
tree8fea27850a584f3f97242f410297366b0afe5191
parentbd3596c222ce9973af423dd5470794c155fa7b11 (diff)
downloadfreebsd-ports-gnome-fa429ff9cd810be875c7fe3308f217ffa33fb35b.tar.gz
freebsd-ports-gnome-fa429ff9cd810be875c7fe3308f217ffa33fb35b.tar.zst
freebsd-ports-gnome-fa429ff9cd810be875c7fe3308f217ffa33fb35b.zip
devel/astyle: Update to 3.0.1
- Install example option files Changes: http://astyle.sourceforge.net/notes.html PR: 223173 Approved by: lme (maintainer)
-rw-r--r--devel/astyle/Makefile18
-rw-r--r--devel/astyle/distinfo6
-rw-r--r--devel/astyle/pkg-plist13
3 files changed, 24 insertions, 13 deletions
diff --git a/devel/astyle/Makefile b/devel/astyle/Makefile
index bfef5f8334df..b43d488a5e84 100644
--- a/devel/astyle/Makefile
+++ b/devel/astyle/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= astyle
-PORTVERSION= 2.06
+PORTVERSION= 3.0.1
CATEGORIES= devel textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
@@ -11,23 +11,21 @@ MAINTAINER= lme@FreeBSD.org
COMMENT= Source code indenter and formatter for C, C++, C\#, and Java
LICENSE= MIT
-LICENSE_FILE= ${WRKDIR}/astyle/LICENSE.txt
+LICENSE_FILE= ${WRKDIR}/astyle/LICENSE.md
-ALL_TARGET= astyle
-LDFLAGS+= -s
-USES= compiler gmake iconv
+USES= compiler dos2unix gmake
+ALL_TARGET= astyle
+DOS2UNIX_GLOB= *.ini
WRKSRC= ${WRKDIR}/astyle/build/${COMPILER_TYPE}
-OPTIONS_DEFINE= DOCS
-
-pre-patch:
- @${REINPLACE_CMD} -e 's,\(CFLAGSr.*=.*\),\1 -I${LOCALBASE}/include,' \
- ${WRKSRC}/Makefile
+OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/astyle/doc/* ${STAGEDIR}${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKDIR}/astyle/file/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/devel/astyle/distinfo b/devel/astyle/distinfo
index 0ac5c71219b5..ae0b9356eb34 100644
--- a/devel/astyle/distinfo
+++ b/devel/astyle/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1483308022
-SHA256 (astyle_2.06_linux.tar.gz) = 3b7212210dc139e8f648e004b758c0be1b3ceb1694b22a879202d2b833db7c7e
-SIZE (astyle_2.06_linux.tar.gz) = 162037
+TIMESTAMP = 1508703851
+SHA256 (astyle_3.0.1_linux.tar.gz) = 6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd
+SIZE (astyle_3.0.1_linux.tar.gz) = 172483
diff --git a/devel/astyle/pkg-plist b/devel/astyle/pkg-plist
index df6221c4d2b9..afda622667eb 100644
--- a/devel/astyle/pkg-plist
+++ b/devel/astyle/pkg-plist
@@ -4,3 +4,16 @@ bin/astyle
%%PORTDOCS%%%%DOCSDIR%%/news.html
%%PORTDOCS%%%%DOCSDIR%%/notes.html
%%PORTDOCS%%%%DOCSDIR%%/styles.css
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/allman.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/astyle.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/chromium.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnu.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/google.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/horstmann.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/linux.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/llvm.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mozilla.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stroustrup.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/visualstudio.ini
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/webkit.ini