git: 465dc9cfc657 - main - textproc/ctpp2: do not use one of the obsolete C++ features
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Oct 2024 14:31:51 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=465dc9cfc6578380d27c8920b325d05ea0d4b616 commit 465dc9cfc6578380d27c8920b325d05ea0d4b616 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2024-10-18 14:30:32 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2024-10-18 14:30:32 +0000 textproc/ctpp2: do not use one of the obsolete C++ features Deriving from the `std::binary_function' base class template was never really needed (it's just some seldom used typedefs) and it had been deprecated since C++11 to be finally removed in C++17. --- textproc/ctpp2/Makefile | 2 +- textproc/ctpp2/files/patch-include_CTPP2SyscallFactory.hpp | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/textproc/ctpp2/Makefile b/textproc/ctpp2/Makefile index 7ac2417152fd..8a03464981ba 100644 --- a/textproc/ctpp2/Makefile +++ b/textproc/ctpp2/Makefile @@ -1,6 +1,6 @@ PORTNAME= ctpp2 PORTVERSION= 2.8.3 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= textproc devel MASTER_SITES= http://ctpp.havoc.ru/download/ diff --git a/textproc/ctpp2/files/patch-include_CTPP2SyscallFactory.hpp b/textproc/ctpp2/files/patch-include_CTPP2SyscallFactory.hpp new file mode 100644 index 000000000000..635b17a302be --- /dev/null +++ b/textproc/ctpp2/files/patch-include_CTPP2SyscallFactory.hpp @@ -0,0 +1,12 @@ +--- include/CTPP2SyscallFactory.hpp.orig 2012-08-02 07:22:44 UTC ++++ include/CTPP2SyscallFactory.hpp +@@ -104,8 +104,7 @@ class CTPP2DECL SyscallFactory (private) + @struct HandlerRefsSort SyscallFactory.hpp <SyscallFactory.hpp> + @brief Case-insensitive sorting functor + */ +- struct HandlerRefsSort: +- public STLW::binary_function<STLW::string, STLW::string, bool> ++ struct HandlerRefsSort + { + /** + @brief comparison operator