diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-25 01:18:26 -0600 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-11-29 06:20:05 +0000 |
commit | 22220444f0aa4cc6262856bf4650797f6a0d5f02 (patch) | |
tree | c44c28f394322c21db717375aca5ee2cad12b93b /gui-wm | |
parent | gui-wm/dwl: update HOMEPAGE (diff) | |
download | gentoo-22220444f0aa4cc6262856bf4650797f6a0d5f02.tar.gz gentoo-22220444f0aa4cc6262856bf4650797f6a0d5f02.tar.bz2 gentoo-22220444f0aa4cc6262856bf4650797f6a0d5f02.zip |
gui-wm/dwl: add 0.5
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
Closes: https://github.com/gentoo/gentoo/pull/33974
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'gui-wm')
-rw-r--r-- | gui-wm/dwl/Manifest | 1 | ||||
-rw-r--r-- | gui-wm/dwl/dwl-0.5.ebuild | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/gui-wm/dwl/Manifest b/gui-wm/dwl/Manifest index d5fa8d1af0d1..ed31116f0689 100644 --- a/gui-wm/dwl/Manifest +++ b/gui-wm/dwl/Manifest @@ -1 +1,2 @@ DIST dwl-0.4.gh.tar.gz 54718 BLAKE2B 22aac990ed71bcb0be0e2ded7d335c3fb2ffa56d0185e4f15119f54d7dd28ce34c3d8888320f0d448d66c0dd829c036f22367706c4db1bd4a7e2db2dadf410fd SHA512 8db7e4d9559f57232f9dedc1645458cf504c1d56af93bfe3930ab4734dfe898b0ef7b86c987ec908afa43473fab4bef424abd0036645461dbefeb6ac3e2d0c5f +DIST dwl-v0.5.tar.gz 57363 BLAKE2B 6dce89cbfa1aa1946983897bed5ac16619ac237e0f7092b588847315b849392b83643839dc5386c5bd73a36e5da55a281696a6ef13dcaec8345cb4e495c5e3b7 SHA512 7bd292559b0ecafc54bf1c1ba0c3b6b0417e8bd03bb0058f492b87295c92b50932e25621cc5f804c38ad06ffadad7bb8017872fade4a04bf617b1d4f1993aae8 diff --git a/gui-wm/dwl/dwl-0.5.ebuild b/gui-wm/dwl/dwl-0.5.ebuild new file mode 100644 index 000000000000..f54f72310522 --- /dev/null +++ b/gui-wm/dwl/dwl-0.5.ebuild @@ -0,0 +1,76 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit savedconfig toolchain-funcs + +MY_P="${PN}-v${PV}" +WLROOTS_SLOT="0/17" +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://codeberg.org/dwl/dwl.git" + inherit git-r3 + + # 9999-r0: main (latest stable wlroots release) + # 9999-r1: wlroots-next (wlroots-9999) + case ${PVR} in + 9999) + EGIT_BRANCH=main + ;; + 9999-r1) + EGIT_BRANCH=wlroots-next + WLROOTS_SLOT="0/9999" + ;; + esac +else + SRC_URI="https://codeberg.org/${PN}/${PN}/releases/download/v${PV}/${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="dwm for Wayland" +HOMEPAGE="https://codeberg.org/dwl/dwl" + +LICENSE="CC0-1.0 GPL-3+ MIT" +SLOT="0" +IUSE="X" + +RDEPEND=" + dev-libs/libinput:= + dev-libs/wayland + gui-libs/wlroots:${WLROOTS_SLOT}[libinput,session,X?] + x11-libs/libxkbcommon + X? ( + x11-libs/libxcb:= + x11-libs/xcb-util-wm + ) +" + +# uses <linux/input-event-codes.h> +DEPEND=" + ${RDEPEND} + sys-kernel/linux-headers +" +BDEPEND=" + >=dev-libs/wayland-protocols-1.32 + dev-util/wayland-scanner + 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 +} |