net-im/openmittsu: add 0.10.3.0

Closes: https://bugs.gentoo.org/955180
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller 2025-11-09 13:27:48 +01:00
parent 1a3ce8bf5c
commit 8ed8d68f8d
No known key found for this signature in database
GPG Key ID: 5188335088415E2E
4 changed files with 97 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST openmittsu-0.10.2.0.tar.xz 2290108 BLAKE2B b0e13f5833b9319322d6ab4544e719922c3edeb9189b4ea7f1f9dfb5700fdd107f8c3b7039a38befc54673c0d768ca4e649e8447221ee847cb04b364602ad913 SHA512 0ef2f66c6ccf17c33b39cf1a2942264de52397a4abc6f9e7ee667e739c56d80f5e8b5c95534861cba755e32f649135b21807061b5bac93d79d57905588eb232f
DIST openmittsu-0.10.3.0.tar.xz 2292552 BLAKE2B c87240a45c24173230b6fe49d24fb06b804b0c99bce70e612da0342c41d975c36fa41193057b19c9575109b004592d7c065a40b417306a305b91a01abc5ac383 SHA512 06977dabfca1b79cf871963c219cbdbbcff1006b4ac93b3d9e70166336ae67da8cae08f2f488ff1f9a70fbbc46555ef61610a82205356a2273bd9b34a22e0d78

View File

@ -0,0 +1,5 @@
--- openmittsu-0.10.3.0/CMakeLists.txt
+++ openmittsu-0.10.3.0/CMakeLists.txt
@@ -108 +108 @@
-find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Gui Widgets Network Multimedia MultimediaWidgets Sql)
+find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core Gui Widgets Network Multimedia MultimediaWidgets Sql)

View File

@ -0,0 +1,29 @@
commit 512e9dea0ee1106a9f5babd3188ba170360bfaa1
Author: Andreas Sturmlechner <asturm@gentoo.org>
Date: Sun Nov 2 14:52:35 2025 +0100
Drop CMAKE_BUILD_TYPE Gentoo-ism and provide OPENMITTSU_SYSTEM_GTEST option instead
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,4 +45,5 @@
option(OPENMITTSU_DISABLE_VERSION_UPDATE_CHECK "Disables the version check on start-up. Useful for custom builds or added privacy." OFF)
option(OPENMITTSU_ENABLE_TESTS "Enables tests." ON)
+option(OPENMITTSU_SYSTEM_GTEST "Use system provided googletest libs instead of bundled" OFF)
option(OPENMITTSU_USE_NSIS "Use NSIS generator to produce a Windows installer." OFF)
option(OPENMITTSU_WITH_APP_BUNDLE "Enable Application Bundle for macOS" ON)
@@ -317,6 +318,5 @@
#
##########################################################
-# In Gentoo Linux, googletest libs are installed as dependency (dev-cpp/gtest)
-if (OPENMITTSU_ENABLE_TESTS AND NOT CMAKE_BUILD_TYPE MATCHES "^Gentoo")
+if (OPENMITTSU_ENABLE_TESTS AND NOT OPENMITTSU_SYSTEM_GTEST)
# Download and unpack googletest at configure time
configure_file("${PROJECT_SOURCE_DIR}/cmake/GoogleTest.cmake.in" googletest-download/CMakeLists.txt)
@@ -598,5 +598,5 @@
endif()
-if (OPENMITTSU_ENABLE_TESTS AND NOT CMAKE_BUILD_TYPE MATCHES "^Gentoo")
+if (OPENMITTSU_ENABLE_TESTS AND NOT OPENMITTSU_SYSTEM_GTEST)
add_dependencies(openMittsuTests gmock gtest)
endif()

View File

@ -0,0 +1,62 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop
DESCRIPTION="Open source chat client for Threema-style end-to-end encrypted chat networks"
HOMEPAGE="https://www.openmittsu.de/"
# snapshot of https://github.com/blizzard4591/openMittsu.git
# git-archive-all.sh --prefix ${P}/ -- - | xz > ${P}.tar.xz
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
LICENSE="GPL-2+ BitstreamVera OFL-1.1 Apache-2.0 CC0-1.0 MIT BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-db/qt5-sqlcipher:6
>=dev-libs/libsodium-1.0.18:=
>=dev-qt/qtbase-6.9.3:6=[gui,network,sql,sqlite,ssl,widgets]
>=dev-qt/qtmultimedia-6.9.3:6=
>=media-gfx/qrencode-3.4.4-r1:="
DEPEND="${RDEPEND}
test? ( >=dev-cpp/gtest-1.8.0 )"
PATCHES=(
"${FILESDIR}/${P}-system-gtest.patch"
"${FILESDIR}/${P}-cmake-no-qt5.patch"
)
DOCS=(
README.md
Example-client-configuration-file.ini
Example-contacts-file.txt
)
src_configure() {
local mycmakeargs=(
# set version manually, since autodetection works only with git
"-DOPENMITTSU_CUSTOM_VERSION_STRING=${PV%.*}-${PV##*.}-00000000"
"-DOPENMITTSU_DISABLE_VERSION_UPDATE_CHECK=ON"
"-DOPENMITTSU_ENABLE_TESTS=$(usex test)"
"-DOPENMITTSU_SYSTEM_GTEST=ON"
)
cmake_src_configure
}
src_test() {
cd "${BUILD_DIR}" || die
./openMittsuTests || die
}
src_install() {
local my_pn="openMittsu"
cmake_src_install
newicon resources/icon.png ${my_pn}.png
make_desktop_entry ${my_pn} ${my_pn} ${my_pn}
# rm "${ED}"/usr/bin/${my_pn}VersionInfo || die
# rm -f "${ED}"/usr/bin/${my_pn}Tests || die
}