From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 46A0B158095 for ; Thu, 11 Aug 2022 13:45:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7832AE0903; Thu, 11 Aug 2022 13:45:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4E502E0903 for ; Thu, 11 Aug 2022 13:45:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11518341108 for ; Thu, 11 Aug 2022 13:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9369657F for ; Thu, 11 Aug 2022 13:45:11 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1660053249.d4a86b6f10ef7b3b2c740491c33c554c02b94000.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/neovim-qt/files/, app-editors/neovim-qt/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-editors/neovim-qt/Manifest app-editors/neovim-qt/files/neovim-qt-0.2.17-only-require-Qt5Test-if-tests-are-enabled.patch app-editors/neovim-qt/neovim-qt-0.2.17.ebuild X-VCS-Directories: app-editors/neovim-qt/files/ app-editors/neovim-qt/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: d4a86b6f10ef7b3b2c740491c33c554c02b94000 X-VCS-Branch: master Date: Thu, 11 Aug 2022 13:45:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 86bb7f4d-add3-41dc-a824-0842d469a950 X-Archives-Hash: 5afffc45966cc29d61bde75487a96308 commit: d4a86b6f10ef7b3b2c740491c33c554c02b94000 Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Tue Aug 9 13:54:09 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue Aug 9 13:54:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d4a86b6f app-editors/neovim-qt: add 0.2.17, fix tests Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> app-editors/neovim-qt/Manifest | 1 + ...only-require-Qt5Test-if-tests-are-enabled.patch | 50 ++++++++++++++++++++++ app-editors/neovim-qt/neovim-qt-0.2.17.ebuild | 50 ++++++++++++++++++++++ 3 files changed, 101 insertions(+) diff --git a/app-editors/neovim-qt/Manifest b/app-editors/neovim-qt/Manifest index 653ba816d..69eafaae4 100644 --- a/app-editors/neovim-qt/Manifest +++ b/app-editors/neovim-qt/Manifest @@ -1 +1,2 @@ DIST neovim-qt-0.2.16.1.tar.gz 1069176 BLAKE2B ccb9d7275735969dc0576b498e017068da63e14ba82e3160621822d83c3902e35064be393dda57f8e70d83bcbb22e8e663f2ec996ffb48ff0140099ae0793a88 SHA512 63910b0416103f8c4f2450a07d4790c2b7fd26e2ba324445a20700a12d1dc3cb6fb06c674f3a1173348dad5c2256e8018167765306ca33ad94bc176bf5e4e45c +DIST neovim-qt-0.2.17.tar.gz 1076230 BLAKE2B ab322d7f03bca40b4b3ee6e89a20dc04ec06d9ba3f49c0e658586f55e5219d13770078ed956a889dbe100836cb83cbc1829a39d60e9164e3bcb43ba085a72412 SHA512 ff290c6797c51ac23acd87ecd4c8d034321c4994c76b60f5d15626aa31db377090359d4bc681c6a9d0462ff5847269c35b95561ccd156600cf3f09f28ad4b8b2 diff --git a/app-editors/neovim-qt/files/neovim-qt-0.2.17-only-require-Qt5Test-if-tests-are-enabled.patch b/app-editors/neovim-qt/files/neovim-qt-0.2.17-only-require-Qt5Test-if-tests-are-enabled.patch new file mode 100644 index 000000000..06ca1b0ed --- /dev/null +++ b/app-editors/neovim-qt/files/neovim-qt-0.2.17-only-require-Qt5Test-if-tests-are-enabled.patch @@ -0,0 +1,50 @@ +# upstream PR: + +From dd334be1e113d9e0f2310cc35b620c5090d06e1f Mon Sep 17 00:00:00 2001 +From: tastytea +Date: Tue, 9 Aug 2022 15:32:08 +0200 +Subject: [PATCH] only require Qt5Test if tests are enabled + +--- + CMakeLists.txt | 2 +- + src/gui/shellwidget/CMakeLists.txt | 4 +++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8c77d27..ed02426 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -135,7 +135,6 @@ set(CMAKE_AUTOMOC ON) + find_package(Qt5Core REQUIRED) + find_package(Qt5Network REQUIRED) + find_package(Qt5Svg REQUIRED) +-find_package(Qt5Test REQUIRED) + find_package(Qt5Widgets REQUIRED) + + if(Qt5Core_VERSION VERSION_LESS 5.8) +@@ -176,6 +175,7 @@ add_subdirectory(doc) + + option(ENABLE_TESTS "Build tests" ON) + if(ENABLE_TESTS) ++ find_package(Qt5Test REQUIRED) + enable_testing() + add_subdirectory(test) + add_subdirectory(src/gui/shellwidget/test) +diff --git a/src/gui/shellwidget/CMakeLists.txt b/src/gui/shellwidget/CMakeLists.txt +index f456c4a..41bc382 100644 +--- a/src/gui/shellwidget/CMakeLists.txt ++++ b/src/gui/shellwidget/CMakeLists.txt +@@ -9,7 +9,9 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) + # Qt + set(CMAKE_AUTOMOC ON) + find_package(Qt5Widgets REQUIRED) +-find_package(Qt5Test REQUIRED) ++if(ENABLE_TESTS) ++ find_package(Qt5Test REQUIRED) ++endif() + + if (WIN32 AND USE_STATIC_QT) + add_definitions(-DUSE_STATIC_QT) +-- +2.35.1 + diff --git a/app-editors/neovim-qt/neovim-qt-0.2.17.ebuild b/app-editors/neovim-qt/neovim-qt-0.2.17.ebuild new file mode 100644 index 000000000..204a6bb3c --- /dev/null +++ b/app-editors/neovim-qt/neovim-qt-0.2.17.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake virtualx xdg + +DESCRIPTION="Neovim client library and GUI, in Qt5" +HOMEPAGE="https://github.com/equalsraf/neovim-qt" +SRC_URI="https://github.com/equalsraf/neovim-qt/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +COMMON_DEPEND=" + dev-libs/msgpack + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5" +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-qt/qttest:5 ) +" +RDEPEND=" + ${COMMON_DEPEND} + app-editors/neovim" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.2.17-only-require-Qt5Test-if-tests-are-enabled.patch +) +src_configure() { + local mycmakeargs=( + -DUSE_SYSTEM_MSGPACK=ON + -DUSE_GCOV=OFF + -DENABLE_TESTS=$(usex test) + -DBUILD_SHARED_LIBS=OFF # upstream explicitly builds static lib + ) + + cmake_src_configure +} + +src_test() { + virtx cmake_src_test +}