commit:     25bcb9b11173c1a10a8b200684d0f4342ed94962
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Sun Sep 24 19:36:55 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 24 22:07:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25bcb9b1

gui-wm/dwl: new package, migrated from ::guru, add 0.4, 9999, 9999-r1

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Closes: https://github.com/gentoo/gentoo/pull/33039
Signed-off-by: Sam James <sam <AT> gentoo.org>

 gui-wm/dwl/Manifest           |  1 +
 gui-wm/dwl/dwl-0.4.ebuild     | 74 +++++++++++++++++++++++++++++++++++++++++++
 gui-wm/dwl/dwl-9999-r1.ebuild | 74 +++++++++++++++++++++++++++++++++++++++++++
 gui-wm/dwl/dwl-9999.ebuild    | 74 +++++++++++++++++++++++++++++++++++++++++++
 gui-wm/dwl/files/dwl.desktop  |  5 +++
 gui-wm/dwl/metadata.xml       | 16 ++++++++++
 6 files changed, 244 insertions(+)

diff --git a/gui-wm/dwl/Manifest b/gui-wm/dwl/Manifest
new file mode 100644
index 000000000000..bd68566cf4f6
--- /dev/null
+++ b/gui-wm/dwl/Manifest
@@ -0,0 +1 @@
+DIST dwl-0.4.tar.gz 54718 BLAKE2B 
22aac990ed71bcb0be0e2ded7d335c3fb2ffa56d0185e4f15119f54d7dd28ce34c3d8888320f0d448d66c0dd829c036f22367706c4db1bd4a7e2db2dadf410fd
 SHA512 
8db7e4d9559f57232f9dedc1645458cf504c1d56af93bfe3930ab4734dfe898b0ef7b86c987ec908afa43473fab4bef424abd0036645461dbefeb6ac3e2d0c5f

diff --git a/gui-wm/dwl/dwl-0.4.ebuild b/gui-wm/dwl/dwl-0.4.ebuild
new file mode 100644
index 000000000000..a80953766ba4
--- /dev/null
+++ b/gui-wm/dwl/dwl-0.4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit savedconfig toolchain-funcs
+
+WLROOTS_SLOT="0/16"
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="https://github.com/djpohly/dwl";
+       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://github.com/djpohly/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="dwm for Wayland"
+HOMEPAGE="https://github.com/djpohly/dwl";
+
+LICENSE="CC0-1.0 GPL-3+ MIT"
+SLOT="0"
+IUSE="X"
+
+RDEPEND="
+       dev-libs/libinput:=
+       dev-libs/wayland
+       gui-libs/wlroots:${WLROOTS_SLOT}[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
+       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 README.md
+
+       save_config config.h
+}

diff --git a/gui-wm/dwl/dwl-9999-r1.ebuild b/gui-wm/dwl/dwl-9999-r1.ebuild
new file mode 100644
index 000000000000..9e7a7bdcfaf3
--- /dev/null
+++ b/gui-wm/dwl/dwl-9999-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit savedconfig toolchain-funcs
+
+WLROOTS_SLOT="0/16"
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="https://github.com/djpohly/dwl";
+       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://github.com/djpohly/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="dwm for Wayland"
+HOMEPAGE="https://github.com/djpohly/dwl";
+
+LICENSE="CC0-1.0 GPL-3+ MIT"
+SLOT="0"
+IUSE="X"
+
+RDEPEND="
+       dev-libs/libinput:=
+       dev-libs/wayland
+       gui-libs/wlroots:${WLROOTS_SLOT}[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 README.md
+
+       save_config config.h
+}

diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999.ebuild
new file mode 100644
index 000000000000..a80953766ba4
--- /dev/null
+++ b/gui-wm/dwl/dwl-9999.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit savedconfig toolchain-funcs
+
+WLROOTS_SLOT="0/16"
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="https://github.com/djpohly/dwl";
+       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://github.com/djpohly/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="dwm for Wayland"
+HOMEPAGE="https://github.com/djpohly/dwl";
+
+LICENSE="CC0-1.0 GPL-3+ MIT"
+SLOT="0"
+IUSE="X"
+
+RDEPEND="
+       dev-libs/libinput:=
+       dev-libs/wayland
+       gui-libs/wlroots:${WLROOTS_SLOT}[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
+       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 README.md
+
+       save_config config.h
+}

diff --git a/gui-wm/dwl/files/dwl.desktop b/gui-wm/dwl/files/dwl.desktop
new file mode 100644
index 000000000000..e1380f7aa20d
--- /dev/null
+++ b/gui-wm/dwl/files/dwl.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=dwl
+Comment=dwm for Wayland
+Exec=dwl
+Type=Application

diff --git a/gui-wm/dwl/metadata.xml b/gui-wm/dwl/metadata.xml
new file mode 100644
index 000000000000..4ebf54b3ad36
--- /dev/null
+++ b/gui-wm/dwl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <maintainer type="person" proxied="yes">
+        <email>[email protected]</email>
+        <name>Leonardo Hernández Hernández</name>
+        <description>Additionally the upstream maintainer</description>
+    </maintainer>
+    <maintainer type="project" proxied="proxy">
+      <email>[email protected]</email>
+      <name>Proxy Maintainers</name>
+    </maintainer>
+    <upstream>
+        <remote-id type="github">djpohly/dwl</remote-id>
+    </upstream>
+</pkgmetadata>

Reply via email to