From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/j4-dmenu-desktop/
Date: Sun, 23 Aug 2020 18:14:20 +0000 (UTC) [thread overview]
Message-ID: <1598203303.8f833556e2489f8610f7a463fdfe51f4729c62d7.conikost@gentoo> (raw)
commit: 8f833556e2489f8610f7a463fdfe51f4729c62d7
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 23 16:45:45 2020 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Aug 23 17:21:43 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f833556
x11-misc/j4-dmenu-desktop: make dmenu optional
Since x11-misc/j4-dmenu-desktop uses dmenu as default,
it's being installed as a dependency by default too.
But there are also pure wayland users, but dmenu can't be used on wayland.
As x11-misc/j4-dmenu-desktop is flexible, users can manually configure
a dmenu alternative, like dev-libs/bemenu.
The possibility of disabling dmenu also won't pull in any X11
dependencies from x11-misc/dmenu anymore.
Also migrated from cmake-utils to cmake.
Closes: https://bugs.gentoo.org/730740
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
| 56 ++++++++++++++++++++++
| 3 ++
2 files changed, 59 insertions(+)
--git a/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-2.17-r1.ebuild b/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-2.17-r1.ebuild
new file mode 100644
index 00000000000..8a8d8c7525b
--- /dev/null
+++ b/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-2.17-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+MY_PV="r${PV}"
+
+DESCRIPTION="A fast desktop replacement for i3-dmenu-desktop"
+HOMEPAGE="https://github.com/enkore/j4-dmenu-desktop"
+SRC_URI="https://github.com/enkore/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+dmenu test"
+RESTRICT="!test? ( test )"
+
+DEPEND="test? ( dev-cpp/catch:1 )"
+RDEPEND="dmenu? ( x11-misc/dmenu )"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ cmake_src_prepare
+
+ # Respect users CFLAGS
+ sed -i -e "s/-pedantic -O2//" CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_GIT_CATCH="no"
+ -DWITH_TESTS="$(usex test)"
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ doman j4-dmenu-desktop.1
+}
+
+pkg_postinst() {
+ if ! use dmenu; then
+ elog "As you have disabled the 'dmenu' use flag,"
+ elog "x11-misc/dmenu won't be installed by default."
+ elog ""
+ elog "Since x11-misc/j4-dmenu-desktop uses x11-misc/dmenu as default,"
+ elog "you must configure your own replacement with --dmenu=<command>,"
+ elog "as otherwise it won't work."
+ fi
+}
--git a/x11-misc/j4-dmenu-desktop/metadata.xml b/x11-misc/j4-dmenu-desktop/metadata.xml
index 4e3a92938df..fd4200a4705 100644
--- a/x11-misc/j4-dmenu-desktop/metadata.xml
+++ b/x11-misc/j4-dmenu-desktop/metadata.xml
@@ -10,6 +10,9 @@
The purpose is to find .desktop files,
but shell commands can also be executed.
</longdescription>
+ <use>
+ <flag name="dmenu">Use <pkg>x11-misc/dmenu</pkg> as default. Disable to use a different implementation.</flag>
+ </use>
<upstream>
<bugs-to>https://github.com/enkore/j4-dmenu-desktop/issues</bugs-to>
<remote-id type="github">enkore/j4-dmenu-desktop</remote-id>
next reply other threads:[~2020-08-23 18:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-23 18:14 Conrad Kostecki [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-09 15:13 [gentoo-commits] repo/gentoo:master commit in: x11-misc/j4-dmenu-desktop/ Conrad Kostecki
2025-01-09 15:13 Conrad Kostecki
2025-01-09 15:13 Conrad Kostecki
2024-12-06 23:38 Conrad Kostecki
2024-09-15 12:45 Conrad Kostecki
2024-09-15 12:45 Conrad Kostecki
2024-09-15 12:45 Conrad Kostecki
2024-08-04 14:03 Conrad Kostecki
2024-07-26 20:52 Conrad Kostecki
2024-07-26 20:52 Conrad Kostecki
2024-06-17 22:31 Conrad Kostecki
2022-02-09 22:57 Conrad Kostecki
2022-02-09 22:57 Conrad Kostecki
2020-11-13 18:12 Conrad Kostecki
2020-11-13 1:29 Sam James
2020-11-12 21:03 Thomas Deutschmann
2020-10-03 14:42 Conrad Kostecki
2020-08-23 18:14 Conrad Kostecki
2019-12-28 15:43 Conrad Kostecki
2019-12-13 23:13 Conrad Kostecki
2019-12-03 0:02 Conrad Kostecki
2019-12-02 23:22 Conrad Kostecki
2019-04-19 2:12 Aaron Bauman
2019-03-02 20:11 Andreas Sturmlechner
2019-01-19 14:21 David Seifert
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=1598203303.8f833556e2489f8610f7a463fdfe51f4729c62d7.conikost@gentoo \
--to=conikost@gentoo.org \
--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