Index: head/textproc/sdcv/Makefile =================================================================== --- head/textproc/sdcv/Makefile (revision 445187) +++ head/textproc/sdcv/Makefile (revision 445188) @@ -1,36 +1,38 @@ # Created by: chinsan # $FreeBSD$ PORTNAME= sdcv -DISTVERSION= 0.5.0-beta2 -DISTVERSIONSUFFIX= -Source +PORTVERSION= 0.5.1 +DISTVERSIONPREFIX= v CATEGORIES= textproc -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/ MAINTAINER= citrin@citrin.ru -COMMENT= Text-based utility for work with dictionaries in StarDict's format +COMMENT= Text-based utility for work with dictionaries in StarDict's format #' LICENSE= GPLv2+ -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cmake:outsource pkgconfig readline tar:bzip2 +USES= cmake:outsource pkgconfig readline USE_GNOME= glib20 SUB_FILES= pkg-message + +USE_GITHUB= yes +GH_ACCOUNT= Dushistov OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CMAKE_OFF= -DENABLE_NLS:BOOL=OFF post-patch: .for i in doc/sdcv.1 src/sdcv.cpp @${REINPLACE_CMD} -e \ 's|/usr/share|${PREFIX}/share|' ${WRKSRC}/${i} .endfor post-build-NLS-on: cd ${BUILD_WRKSRC} && ${MAKE_CMD} lang .include Index: head/textproc/sdcv/distinfo =================================================================== --- head/textproc/sdcv/distinfo (revision 445187) +++ head/textproc/sdcv/distinfo (revision 445188) @@ -1,3 +1,3 @@ -TIMESTAMP = 1488927916 -SHA256 (sdcv-0.5.0-beta2-Source.tar.bz2) = 386cfc96285a653c697f8baeab676cb3f1645cea029464d194872d0bbae14ffb -SIZE (sdcv-0.5.0-beta2-Source.tar.bz2) = 51508 +TIMESTAMP = 1499366673 +SHA256 (Dushistov-sdcv-v0.5.1_GH0.tar.gz) = d0c64429547adb127d5ff9f0f0db8c4bc663bc413dfb5b5d32c924a67171c247 +SIZE (Dushistov-sdcv-v0.5.1_GH0.tar.gz) = 58941 Index: head/textproc/sdcv/files/patch-src_libwrapper.cpp =================================================================== --- head/textproc/sdcv/files/patch-src_libwrapper.cpp (revision 445187) +++ head/textproc/sdcv/files/patch-src_libwrapper.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- src/libwrapper.cpp.orig 2013-07-07 14:34:44 UTC -+++ src/libwrapper.cpp -@@ -285,7 +285,7 @@ namespace { - sdcv_pager& operator=(const sdcv_pager&) = delete; - ~sdcv_pager() { - if (output != stdout) -- fclose(output); -+ pclose(output); - } - FILE *get_stream() { return output; } - private: Property changes on: head/textproc/sdcv/files/patch-src_libwrapper.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/textproc/sdcv/files/patch-src__lib__mapfile.hpp =================================================================== --- head/textproc/sdcv/files/patch-src__lib__mapfile.hpp (revision 445187) +++ head/textproc/sdcv/files/patch-src__lib__mapfile.hpp (nonexistent) @@ -1,12 +0,0 @@ ---- src/lib/mapfile.hpp.orig 2013-07-06 22:28:17 UTC -+++ src/lib/mapfile.hpp -@@ -4,6 +4,9 @@ - # include "config.h" - #endif - -+#include -+#include -+ - #ifdef HAVE_MMAP - # include - # include Property changes on: head/textproc/sdcv/files/patch-src__lib__mapfile.hpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/textproc/sdcv/files/patch-CMakeLists.txt =================================================================== --- head/textproc/sdcv/files/patch-CMakeLists.txt (revision 445187) +++ head/textproc/sdcv/files/patch-CMakeLists.txt (revision 445188) @@ -1,26 +1,26 @@ ---- CMakeLists.txt.orig 2013-07-07 14:55:00 UTC +--- CMakeLists.txt.orig 2017-04-22 18:44:35 UTC +++ CMakeLists.txt -@@ -110,6 +110,10 @@ target_link_libraries(sdcv +@@ -115,6 +115,10 @@ target_link_libraries(sdcv ${ZLIB_LIBRARIES} ${READLINE_LIBRARY} ) +set_target_properties(sdcv + PROPERTIES + LINK_FLAGS ${GLIB2_LDFLAGS} +) if (ENABLE_NLS) - set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "locale") + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "locale") endif () -@@ -117,8 +121,10 @@ endif () +@@ -122,8 +126,10 @@ endif () include(CPack) - INSTALL(TARGETS sdcv DESTINATION "bin") --INSTALL(FILES doc/sdcv.1 DESTINATION "share/man/man1") --INSTALL(FILES doc/uk/sdcv.1 DESTINATION "share/man/uk/man1") + install(TARGETS sdcv DESTINATION "bin") +-install(FILES doc/sdcv.1 DESTINATION "share/man/man1") +-install(FILES doc/uk/sdcv.1 DESTINATION "share/man/uk/man1") + +include(GNUInstallDirs) -+INSTALL(FILES doc/sdcv.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") -+INSTALL(FILES doc/uk/sdcv.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/uk.UTF-8/man1") ++install(FILES doc/sdcv.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") ++install(FILES doc/uk/sdcv.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/uk.UTF-8/man1") if (ENABLE_NLS) - INSTALL(DIRECTORY "${gettext_outDir}" DESTINATION "share") + install(DIRECTORY "${gettext_outDir}" DESTINATION "share") Index: head/textproc/sdcv/files/patch-src_mapfile.hpp =================================================================== --- head/textproc/sdcv/files/patch-src_mapfile.hpp (nonexistent) +++ head/textproc/sdcv/files/patch-src_mapfile.hpp (revision 445188) @@ -0,0 +1,12 @@ +--- src/mapfile.hpp.orig 2017-04-22 18:44:35 UTC ++++ src/mapfile.hpp +@@ -4,6 +4,9 @@ + # include "config.h" + #endif + ++#include ++#include ++ + #ifdef HAVE_MMAP + # include + # include Property changes on: head/textproc/sdcv/files/patch-src_mapfile.hpp ___________________________________________________________________ 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