From 4bd74f8d8a1edfaaa25bc82c9fc76ddc8f97baee Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 15 Dec 2022 11:32:46 -0500 Subject: net-libs/libquotient: new package, add 0.6.99 --- net-libs/libquotient/Manifest | 3 ++ .../files/libquotient-0.7-no-android.patch | 13 ++++++++ net-libs/libquotient/libquotient-0.6.99.ebuild | 38 ++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 net-libs/libquotient/Manifest create mode 100644 net-libs/libquotient/files/libquotient-0.7-no-android.patch create mode 100644 net-libs/libquotient/libquotient-0.6.99.ebuild diff --git a/net-libs/libquotient/Manifest b/net-libs/libquotient/Manifest new file mode 100644 index 0000000..cbb01eb --- /dev/null +++ b/net-libs/libquotient/Manifest @@ -0,0 +1,3 @@ +AUX libquotient-0.7-no-android.patch 584 BLAKE2B be2df9bb4fe617f4e69085ff0691dce216e44ef4b8112f0f984669bd381b1843a89ca884600ee73c4b335667ad7d9d59adb8194e970f777780290e27c3424a50 SHA512 fcdb60abf73ac3007d63cb24bb013d0c14cc92c71122e45b0fe7181a1ada94328443f491453015be0c365906fa56ba2eddcfa00f995b963c217c8536b7bbebb7 +DIST libquotient-0.6.99.tar.gz 665659 BLAKE2B b048996259069ea01e89738e59992f3b79277d07075b34893a64cbd8b8cf92ec43356d67d42bfa3d9e25a06f971c09e33163d0f6f0a4ca1eaa5b1c9bbb6c0f71 SHA512 b92dcffc921f3482019d575ba7fc5e9921550169ef43886cbb91d0f7c2cf9f3f949891a42b89ca0f1cc5454d467efae049d95c4e7f68d33c36cc2576db4a60f9 +EBUILD libquotient-0.6.99.ebuild 842 BLAKE2B 0bacbc053b2cafc561964ee24ec561ef6a28ca62226538bdce5dd88d0806f9cdca63de7b2fd82e64f4fa2b76fb0026a2f06c7ed6e210b775c78b96a07aaf6700 SHA512 4c33538cf29dc446c0d2e00a441ea4ad8c5fdbed7e17e03d17bfa1ed0089b873f33afeb6d45531d892f751a510a51a706a8b9963ec9d789c4ac26398e39e00b1 diff --git a/net-libs/libquotient/files/libquotient-0.7-no-android.patch b/net-libs/libquotient/files/libquotient-0.7-no-android.patch new file mode 100644 index 0000000..453271e --- /dev/null +++ b/net-libs/libquotient/files/libquotient-0.7-no-android.patch @@ -0,0 +1,13 @@ +--- a/CMakeLists.txt 2022-12-15 11:30:50.177593852 -0500 ++++ b/CMakeLists.txt 2022-11-21 12:15:34.000000000 -0500 +@@ -381,9 +381,7 @@ + "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}ConfigVersion.cmake" + DESTINATION ${CMakeFilesLocation} + ) +-if (ANDROID) +- install(EXPORT_ANDROID_MK ${PROJECT_NAME}Targets DESTINATION ${CMAKE_INSTALL_DATADIR}/ndk-modules) +-endif () ++install(EXPORT_ANDROID_MK ${PROJECT_NAME}Targets DESTINATION ${CMAKE_INSTALL_DATADIR}/ndk-modules) + + if (WIN32) + install(FILES mime/packages/freedesktop.org.xml DESTINATION mime/packages) diff --git a/net-libs/libquotient/libquotient-0.6.99.ebuild b/net-libs/libquotient/libquotient-0.6.99.ebuild new file mode 100644 index 0000000..025431e --- /dev/null +++ b/net-libs/libquotient/libquotient-0.6.99.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Qt5-based SDK to develop applications for Matrix" +HOMEPAGE="https://github.com/quotient-im/libQuotient" +SRC_URI="https://github.com/quotient-im/libQuotient/archive/0.7-rc.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/libQuotient-0.7-rc" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" +IUSE="" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtnetwork:5[ssl] +" +RDEPEND="${DEPEND}" + +PATCHES=( + # downstream patches + "${FILESDIR}"/${PN}-0.7-no-android.patch +) + +src_configure() { + local mycmakeargs=( + -DQuotient_INSTALL_TESTS=OFF + -DQuotient_ENABLE_E2EE=OFF # TODO: libolm, libqtolm not packaged + -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON # no thanks. + ) + cmake_src_configure +} -- cgit v1.2.3