Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/openmittsu/files/, net-im/openmittsu/
Date: Thu, 30 Nov 2017 22:53:20
Message-Id: 1512082385.f44c18ebd3eaa57664260f788881fb815397ebd3.ulm@gentoo
1 commit: f44c18ebd3eaa57664260f788881fb815397ebd3
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 30 22:52:31 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 22:53:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f44c18eb
7
8 net-im/openmittsu: Version bump.
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 net-im/openmittsu/Manifest | 3 +-
13 .../openmittsu-0.9.9.48-disable-googletest.patch | 79 ++++++++++++++++++++++
14 net-im/openmittsu/openmittsu-0.9.9.48.ebuild | 53 +++++++++++++++
15 3 files changed, 134 insertions(+), 1 deletion(-)
16
17 diff --git a/net-im/openmittsu/Manifest b/net-im/openmittsu/Manifest
18 index 71482fa0281..524ec0f9cff 100644
19 --- a/net-im/openmittsu/Manifest
20 +++ b/net-im/openmittsu/Manifest
21 @@ -1 +1,2 @@
22 -DIST openmittsu-0.9.2.109.tar.xz 1314888 SHA256 cf012e36ce157023082c8efa04ce6d4521ac16044334647c860a07b2ff94ea35 SHA512 ad70ff7c3ceedcf1d6711468152199742533b8f42abbae5ce52f3e29882ae6aea566e8a39258a3d3676a91774e144a70d91967b31e4634f23d527f14325d0a5b WHIRLPOOL f0843eaa35507374a69977c0e023c060f47448d72ea77c3f640b2b5e1ddd87dff756c31c3827c043107af798b5abb58287b07dba8c841be57167d1e8787b1a24
23 +DIST openmittsu-0.9.2.109.tar.xz 1314888 BLAKE2B 2c3b2e3e333d2e4ee2cf591fdaffc1b9e7b3b99d45093295ae9246e65b414124ad7a3e04ae558a1bd54c8704b3cf0858cbc53e6f30870b96a491fd1a9f8f7272 SHA512 ad70ff7c3ceedcf1d6711468152199742533b8f42abbae5ce52f3e29882ae6aea566e8a39258a3d3676a91774e144a70d91967b31e4634f23d527f14325d0a5b
24 +DIST openmittsu-0.9.9.48.tar.xz 2026628 BLAKE2B eafd2bc537a22b140e01e14da363d3943e24b86754a090fd1ed2ac80f1030e1a2fb30ee8a5395c6c9a143d5922354ac67e3376a94c34f670f8cbcfddc27da112 SHA512 e24ec8e0792df13e781080fe42934035f74b82be62a8ce4913175a13ee3acbead069d169871405f4312927165a7049291d009c7f968b088bdbb3e294f9ef2443
25
26 diff --git a/net-im/openmittsu/files/openmittsu-0.9.9.48-disable-googletest.patch b/net-im/openmittsu/files/openmittsu-0.9.9.48-disable-googletest.patch
27 new file mode 100644
28 index 00000000000..ceb162d5e6b
29 --- /dev/null
30 +++ b/net-im/openmittsu/files/openmittsu-0.9.9.48-disable-googletest.patch
31 @@ -0,0 +1,79 @@
32 +Disable googletest for now, in order to avoid accessing the network
33 +at configure time.
34 +
35 +--- openmittsu-0.9.9.48-orig/CMakeLists.txt
36 ++++ openmittsu-0.9.9.48/CMakeLists.txt
37 +@@ -212,28 +212,6 @@
38 + # Add the binary dir include directory
39 + include_directories("${PROJECT_BINARY_DIR}/include")
40 +
41 +-##########################################################
42 +-#
43 +-# Google Testing Framework
44 +-#
45 +-##########################################################
46 +-# Download and unpack googletest at configure time
47 +-configure_file("${PROJECT_SOURCE_DIR}/cmake/GoogleTest.cmake.in" googletest-download/CMakeLists.txt)
48 +-execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
49 +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download" )
50 +-execute_process(COMMAND "${CMAKE_COMMAND}" --build .
51 +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download" )
52 +-
53 +-# Prevent GoogleTest from overriding our compiler/linker options
54 +-# when building with Visual Studio
55 +-set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
56 +-
57 +-# Add googletest directly to our build. This adds
58 +-# the following targets: gtest, gtest_main, gmock
59 +-# and gmock_main
60 +-add_subdirectory("${CMAKE_BINARY_DIR}/googletest-src"
61 +- "${CMAKE_BINARY_DIR}/googletest-build" EXCLUDE_FROM_ALL)
62 +-
63 +
64 + # Main Sources
65 + file(GLOB OPENMITTSU_HEADERS ${PROJECT_SOURCE_DIR}/src/*.h)
66 +@@ -399,24 +377,17 @@
67 +
68 + add_executable(openMittsuVersionInfo ${OPENMITTSU_BUILDTOOLS_VERSIONINFO_HEADERS} ${OPENMITTSU_BUILDTOOLS_VERSIONINFO_SOURCES_CPP} ${OPENMITTSU_HEADERS_GENERATED} ${OPENMITTSU_SOURCES_GENERATED})
69 +
70 +-add_executable(openMittsuTests ${OPENMITTSU_TEST_MAIN_FILE} ${OPENMITTSU_TEST_FILES}
71 +- ${OPENMITTSU_RESOURCESOURCES}
72 +-)
73 +-
74 + if (MSVC)
75 + set_target_properties(openMittsu PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
76 + endif(MSVC)
77 +
78 + # Add target link dependencies
79 +-target_link_libraries(openMittsuCore ${Libsodium_LIBRARIES} gtest)
80 ++target_link_libraries(openMittsuCore ${Libsodium_LIBRARIES})
81 + target_link_libraries(openMittsu ${LIBQRENCODE_LIBRARY})
82 +
83 +-add_dependencies(openMittsuTests gtest)
84 +-
85 + # Use the required modules from Qt 5.
86 + target_link_libraries(openMittsuCore Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::Multimedia Qt5::Sql)
87 + target_link_libraries(openMittsu openMittsuCore Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::Multimedia Qt5::Sql)
88 +-target_link_libraries(openMittsuTests openMittsuCore Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::Multimedia Qt5::Sql)
89 + target_link_libraries(openMittsuVersionInfo Qt5::Core)
90 +
91 + # Link against libc++abi if requested.
92 +@@ -424,7 +395,6 @@
93 + target_link_libraries(openMittsu "c++abi")
94 + target_link_libraries(openMittsuCore "c++abi")
95 + target_link_libraries(openMittsuVersionInfo "c++abi")
96 +- target_link_libraries(openMittsuTests "c++abi")
97 + endif(OPENMITTSU_LINK_LIBCXXABI)
98 +
99 + # Targets, CPACK...
100 +@@ -438,10 +408,6 @@
101 + RUNTIME
102 + DESTINATION bin
103 + COMPONENT installComponent)
104 +-install(TARGETS openMittsuTests
105 +- RUNTIME
106 +- DESTINATION bin
107 +- COMPONENT installComponent)
108 +
109 + if (MSVC)
110 + set(OPENMITTSU_WINDEPLOYQT_EXE "${Qt5Core_DIR}/../../../bin/windeployqt.exe")
111
112 diff --git a/net-im/openmittsu/openmittsu-0.9.9.48.ebuild b/net-im/openmittsu/openmittsu-0.9.9.48.ebuild
113 new file mode 100644
114 index 00000000000..241dd833295
115 --- /dev/null
116 +++ b/net-im/openmittsu/openmittsu-0.9.9.48.ebuild
117 @@ -0,0 +1,53 @@
118 +# Copyright 1999-2017 Gentoo Foundation
119 +# Distributed under the terms of the GNU General Public License v2
120 +
121 +EAPI=6
122 +
123 +inherit cmake-utils desktop
124 +
125 +DESCRIPTION="An open source chat client for Threema-style end-to-end encrypted chat networks"
126 +HOMEPAGE="https://www.openmittsu.de/"
127 +# git-archive-all.sh snapshot of https://github.com/blizzard4591/openMittsu.git
128 +SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
129 +
130 +LICENSE="GPL-2+ BitstreamVera OFL-1.1 Apache-2.0 CC0-1.0 MIT BSD-2 Boost-1.0"
131 +SLOT="0"
132 +KEYWORDS="~amd64"
133 +
134 +DEPEND="dev-db/qt5-sqlcipher
135 + >=dev-libs/libsodium-1.0.11:=
136 + >=dev-qt/qtcore-5.7.1:5=
137 + >=dev-qt/qtgui-5.7.1:5=
138 + >=dev-qt/qtmultimedia-5.7.1:5=
139 + >=dev-qt/qtnetwork-5.7.1:5=[ssl]
140 + >=dev-qt/qtsql-5.7.1:5=[sqlite]
141 + >=dev-qt/qtwidgets-5.7.1:5=
142 + >=media-gfx/qrencode-3.4.4-r1:="
143 +RDEPEND="${DEPEND}"
144 +
145 +PATCHES=(
146 + "${FILESDIR}"/${P}-disable-googletest.patch
147 +)
148 +
149 +DOCS=(
150 + README.md
151 + Example-client-configuration-file.ini
152 + Example-contacts-file.txt
153 +)
154 +
155 +src_configure() {
156 + local mycmakeargs=(
157 + # set version manually, since autodetection works only with git
158 + "-DOPENMITTSU_CUSTOM_VERSION_STRING=${PV%.*}-${PV##*.}-00000000"
159 + "-DOPENMITTSU_DISABLE_VERSION_UPDATE_CHECK=ON"
160 + )
161 + cmake-utils_src_configure
162 +}
163 +
164 +src_install() {
165 + local my_pn="openMittsu"
166 + cmake-utils_src_install
167 + newicon resources/icon.png ${my_pn}.png
168 + make_desktop_entry ${my_pn} ${my_pn} ${my_pn}
169 + rm "${ED}"/usr/bin/${my_pn}VersionInfo || die
170 +}