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 6F8C7158451 for ; Wed, 10 Jan 2024 10:14:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D4E4E2A01; Wed, 10 Jan 2024 10:14:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 7EA67E2A01 for ; Wed, 10 Jan 2024 10:14:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 88C1A343067 for ; Wed, 10 Jan 2024 10:14:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91F9F14B6 for ; Wed, 10 Jan 2024 10:14:42 +0000 (UTC) From: "Takuya Wakazono" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Takuya Wakazono" Message-ID: <1704881624.64037e730c0d2d4497df150b58421a4c60f965a3.pastalian46@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-vcs/gitahead/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-vcs/gitahead/gitahead-2.7.1-r1.ebuild X-VCS-Directories: dev-vcs/gitahead/ X-VCS-Committer: pastalian46 X-VCS-Committer-Name: Takuya Wakazono X-VCS-Revision: 64037e730c0d2d4497df150b58421a4c60f965a3 X-VCS-Branch: dev Date: Wed, 10 Jan 2024 10:14:42 +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: aef62985-94ce-4799-9a77-10266c955e31 X-Archives-Hash: d191122edc8e9ea32c39434dbbbc18d2 commit: 64037e730c0d2d4497df150b58421a4c60f965a3 Author: Takuya Wakazono gmail com> AuthorDate: Wed Jan 10 10:12:08 2024 +0000 Commit: Takuya Wakazono gmail com> CommitDate: Wed Jan 10 10:13:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=64037e73 dev-vcs/gitahead: fix automagic deps Closes: https://bugs.gentoo.org/921673 Closes: https://bugs.gentoo.org/921674 Signed-off-by: Takuya Wakazono gmail.com> dev-vcs/gitahead/gitahead-2.7.1-r1.ebuild | 115 ++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/dev-vcs/gitahead/gitahead-2.7.1-r1.ebuild b/dev-vcs/gitahead/gitahead-2.7.1-r1.ebuild new file mode 100644 index 0000000000..4b22787437 --- /dev/null +++ b/dev-vcs/gitahead/gitahead-2.7.1-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg cmake wrapper flag-o-matic + +DESCRIPTION="Graphical Git client to help understand and manage source code history" +HOMEPAGE="https://github.com/gitahead/gitahead" +SRC_URI=" + https://github.com/gitahead/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/stinb/libgit2/archive/834d652bcb932af447d7f0acd1214a4057cb0771.tar.gz + -> ${P}-dep_libgit2_libgit2.tar.gz + https://github.com/hunspell/hunspell/archive/8a2fdfe5a6bb1cbafc04b0c8486abcefd17ad903.tar.gz + -> ${P}-dep_hunspell_hunspell.tar.gz + gnome-keyring? ( + https://github.com/git/git/archive/0d0ac3826a3bbb9247e39e12623bbcfdd722f24c.tar.gz -> ${P}-dep_git_git.tar.gz + ) +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="test" +IUSE="gnome-keyring" + +RDEPEND=" + app-text/cmark:= + dev-libs/libpcre2:= + dev-libs/openssl:= + dev-qt/qt5compat:6 + dev-qt/qtbase:6[concurrent,gui,network,widgets] + net-libs/http-parser:= + net-libs/libssh2 + sys-libs/zlib + gnome-keyring? ( + app-crypt/libsecret + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-qt/qttools:6[linguist] + virtual/pkgconfig +" + +QA_FLAGS_IGNORED="usr/share/GitAhead/Plugins/.*" +QA_PRESTRIPPED="usr/share/GitAhead/Plugins/.*" + +src_unpack() { + unpack "${P}.tar.gz" + + cd "${S}" || die + local i list=( + dep_libgit2_libgit2 + dep_hunspell_hunspell + ) + use gnome-keyring && list+=( dep_git_git ) + for i in "${list[@]}"; do + [ ! -f "${DISTDIR}/${P}-${i}.tar.gz" ] && die "The file ${DISTDIR}/${P}-${i}.tar.gz doesn't exist" + tar xf "${DISTDIR}/${P}-${i}.tar.gz" --strip-components 1 -C "${i//_//}" || die "Failed to unpack ${P}-${i}.tar.gz" + done +} + +src_prepare() { + if ! use gnome-keyring; then + sed -i 's/add_subdirectory(git)//' ./dep/CMakeLists.txt || die + fi + sed -i 's/add_subdirectory(openssl)//' ./dep/CMakeLists.txt || die + # Respect LDFLAGS + sed -i '/CMAKE_EXE_LINKER_FLAGS/d' CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + filter-flags -flto* # Segfault in libQt5Core.so.5 + local mycmakeargs=( + # libgit2 flags + -DBUILD_TESTS=OFF + -DREGEX_BACKEND=pcre2 + -DUSE_GSSAPI=OFF + -DUSE_HTTP_PARSER=system + ) + cmake_src_configure +} + +src_install() { + cd "${BUILD_DIR}" || die + + eninja package + cd ./_CPack_Packages/Linux/STGZ || die + mkdir -p "${D}"/usr/share || die + bash ./GitAhead-2.7.1.sh --prefix="${D}"/usr/share --include-subdir || die + rm -fr "${D}"/usr/share/GitAhead/*.so.* || die + + cd "${D}"/usr/share/GitAhead/Resources/GitAhead.iconset || die + local res + for res in 16 32 64 128 256 512; do + newicon -s "${res}" "icon_${res}x${res}.png" "${PN}.png" + done + + make_wrapper "${PN}" "${EPREFIX}/usr/share/GitAhead/GitAhead" + make_desktop_entry "/usr/share/GitAhead/GitAhead" "GitAhead" "${PN}" "Development" +} + +pkg_postinst() { + xdg_pkg_postinst + + ewarn "${P} collects some statistical usage data." + ewarn "To permanently opt-out of reporting:" + ewarn "toggle a button in Help -> About GitAhead -> Privacy" + ewarn "or write to ~/.config/gitahead.com/GitAhead.conf those lines:" + ewarn "[tracking]" + ewarn "enabled=false" +}