diff options
Diffstat (limited to 'x11-misc/j4-dmenu-desktop')
-rw-r--r-- | x11-misc/j4-dmenu-desktop/Manifest | 2 | ||||
-rw-r--r-- | x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-3.2.ebuild | 63 |
2 files changed, 65 insertions, 0 deletions
diff --git a/x11-misc/j4-dmenu-desktop/Manifest b/x11-misc/j4-dmenu-desktop/Manifest index ddd786be369b..ea836576cd9f 100644 --- a/x11-misc/j4-dmenu-desktop/Manifest +++ b/x11-misc/j4-dmenu-desktop/Manifest @@ -1,3 +1,5 @@ DIST j4-dmenu-desktop-3.1.tar.gz 108974 BLAKE2B fd0527ee27855ef453b76e52cd15402bb86b9812255edacfacd5b5486162b052eb74d41f072fcf151837698d352dfa743a6bd30cd28156f62ddafc39d2402edb SHA512 6baa4bdf0564683e09bf3dd34f619ec9dcfc840be68ec0f68b4cd643bee5acbc09ebfffaf82daced991899fb467c84ed441257915a9c6b411f317e9947471fca +DIST j4-dmenu-desktop-3.2.tar.gz 125056 BLAKE2B 7fd26fd749961feb2a0de73b888e085fc4275743335923ab4c8674e79aa85bb2fca4787069fc2cf40ddc0f1748df0ec7f77164ff1cca80cc3c648fff016584c7 SHA512 d6bffa372a461feb1b09293bf51eb8dc081cf1d7aef21f059c51b296dc52804c3cefd9ab6d64d9025bbdee325cb7d24f78719a8f9504f55b868f10ca9715ae5a EBUILD j4-dmenu-desktop-3.1.ebuild 1270 BLAKE2B fb0f5962f891e0f24f6c9beb34e59bc6d03bb1f677ee0a5d78236ca61ebfcb21f321ddbd36e6a9ea81e0242c1a5aa552da6bc5bbf56f29b1bf163b29cead31d2 SHA512 c5eef0db2ae4c9edaeedcabbc15eb8f1215b1c8efefd6dff86efcda00cd89721a787bb3bcba42c3f6b6b1212ceec139e5d1aefc9f3449966dd57f8e484b27d44 +EBUILD j4-dmenu-desktop-3.2.ebuild 1272 BLAKE2B 4173a96dcf25858ea28fd5adde961964de652fd6f8d819b26347ad1fb2a391f8b42610ecd17d95b091e94cfeec33431aa7f180aeeb46d13c884c2558ba022125 SHA512 06f6a25ce89b56c46079d984f70ce4a06a5807046aa4106bb9eb74220627a28c2808d81f1b53c00a51ecb865a88414a086bbd91eab1635328ee380c8d501b221 MISC metadata.xml 720 BLAKE2B f7953adbe54ea74a53d8d24b01ab9f49ec6953730e555547de6cb19f11cf7cb359a80f517a334494007ab691942390bc8d48c27b44beed6d9e8829f120f67201 SHA512 1decbf705eafff204783071471f3fa6c99719525fd81b2eaaf0effaa41e501b81dddc2604e2069ca393933285f78f8f76686be14e6a7f0b301ebcf4fed3628e5 diff --git a/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-3.2.ebuild b/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-3.2.ebuild new file mode 100644 index 000000000000..e56bc1b3ab29 --- /dev/null +++ b/x11-misc/j4-dmenu-desktop/j4-dmenu-desktop-3.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+dmenu test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-cpp/catch:0 )" +DEPEND=" + dev-libs/libfmt:= + dev-libs/spdlog:= +" +RDEPEND=" + ${DEPEND} + dmenu? ( x11-misc/dmenu ) +" + +src_prepare() { + cmake_src_prepare + + # Respect users CFLAGS + sed -i -e "s/-pedantic -O2//" CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DNO_DOWNLOAD="ON" + -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 +} |