Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/ffmpegthumbnailer/files: ffmpegthumbnailer-2.0.10-set-locale.patch ffmpegthumbnailer-2.0.10-config-summary.patch ffmpegthumbnailer-2.0.10-installdirs.patch
Date: Sun, 26 Jul 2015 21:30:59
Message-Id: 20150726213052.59D9710E@oystercatcher.gentoo.org
1 mgorny 15/07/26 21:30:52
2
3 Added: ffmpegthumbnailer-2.0.10-set-locale.patch
4 ffmpegthumbnailer-2.0.10-config-summary.patch
5 ffmpegthumbnailer-2.0.10-installdirs.patch
6 Log:
7 Version bump. Update homepage and switch to cmake. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/175 by a17r.
8
9 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
10
11 Revision Changes Path
12 1.1 media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-set-locale.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-set-locale.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-set-locale.patch?rev=1.1&content-type=text/plain
16
17 Index: ffmpegthumbnailer-2.0.10-set-locale.patch
18 ===================================================================
19 From 718f1b1147fe7e9138e2d503ed151e589d643772 Mon Sep 17 00:00:00 2001
20 From: Dirk Vanden Boer <dirk.vdb@×××××.com>
21 Date: Sat, 18 Jul 2015 10:24:28 +0200
22 Subject: [PATCH] Set locale to the user specified locale
23
24 ---
25 main.cpp | 5 ++---
26 test/testrunner.cpp | 7 ++-----
27 2 files changed, 4 insertions(+), 8 deletions(-)
28
29 diff --git a/main.cpp b/main.cpp
30 index 6cb6c55..7cb7089 100644
31 --- a/main.cpp
32 +++ b/main.cpp
33 @@ -54,10 +54,9 @@ int main(int argc, char** argv)
34 string outputFile;
35 string imageFormat;
36
37 - if (!setlocale(LC_CTYPE, "en_US.UTF-8"))
38 + if (!std::setlocale(LC_CTYPE, ""))
39 {
40 - std::cerr << "Locale not specified. Check LANG, LC_CTYPE, LC_ALL" << std::endl;
41 - return 1;
42 + std::cerr << "Failed to set locale" << std::endl;
43 }
44
45 while ((option = getopt (argc, argv, "i:o:s:t:q:c:afwhvp")) != -1)
46 diff --git a/test/testrunner.cpp b/test/testrunner.cpp
47 index 7023d25..20a4903 100644
48 --- a/test/testrunner.cpp
49 +++ b/test/testrunner.cpp
50 @@ -4,12 +4,9 @@
51 #include <gtest/gtest.h>
52
53 int main(int argc, char **argv) {
54 - std::cout << "Running ffmpegthumbnailer tests" << std::endl;
55 -
56 - if (!setlocale(LC_CTYPE, "en_US.UTF-8"))
57 + if (!std::setlocale(LC_CTYPE, ""))
58 {
59 - std::cerr << "Locale not specified. Check LANG, LC_CTYPE, LC_ALL" << std::endl;
60 - return 1;
61 + std::cerr << "Failed to set locale" << std::endl;
62 }
63
64 testing::InitGoogleTest(&argc, argv);
65
66
67
68 1.1 media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-config-summary.patch
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-config-summary.patch?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-config-summary.patch?rev=1.1&content-type=text/plain
72
73 Index: ffmpegthumbnailer-2.0.10-config-summary.patch
74 ===================================================================
75 From 9c2a5fe997a6d8b00bef49eabb7bc49840882ec6 Mon Sep 17 00:00:00 2001
76 From: Dirk Vanden Boer <dirk.vdb@×××××.com>
77 Date: Wed, 29 Apr 2015 20:19:58 +0200
78 Subject: [PATCH] Fixed configuration summary
79
80 ---
81 .travis.yml | 1 +
82 CMakeLists.txt | 2 +-
83 2 files changed, 2 insertions(+), 1 deletion(-)
84
85 diff --git a/CMakeLists.txt b/CMakeLists.txt
86 index 22803d9..6b6e515 100644
87 --- a/CMakeLists.txt
88 +++ b/CMakeLists.txt
89 @@ -239,7 +239,7 @@ ELSE ()
90 MESSAGE(STATUS "register thumbnailer : disabled")
91 ENDIF ()
92
93 -IF (ENABLE_UNITTEST)
94 +IF (ENABLE_TESTS)
95 MESSAGE(STATUS "unittests : enabled")
96 ELSE ()
97 MESSAGE(STATUS "unittests : disabled")
98
99
100
101 1.1 media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-installdirs.patch
102
103 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-installdirs.patch?rev=1.1&view=markup
104 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-2.0.10-installdirs.patch?rev=1.1&content-type=text/plain
105
106 Index: ffmpegthumbnailer-2.0.10-installdirs.patch
107 ===================================================================
108 From 621274d694dee1f8c92f5db99a5cff98e82c6bd4 Mon Sep 17 00:00:00 2001
109 From: Dirk Vanden Boer <dirk.vdb@×××××.com>
110 Date: Sat, 2 May 2015 09:33:34 +0200
111 Subject: [PATCH] Use proper gnu installation dirs (Thanks to Vallimar)
112
113 ---
114 CMakeLists.txt | 15 ++++++++-------
115 ChangeLog | 1 +
116 2 files changed, 9 insertions(+), 7 deletions(-)
117
118 diff --git a/CMakeLists.txt b/CMakeLists.txt
119 index 6b6e515..badb7cf 100644
120 --- a/CMakeLists.txt
121 +++ b/CMakeLists.txt
122 @@ -25,6 +25,7 @@ ENDIF ()
123
124 PROJECT(${PACKAGE})
125 INCLUDE(CPack)
126 +INCLUDE(GNUInstallDirs)
127
128 SET(CMAKE_EXPORT_COMPILE_COMMANDS 1)
129 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
130 @@ -189,17 +190,17 @@ ELSE ()
131 ENDIF ()
132
133 INSTALL(TARGETS ffmpegthumbnailer ${STATIC_LIB} ${SHARED_LIB}
134 - LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
135 - RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
136 - ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
137 - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_PREFIX}/include/libffmpegthumbnailer
138 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
139 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
140 + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
141 + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libffmpegthumbnailer
142 )
143
144 -INSTALL(FILES man/ffmpegthumbnailer.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1)
145 -INSTALL(FILES ${CMAKE_BINARY_DIR}/libffmpegthumbnailer.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
146 +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man/ffmpegthumbnailer.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
147 +INSTALL(FILES ${CMAKE_BINARY_DIR}/libffmpegthumbnailer.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
148
149 IF (ENABLE_THUMBNAILER)
150 - INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dist/ffmpegthumbnailer.thumbnailer DESTINATION ${CMAKE_INSTALL_PREFIX}/share/thumbnailers)
151 + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dist/ffmpegthumbnailer.thumbnailer DESTINATION ${CMAKE_INSTALL_DATADIR}/thumbnailers)
152 ENDIF ()
153
154 CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/config.h)