mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 19:09:16 -04:00
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because textproc/source-highlight's Makefile does not explicitly set its C++ standard, this leads to several errors: In file included from fileutil.cc:28: ./fileutil.h:30:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] string readFile(const string &fileName) throw (IOException); ^~~~~~~~~~~~~~~~~~~ ./fileutil.h:30:41: note: use 'noexcept(false)' instead string readFile(const string &fileName) throw (IOException); ^~~~~~~~~~~~~~~~~~~ noexcept(false) fileutil.cc:51:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] string readFile(const string &fileName) throw (IOException) { ^~~~~~~~~~~~~~~~~~~ fileutil.cc:51:41: note: use 'noexcept(false)' instead string readFile(const string &fileName) throw (IOException) { ^~~~~~~~~~~~~~~~~~~ noexcept(false) In http://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=416b397 indicates that after 3.1.9 C++11 will be required and supported, so add USE_CXXSTD=gnu++11 to avoid the errors for now. PR: 271044 Approved by: tcberner (maintainer) MFH 2023Q2
37 lines
904 B
Makefile
37 lines
904 B
Makefile
PORTNAME= source-highlight
|
|
DISTVERSION= 3.1.9
|
|
PORTREVISION= 6
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= GNU/src-highlite
|
|
|
|
MAINTAINER= tcberner@FreeBSD.org
|
|
COMMENT= C/C++ and Java sources to HTML converter
|
|
WWW= https://www.gnu.org/software/src-highlite/source-highlight.html
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BROKEN_sparc64= fails to compile with GCC 4.2
|
|
|
|
BUILD_DEPENDS= exctags:devel/ctags
|
|
LIB_DEPENDS= libboost_regex.so:devel/boost-libs
|
|
|
|
USES= compiler:c++11-lang gmake pathfix libtool localbase
|
|
USE_CXXSTD= gnu++11
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-bash-completion
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFLICTS_INSTALL= java2html # bin/java2html
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
INFO= source-highlight-lib source-highlight
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} check
|
|
|
|
.include <bsd.port.mk>
|