diff --git a/srcpkgs/astyle/patches/enable-cpp17.patch b/srcpkgs/astyle/patches/enable-cpp17.patch new file mode 100644 index 00000000000..8afef0a3916 --- /dev/null +++ b/srcpkgs/astyle/patches/enable-cpp17.patch @@ -0,0 +1,11 @@ +--- a/build/gcc/Makefile ++++ b/build/gcc/Makefile +@@ -36,7 +36,7 @@ SYSCONF_PATH=$(prefix)/share/doc/astyle + bindir = bin + objdir = obj + ipath=$(prefix)/bin +-CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11 ++CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++17 + JAVAINCS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux + INSTALL=install -o $(USER) -g $(USER) + diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template index 6e91786676d..504e43bf20a 100644 --- a/srcpkgs/astyle/template +++ b/srcpkgs/astyle/template @@ -1,15 +1,15 @@ # Template file for 'astyle' pkgname=astyle -version=3.1 -revision=3 +version=3.5 +revision=1 build_wrksrc="build/gcc" build_style=gnu-makefile short_desc="Free, fast and small formatter for C, C++, C#, and Java source code" maintainer="Orphaned " license="MIT" homepage="https://astyle.sourceforge.net" -distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz" -checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7 +distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname/${pkgname}-${version}.tar.bz2" +checksum=defc1cb7bfa863bec470e836c257439a1199ca2c8b13a652a327fd78c8f5923c do_install() { vbin bin/astyle