From: "Theo Anderson" <telans@posteo.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-text/klogg/
Date: Wed, 28 Apr 2021 03:15:33 +0000 (UTC) [thread overview]
Message-ID: <1619579445.4d8124dfbfbcff51c8843ea6a0663e1ea036fc0e.telans@gentoo> (raw)
commit: 4d8124dfbfbcff51c8843ea6a0663e1ea036fc0e
Author: Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Wed Apr 28 03:10:45 2021 +0000
Commit: Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Wed Apr 28 03:10:45 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4d8124df
app-text/klogg: update ebuild
@variar changes are:
* Rename tarball to ${P} rather than just the version
* Remove cmake dependency - redundant when using cmake eclass
* Remove eapply_user call - cmake_src_prepare calls this
* Move configure args into mycmakeargs
* Use "usex" for configure ON/OFF via use flags
* Remove src_compile phase - default compile option does klogg
* Remove pkg phases and inherit xdg - are run automatically
Signed-off-by: Theo Anderson <telans <AT> posteo.de>
app-text/klogg/Manifest | 2 +-
app-text/klogg/klogg-20.12.ebuild | 51 ++++++++++-----------------------------
2 files changed, 14 insertions(+), 39 deletions(-)
diff --git a/app-text/klogg/Manifest b/app-text/klogg/Manifest
index bcfab41f1..14e1c4545 100644
--- a/app-text/klogg/Manifest
+++ b/app-text/klogg/Manifest
@@ -1 +1 @@
-DIST v20.12.tar.gz 14640631 BLAKE2B 94693d3117343b3a4632aa0a1ef8492b9a895bb5e4567c358966d4defe379e5b50367b59d1e74d8beb5d9c105e760b1e618e78ab60806ed829ead44ccee02363 SHA512 c2fabe2d983ad2626d2fe92c91fc2a944d4eb3a10c627ea877a498814fdebe957ac55665623dee2ea30591ed6ce9e70d708073d007d60769c65a2e84714e8c62
+DIST klogg-20.12.tar.gz 14640631 BLAKE2B 94693d3117343b3a4632aa0a1ef8492b9a895bb5e4567c358966d4defe379e5b50367b59d1e74d8beb5d9c105e760b1e618e78ab60806ed829ead44ccee02363 SHA512 c2fabe2d983ad2626d2fe92c91fc2a944d4eb3a10c627ea877a498814fdebe957ac55665623dee2ea30591ed6ce9e70d708073d007d60769c65a2e84714e8c62
diff --git a/app-text/klogg/klogg-20.12.ebuild b/app-text/klogg/klogg-20.12.ebuild
index 0e3108df0..13be48640 100644
--- a/app-text/klogg/klogg-20.12.ebuild
+++ b/app-text/klogg/klogg-20.12.ebuild
@@ -3,15 +3,16 @@
EAPI=7
-inherit cmake
+inherit xdg cmake
DESCRIPTION="A GUI application to browse and search through long and complex log files"
HOMEPAGE="https://klogg.filimonov.dev"
-SRC_URI="https://github.com/variar/klogg/archive/refs/tags/v${PV}.tar.gz"
+SRC_URI="https://github.com/variar/klogg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+IUSE="+sentry lto"
DEPEND="
dev-qt/qtcore:5
@@ -21,53 +22,27 @@ DEPEND="
dev-qt/qtxml:5
dev-qt/qtconcurrent:5
"
-
-RDEPEND="${DEPEND} x11-themes/hicolor-icon-theme"
-
-BDEPEND="
- >=dev-util/cmake-3.12
+RDEPEND="
+ ${DEPEND}
+ x11-themes/hicolor-icon-theme
"
-IUSE="+sentry lto"
+QA_PREBUILT="usr/bin/klogg_minidump_dump"
src_prepare() {
sed -e 's|share/doc/klogg|${CMAKE_INSTALL_DOCDIR}|' -i "${S}/CMakeLists.txt" || die "sed CMAKE_INSTALL_DOCDIR"
sed -e 's|TBB_INSTALL_LIBRARY_DIR lib|TBB_INSTALL_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR}|' -i "${S}/3rdparty/tbb/CMakeLists.txt" || die "sed TBB_INSTALL_LIBRARY_DIR"
-
- eapply_user
cmake_src_prepare
}
src_configure() {
- local cmakeopts="-DWARNINGS_AS_ERRORS=OFF -DDISABLE_WERROR=ON"
-
- if use sentry; then
- cmakeopts+=" -DKLOGG_USE_SENTRY=ON"
- else
- cmakeopts+=" -DKLOGG_USE_SENTRY=OFF"
- fi
-
- if use lto; then
- cmakeopts+=" -DUSE_LTO=ON"
- else
- cmakeopts+=" -DUSE_LTO=OFF"
- fi
-
+ export KLOGG_VERSION=${PV}.0.813
local mycmakeargs=(
- ${cmakeopts}
+ -DDISABLE_WERROR=ON
+ -DKLOGG_USE_SENTRY=$(usex sentry)
+ -DUSE_LTO=$(usex lto)
+ -DWARNINGS_AS_ERRORS=OFF
)
- export KLOGG_VERSION=${PV}.0.813
- cmake_src_configure
-}
-
-src_compile() {
- cmake_src_compile ${PN}
-}
-
-pkg_postinst() {
- xdg_desktop_database_update
-}
-pkg_postrm() {
- xdg_desktop_database_update
+ cmake_src_configure
}
next reply other threads:[~2021-04-28 3:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-28 3:15 Theo Anderson [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-13 17:22 [gentoo-commits] repo/proj/guru:dev commit in: app-text/klogg/ Petr Vaněk
2022-09-08 10:06 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-09-08 10:06 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-06-19 10:49 Anton Filimonov
2021-04-28 8:08 Andrew Ammerlaan
2021-04-28 7:49 Anton Filimonov
2021-04-27 16:02 Anton Filimonov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1619579445.4d8124dfbfbcff51c8843ea6a0663e1ea036fc0e.telans@gentoo \
--to=telans@posteo.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox