Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/j4-dmenu-desktop/
Date: Wed, 09 Feb 2022 22:57:42
Message-Id: 1644447410.dada8251557b685f3c7555c8c3ae7c0748ae7b52.conikost@gentoo
1 commit: dada8251557b685f3c7555c8c3ae7c0748ae7b52
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 9 21:44:29 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 22:56:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dada8251
7
8 x11-misc/j4-dmenu-desktop: update EAPI 7 -> 8
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 .../j4-dmenu-desktop-2.18-r1.ebuild | 55 ++++++++++++++++++++++
13 1 file changed, 55 insertions(+)
14
15 diff --git a/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-2.18-r1.ebuild b/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-2.18-r1.ebuild
16 new file mode 100644
17 index 000000000000..1ad6b767f43d
18 --- /dev/null
19 +++ b/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-2.18-r1.ebuild
20 @@ -0,0 +1,55 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit cmake
27 +
28 +MY_PV="r${PV}"
29 +
30 +DESCRIPTION="A fast desktop replacement for i3-dmenu-desktop"
31 +HOMEPAGE="https://github.com/enkore/j4-dmenu-desktop"
32 +SRC_URI="https://github.com/enkore/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
33 +S="${WORKDIR}/${PN}-${MY_PV}"
34 +
35 +LICENSE="GPL-3+"
36 +SLOT="0"
37 +KEYWORDS="amd64 x86"
38 +IUSE="+dmenu test"
39 +RESTRICT="!test? ( test )"
40 +
41 +DEPEND="test? ( dev-cpp/catch:1 )"
42 +RDEPEND="dmenu? ( x11-misc/dmenu )"
43 +
44 +src_prepare() {
45 + cmake_src_prepare
46 +
47 + # Respect users CFLAGS
48 + sed -i -e "s/-pedantic -O2//" CMakeLists.txt || die
49 +}
50 +
51 +src_configure() {
52 + local mycmakeargs=(
53 + -DWITH_GIT_CATCH="no"
54 + -DWITH_TESTS="$(usex test)"
55 + )
56 +
57 + cmake_src_configure
58 +}
59 +
60 +src_install() {
61 + cmake_src_install
62 +
63 + doman j4-dmenu-desktop.1
64 +}
65 +
66 +pkg_postinst() {
67 + if ! use dmenu; then
68 + elog "As you have disabled the 'dmenu' use flag,"
69 + elog "x11-misc/dmenu won't be installed by default."
70 + elog ""
71 + elog "Since x11-misc/j4-dmenu-desktop uses x11-misc/dmenu as default,"
72 + elog "you must configure your own replacement with --dmenu=<command>,"
73 + elog "as otherwise it won't work."
74 + fi
75 +}