Skip to content

Commit

Permalink
devel/astyle: Update to 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Apr 27, 2023
1 parent 5682397 commit 35cb4f7
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 51 deletions.
23 changes: 10 additions & 13 deletions devel/astyle/Makefile
@@ -1,38 +1,35 @@
PORTNAME= astyle
PORTVERSION= 3.1
PORTREVISION= 3
PORTVERSION= 3.2.1
CATEGORIES= devel textproc
MASTER_SITES= SF/astyle/astyle/astyle%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
MASTER_SITES= SF/astyle/astyle/astyle%20${PORTVERSION:R}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Source code indenter and formatter for C, C++, C\#, and Java
WWW= http://astyle.sourceforge.net/
WWW= https://astyle.sourceforge.net/ \
https://gitlab.com/saalen/astyle

LICENSE= MIT
LICENSE_FILE= ${WRKDIR}/astyle/LICENSE.md
LICENSE_FILE= ${WRKSRC}/../../LICENSE.md

USES= compiler:c++11-lang dos2unix gmake
USES= compiler:c++11-lang dos2unix gmake tar:bz2

ALL_TARGET= astyle
WRKSRC= ${WRKDIR}/astyle/build/${CHOSEN_COMPILER_TYPE}
MAKE_ENV= CXX="${CXX}"
WRKSRC_SUBDIR= build/${CHOSEN_COMPILER_TYPE}

DOS2UNIX_GLOB= *.ini

OPTIONS_DEFINE= DOCS EXAMPLES

post-patch:
@${REINPLACE_CMD} -e 's|%%CXX%%|${CXX}|' ${WRKSRC}/${MAKEFILE}

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/astyle/doc/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../../doc/* ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/astyle/file/* ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/../../file/* ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions devel/astyle/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1516007468
SHA256 (astyle_3.1_linux.tar.gz) = cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
SIZE (astyle_3.1_linux.tar.gz) = 185589
TIMESTAMP = 1682354468
SHA256 (astyle-3.2.1.tar.bz2) = 191576fbd1f4abe55a25769c176da78294ec590f96f27037a4746bda0f84fe60
SIZE (astyle-3.2.1.tar.bz2) = 224540
11 changes: 0 additions & 11 deletions devel/astyle/files/patch-build_clang_Makefile

This file was deleted.

11 changes: 0 additions & 11 deletions devel/astyle/files/patch-build_gcc_Makefile

This file was deleted.

13 changes: 0 additions & 13 deletions devel/astyle/files/patch-src_astyle__main.cpp

This file was deleted.

16 changes: 16 additions & 0 deletions devel/astyle/pkg-plist
@@ -1,12 +1,28 @@
bin/astyle
%%PORTDOCS%%%%DOCSDIR%%/astyle.html
%%PORTDOCS%%%%DOCSDIR%%/development.html
%%PORTDOCS%%%%DOCSDIR%%/favicon.ico
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/install.html
%%PORTDOCS%%%%DOCSDIR%%/links.html
%%PORTDOCS%%%%DOCSDIR%%/news.html
%%PORTDOCS%%%%DOCSDIR%%/newsArchives.html
%%PORTDOCS%%%%DOCSDIR%%/notes.html
%%PORTDOCS%%%%DOCSDIR%%/notesArchives.html
%%PORTDOCS%%%%DOCSDIR%%/scripts.html
%%PORTDOCS%%%%DOCSDIR%%/styles.css
%%PORTDOCS%%%%DOCSDIR%%/subversion.html
%%PORTDOCS%%%%DOCSDIR%%/vsinstall.html
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README.md
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/allman.ini
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/astyle.ini
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/chromium.ini
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clang-chromium.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clang-google.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clang-llvm.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clang-mozilla.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clang-visualstudio.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clang-webkit.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnu.ini
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/google.ini
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/horstmann.ini
Expand Down

0 comments on commit 35cb4f7

Please sign in to comment.