Index: head/editors/poedit/Makefile =================================================================== --- head/editors/poedit/Makefile (revision 396214) +++ head/editors/poedit/Makefile (revision 396215) @@ -1,44 +1,46 @@ # Created by: Ying-Chieh Liao # $FreeBSD$ # $MCom: ports/editors/poedit/Makefile,v 1.2 2006/10/05 07:03:09 mezz Exp $ PORTNAME= poedit PORTVERSION= 1.8.4 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= http://github.com/vslavik/${PORTNAME}/releases/download/v${PORTVERSION}-oss/ MAINTAINER= rodrigo@FreeBSD.org COMMENT= Gettext catalogs (.po files) editor LICENSE= BSD2CLAUSE BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip LIB_DEPENDS= libgtkspell.so:${PORTSDIR}/textproc/gtkspell \ libboost_thread.so:${PORTSDIR}/devel/boost-libs \ liblucene++.so:${PORTSDIR}/textproc/luceneplusplus -USES= gettext gmake pkgconfig desktop-file-utils +USES= compiler:c++11-lib desktop-file-utils gettext gmake pkgconfig USE_WX= 3.0 WX_CONF_ARGS= absolute WX_UNICODE= yes USE_BDB= yes WITH_BDB_HIGHEST= yes GNU_CONFIGURE= yes CONFIGURE_ENV= WXRC="${WXRC_CMD}" INSTALLS_ICONS= yes CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include +## -stdlib=libc++ LDFLAGS+= -lpthread -L${BDB_LIB_DIR} -L${LOCALBASE}/lib OPTIONS_DEFINE= NLS OPTIONS_SUB=yes -NLS_USES= gettext -NLS_CONFIGURE_ENABLE= nls +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls post-patch: @${REINPLACE_CMD} -e \ 's/for version in .*;/for version in ${BDB_VER};/ ; \ s/-ldb-$$version/-l${BDB_LIB_NAME}/' ${WRKSRC}/configure .include Index: head/editors/poedit/files/patch-src_gexecute.cpp =================================================================== --- head/editors/poedit/files/patch-src_gexecute.cpp (nonexistent) +++ head/editors/poedit/files/patch-src_gexecute.cpp (revision 396215) @@ -0,0 +1,36 @@ +--- src/gexecute.cpp.orig 2015-08-03 10:49:16 UTC ++++ src/gexecute.cpp +@@ -32,6 +32,8 @@ + #include + #include + ++#include ++ + #include "gexecute.h" + #include "errors.h" + #include "chooselang.h" +@@ -49,6 +51,14 @@ + using std::regex_match; + #endif + ++static int strtoi(const std::string& s) ++{ ++ std::istringstream str(s); ++ int i; ++ str >> i; ++ return i; ++} ++ + namespace + { + +@@ -186,7 +196,8 @@ bool ExecuteGettextAndParseOutput(const + wsmatch match; + if (regex_match(e, match, RE_ERROR)) + { +- rec.line = std::stoi(match.str(1)); ++ std::string str(match.str(1).begin(),match.str(2).end()); ++ rec.line = strtoi(str); + rec.text = match.str(3); + errors.push_back(rec); + wxLogTrace("poedit.execute", Property changes on: head/editors/poedit/files/patch-src_gexecute.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/editors/poedit/files/patch-src_http__client__casablanca.cpp =================================================================== --- head/editors/poedit/files/patch-src_http__client__casablanca.cpp (nonexistent) +++ head/editors/poedit/files/patch-src_http__client__casablanca.cpp (revision 396215) @@ -0,0 +1,40 @@ +--- src/http_client_casablanca.cpp.orig 2015-08-03 10:49:16 UTC ++++ src/http_client_casablanca.cpp +@@ -30,10 +30,13 @@ + + #include + ++ + #include + #include + #include + #include ++#include ++ + + #ifdef _WIN32 + #include +@@ -66,6 +69,14 @@ struct json_dict::native + } + }; + ++static trtoi(const std::string& s) ++{ ++ std::istringstream str(s); ++ int i; ++ str >> i; ++ return i; ++} ++ + static inline json_dict make_json_dict(const web::json::value& x) + { + return std::make_shared(x); +@@ -102,7 +113,7 @@ int json_dict::number(const char *name) + { + // Some broken APIs may return strings instead of numbers, so lets try + // that too as a fallback +- return std::stoi(val.as_string()); ++ return strtoi(val.as_string()); + } + } + Property changes on: head/editors/poedit/files/patch-src_http__client__casablanca.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp =================================================================== --- head/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp (nonexistent) +++ head/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp (revision 396215) @@ -0,0 +1,10 @@ +--- src/tm/dump_legacy_tm.cpp.orig 2015-08-03 10:49:16 UTC ++++ src/tm/dump_legacy_tm.cpp +@@ -28,6 +28,7 @@ + #include + #include + ++#include + #include + + #ifdef DB_HEADER Property changes on: head/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property