commit: b099e386d270046c2bd68efec18d79d97cdbc1dc Author: Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me> AuthorDate: Mon Jul 15 04:26:16 2024 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Mon Jul 29 07:33:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b099e386
gui-wm/dwl: add 0.7_rc1 Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me> Closes: https://github.com/gentoo/gentoo/pull/37558 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> gui-wm/dwl/Manifest | 1 + gui-wm/dwl/dwl-0.7_rc1.ebuild | 76 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/gui-wm/dwl/Manifest b/gui-wm/dwl/Manifest index 119227529e2f..e7ecf3f9d006 100644 --- a/gui-wm/dwl/Manifest +++ b/gui-wm/dwl/Manifest @@ -1,2 +1,3 @@ DIST dwl-v0.5.tar.gz 57363 BLAKE2B 6dce89cbfa1aa1946983897bed5ac16619ac237e0f7092b588847315b849392b83643839dc5386c5bd73a36e5da55a281696a6ef13dcaec8345cb4e495c5e3b7 SHA512 7bd292559b0ecafc54bf1c1ba0c3b6b0417e8bd03bb0058f492b87295c92b50932e25621cc5f804c38ad06ffadad7bb8017872fade4a04bf617b1d4f1993aae8 DIST dwl-v0.6.tar.gz 62677 BLAKE2B 01d010c7e5054c9a8ed0b2b03093e8eee8ff11555296819f2b42a54dd5f07507d9129e6eaf34521d5743bf172309472b52d9a0106b7badd545c75e922a115ef0 SHA512 5e5d7599438d4cdf632e7afaddb1d345c8131c9925e9e4d1b632ad52c4418b1db2c0ff6a2da4b5686607c79cf2598e26e8c7f4c8385be82b2c2355fa28c2e8fb +DIST dwl-v0.7-rc1.tar.gz 63167 BLAKE2B e581909decd5859702903c01e91af19dbcf394337dc6d1813835b883396eb075a91dcef1bfe0c92b1c0d61fd9303d1263a3ddbac1323c594ce84d628d9f31b66 SHA512 a3214539e3b8f1df3a3fef4dd51506db1ec1c730e793fbd30e2be44a2913b47b0f87d170a4466d61bb05a0822e6c4cab12916ff667db2c8b7e8fcc0beab0a2a1 diff --git a/gui-wm/dwl/dwl-0.7_rc1.ebuild b/gui-wm/dwl/dwl-0.7_rc1.ebuild new file mode 100644 index 000000000000..673657f8b653 --- /dev/null +++ b/gui-wm/dwl/dwl-0.7_rc1.ebuild @@ -0,0 +1,76 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit savedconfig toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://codeberg.org/dwl/dwl.git" + inherit git-r3 +else + MY_PV="${PV/_rc/-rc}" + MY_P="${PN}-v${MY_PV}" + SRC_URI="https://codeberg.org/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +fi + +DESCRIPTION="dwm for Wayland" +HOMEPAGE="https://codeberg.org/dwl/dwl" + +LICENSE="CC0-1.0 GPL-3+ MIT" +SLOT="0" +IUSE="X" + +if [[ ${PV} == 9999 ]]; then + COMMON_DEPEND="~gui-libs/wlroots-9999:=[libinput,session,X?]" +else + COMMON_DEPEND=" + >=gui-libs/wlroots-0.18:=[libinput,session,X?] + <gui-libs/wlroots-0.19:=" +fi + +COMMON_DEPEND+=" + dev-libs/libinput:= + dev-libs/wayland + x11-libs/libxkbcommon + X? ( + x11-libs/libxcb:= + x11-libs/xcb-util-wm + ) +" +RDEPEND=" + ${COMMON_DEPEND} + X? ( + x11-base/xwayland + ) +" +# uses <linux/input-event-codes.h> +DEPEND=" + ${COMMON_DEPEND} + sys-kernel/linux-headers +" +BDEPEND=" + >=dev-libs/wayland-protocols-1.32 + >=dev-util/wayland-scanner-1.23 + virtual/pkgconfig +" + +src_prepare() { + restore_config config.h + + default +} + +src_compile() { + emake PKG_CONFIG="$(tc-getPKG_CONFIG)" CC="$(tc-getCC)" \ + XWAYLAND="$(usev X -DXWAYLAND)" XLIBS="$(usev X "xcb xcb-icccm")" dwl +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc CHANGELOG.md README.md + + save_config config.h +}
