FreeBSD Bugzilla – Attachment 180680 Details for
Bug 217671
[patch] textproc/sdcv update to 0.5.0-beta2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update to 0.5.0-beta2
sdcv.patch (text/plain), 11.81 KB, created by
Anton Yuzhaninov
on 2017-03-09 20:32:17 UTC
(
hide
)
Description:
update to 0.5.0-beta2
Filename:
MIME Type:
Creator:
Anton Yuzhaninov
Created:
2017-03-09 20:32:17 UTC
Size:
11.81 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 435778) >+++ Makefile (working copy) >@@ -2,37 +2,35 @@ > # $FreeBSD$ > > PORTNAME= sdcv >-PORTVERSION= 0.4.2 >-PORTREVISION= 3 >+DISTVERSION= 0.5.0-beta2 >+DISTVERSIONSUFFIX= -Source > CATEGORIES= textproc >-MASTER_SITES= SF >+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/ > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= citrin@citrin.ru > COMMENT= Text-based utility for work with dictionaries in StarDict's format > > LICENSE= GPLv2+ > LICENSE_FILE= ${WRKSRC}/COPYING > >-GNU_CONFIGURE= yes >-USES= autoreconf gettext pkgconfig readline tar:bzip2 >+USES= cmake:outsource pkgconfig readline tar:bzip2 > USE_GNOME= glib20 > > SUB_FILES= pkg-message > >-CPPFLAGS+= -I${LOCALBASE}/include >-LIBS+= -L${LOCALBASE}/lib >+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 >- @${REINPLACE_CMD} -e \ >- 's|@mandir@/uk|@mandir@|' ${WRKSRC}/doc/uk/Makefile.am >- @${REINPLACE_CMD} -e \ >- 's|getopt1.c getopt.h||' ${WRKSRC}/src/Makefile.am >- @${RM} ${WRKSRC}/src/getopt.h >- @${REINPLACE_CMD} '/AM_GNU_GETTEXT_VERSION/s/0\.14\.1/0.19.1/' \ >- ${WRKSRC}/configure.ac >+ >+post-build-NLS-on: >+ cd ${BUILD_WRKSRC} && ${MAKE_CMD} lang > > .include <bsd.port.mk> >Index: distinfo >=================================================================== >--- distinfo (revision 435778) >+++ distinfo (working copy) >@@ -1,2 +1,3 @@ >-SHA256 (sdcv-0.4.2.tar.bz2) = a164f079e93986814ea2d39f3a49cf9d1b71b01aad908254457fe3d0ded9deb2 >-SIZE (sdcv-0.4.2.tar.bz2) = 181384 >+TIMESTAMP = 1488927916 >+SHA256 (sdcv-0.5.0-beta2-Source.tar.bz2) = 386cfc96285a653c697f8baeab676cb3f1645cea029464d194872d0bbae14ffb >+SIZE (sdcv-0.5.0-beta2-Source.tar.bz2) = 51508 >Index: files/patch-CMakeLists.txt >=================================================================== >--- files/patch-CMakeLists.txt (nonexistent) >+++ files/patch-CMakeLists.txt (working copy) >@@ -0,0 +1,15 @@ >+--- CMakeLists.txt.orig 2017-03-09 16:49:45 UTC >++++ CMakeLists.txt >+@@ -117,8 +117,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") >++ >++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") >+ >+ if (ENABLE_NLS) >+ INSTALL(DIRECTORY "${gettext_outDir}" DESTINATION "share") > >Property changes on: files/patch-CMakeLists.txt >___________________________________________________________________ >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: files/patch-src__lib__lib.cpp >=================================================================== >--- files/patch-src__lib__lib.cpp (revision 435778) >+++ files/patch-src__lib__lib.cpp (nonexistent) >@@ -1,27 +0,0 @@ >---- src/lib/lib.cpp.orig >-+++ src/lib/lib.cpp >-@@ -496,9 +496,13 @@ >- entries[i].keystr=p; >- len=strlen(p); >- p+=len+1; >-- entries[i].off=g_ntohl(*reinterpret_cast<guint32 *>(p)); >-+ /* >-+ * Can not use typecasting here, because *data does not have >-+ * to be alligned and unalligned access fails on some architectures. >-+ */ >-+ entries[i].off=((unsigned char)p[0] << 24) | ((unsigned char)p[1] << 16) | ((unsigned char)p[2] << 8) | (unsigned char)p[3]; >- p+=sizeof(guint32); >-- entries[i].size=g_ntohl(*reinterpret_cast<guint32 *>(p)); >-+ entries[i].size=((unsigned char)p[0] << 24) | ((unsigned char)p[1] << 16) | ((unsigned char)p[2] << 8) | (unsigned char)p[3]; >- p+=sizeof(guint32); >- } >- } >-@@ -513,7 +517,7 @@ >- { >- fseek(idxfile, wordoffset[page_idx], SEEK_SET); >- guint32 page_size=wordoffset[page_idx+1]-wordoffset[page_idx]; >-- fread(wordentry_buf, std::min(sizeof(wordentry_buf), page_size), 1, idxfile); //TODO: check returned values, deal with word entry that strlen>255. >-+ fread(wordentry_buf, std::min(sizeof(wordentry_buf), (size_t)page_size), 1, idxfile); //TODO: check returned values, deal with word entry that strlen>255. >- return wordentry_buf; >- } >- > >Property changes on: files/patch-src__lib__lib.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: files/patch-src__lib__mapfile.hpp >=================================================================== >--- files/patch-src__lib__mapfile.hpp (revision 435778) >+++ files/patch-src__lib__mapfile.hpp (working copy) >@@ -1,6 +1,6 @@ >---- src/lib/mapfile.hpp.orig >+--- src/lib/mapfile.hpp.orig 2013-07-06 22:28:17 UTC > +++ src/lib/mapfile.hpp >-@@ -5,6 +5,9 @@ >+@@ -4,6 +4,9 @@ > # include "config.h" > #endif > >Index: files/patch-src__libwrapper.cpp >=================================================================== >--- files/patch-src__libwrapper.cpp (revision 435778) >+++ files/patch-src__libwrapper.cpp (nonexistent) >@@ -1,50 +0,0 @@ >---- src/libwrapper.cpp.orig >-+++ src/libwrapper.cpp >-@@ -24,6 +24,7 @@ >- >- #include <glib/gi18n.h> >- #include <map> >-+#include <cstring> >- >- #include "utils.hpp" >- >-@@ -117,7 +118,6 @@ >- switch (*p++) { >- case 'm': >- case 'l': //need more work... >-- case 'g': >- sec_size = strlen(p); >- if (sec_size) { >- res+="\n"; >-@@ -127,6 +127,7 @@ >- } >- sec_size++; >- break; >-+ case 'g': >- case 'x': >- sec_size = strlen(p); >- if (sec_size) { >-@@ -208,6 +209,15 @@ >- >- void Library::LookupData(const string &str, TSearchResultList& res_list) >- { >-+#if defined(_LIBCPP_VERSION) >-+ std::vector<std::vector<gchar *> > drl(ndicts()); >-+ if (!Libs::LookupData(str.c_str(), &drl[0])) >-+ return; >-+ for (int idict=0; idict<ndicts(); ++idict) >-+ for (gchar *res : drl[idict]) { >-+ SimpleLookup(res, res_list); >-+ g_free(res); >-+#else >- std::vector<gchar *> drl[ndicts()]; >- if (!Libs::LookupData(str.c_str(), drl)) >- return; >-@@ -215,6 +225,7 @@ >- for (std::vector<gchar *>::size_type j=0; j<drl[idict].size(); ++j) { >- SimpleLookup(drl[idict][j], res_list); >- g_free(drl[idict][j]); >-+#endif >- } >- } >- > >Property changes on: 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: files/patch-src__readline.cpp >=================================================================== >--- files/patch-src__readline.cpp (revision 435778) >+++ files/patch-src__readline.cpp (nonexistent) >@@ -1,10 +0,0 @@ >---- src/readline.cpp.orig >-+++ src/readline.cpp >-@@ -23,6 +23,7 @@ >- #endif >- >- #include <cstdio> >-+#include <cstdlib> >- #ifdef WITH_READLINE >- # include <readline/readline.h> >- # include <readline/history.h> > >Property changes on: files/patch-src__readline.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: files/patch-src__sdcv.cpp >=================================================================== >--- files/patch-src__sdcv.cpp (revision 435778) >+++ files/patch-src__sdcv.cpp (nonexistent) >@@ -1,15 +0,0 @@ >---- src/sdcv.cpp.orig >-+++ src/sdcv.cpp >-@@ -161,7 +161,11 @@ >- >- strlist_t dicts_dir_list; >- >-- dicts_dir_list.push_back(std::string(g_get_home_dir())+G_DIR_SEPARATOR+ >-+ const char *homedir = g_getenv ("HOME"); >-+ if (!homedir) >-+ homedir = g_get_home_dir (); >-+ >-+ dicts_dir_list.push_back(std::string(homedir)+G_DIR_SEPARATOR+ >- ".stardict"+G_DIR_SEPARATOR+"dic"); >- dicts_dir_list.push_back(data_dir); >- > >Property changes on: files/patch-src__sdcv.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: files/patch-src__utils.cpp >=================================================================== >--- files/patch-src__utils.cpp (revision 435778) >+++ files/patch-src__utils.cpp (nonexistent) >@@ -1,11 +0,0 @@ >---- src/utils.cpp.orig >-+++ src/utils.cpp >-@@ -22,6 +22,8 @@ >- # include "config.h" >- #endif >- >-+#include <cstdio> >-+#include <cstdlib> >- #include <glib.h> >- #include <glib/gi18n.h> >- > >Property changes on: files/patch-src__utils.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: files/patch-src_libwrapper.cpp >=================================================================== >--- files/patch-src_libwrapper.cpp (nonexistent) >+++ files/patch-src_libwrapper.cpp (working copy) >@@ -0,0 +1,11 @@ >+--- 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: files/patch-src_libwrapper.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: files/pkg-message.in >=================================================================== >--- files/pkg-message.in (revision 435778) >+++ files/pkg-message.in (working copy) >@@ -4,11 +4,11 @@ you have to fetch the dictionaries to ma > > 1. Make directory for dictionaries files : > >- # mkdir -p %%PREFIX%%/share/stardict/dict >+ # mkdir -p %%PREFIX%%/share/stardict/dic > > > 2. Please put your dictionary file at : > >- %%PREFIX%%/share/stardict/dict/ >+ %%PREFIX%%/share/stardict/dic/ > > ************************************************************************** >Index: pkg-descr >=================================================================== >--- pkg-descr (revision 435778) >+++ pkg-descr (working copy) >@@ -5,4 +5,4 @@ The word from "list of words" may be str > search algorithm, string may contain '?' and '*' for using regexp search. > It work in interactive and not interactive mode. > >-WWW: http://sdcv.sourceforge.net/ >+WWW: http://dushistov.github.io/sdcv/ >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 435778) >+++ pkg-plist (working copy) >@@ -1,7 +1,10 @@ > bin/sdcv > man/man1/sdcv.1.gz >-share/locale/ru/LC_MESSAGES/sdcv.mo >-share/locale/sk/LC_MESSAGES/sdcv.mo >-share/locale/uk/LC_MESSAGES/sdcv.mo >-share/locale/zh_CN/LC_MESSAGES/sdcv.mo >-share/locale/zh_TW/LC_MESSAGES/sdcv.mo >+man/uk.UTF-8/man1/sdcv.1.gz >+%%NLS%%share/locale/cs/LC_MESSAGES/sdcv.mo >+%%NLS%%share/locale/fr/LC_MESSAGES/sdcv.mo >+%%NLS%%share/locale/ru/LC_MESSAGES/sdcv.mo >+%%NLS%%share/locale/sk/LC_MESSAGES/sdcv.mo >+%%NLS%%share/locale/uk/LC_MESSAGES/sdcv.mo >+%%NLS%%share/locale/zh_CN/LC_MESSAGES/sdcv.mo >+%%NLS%%share/locale/zh_TW/LC_MESSAGES/sdcv.mo
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217671
:
180680
|
180748
|
183943