commit:     a5b31d75c3d3626447ae670d4bd3902ae3167c28
Author:     Simon van der Maas <svdm-gentoo <AT> protonmail <DOT> com>
AuthorDate: Wed Feb 17 17:25:52 2021 +0000
Commit:     Simon van der Maas <svdm-gentoo <AT> protonmail <DOT> com>
CommitDate: Wed Feb 17 17:26:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a5b31d75

gui-wm/dwl: new package

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Simon van der Maas <svdm-gentoo <AT> protonmail.com>

 gui-wm/dwl/Manifest                   |  1 +
 gui-wm/dwl/dwl-0.2.ebuild             | 22 ++++++++++++++++++++++
 gui-wm/dwl/files/dwl-0.2-prefix.patch | 11 +++++++++++
 gui-wm/dwl/metadata.xml               |  8 ++++++++
 4 files changed, 42 insertions(+)

diff --git a/gui-wm/dwl/Manifest b/gui-wm/dwl/Manifest
new file mode 100644
index 00000000..a446975c
--- /dev/null
+++ b/gui-wm/dwl/Manifest
@@ -0,0 +1 @@
+DIST dwl-0.2.tar.gz 49105 BLAKE2B 
c9fc48b1018c46f5a7923dda615ac2bfc3d4ba7ccc588253f02343aa411be61e791093a4ee4938257dd13a4d0e69425ca10ba524dc6e081cb977ee89d0b4165f
 SHA512 
f7903c58ff95f947ac7d5706cf140ff72abcc33c9b8c5b16baa4e548e72aee4f6f0b2cbd95204cc25d000f6a5533c5d8009ad443b1fd95e18c06cda8050ff743

diff --git a/gui-wm/dwl/dwl-0.2.ebuild b/gui-wm/dwl/dwl-0.2.ebuild
new file mode 100644
index 00000000..1e332d95
--- /dev/null
+++ b/gui-wm/dwl/dwl-0.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="dwm for Wayland"
+HOMEPAGE="https://github.com/djpohly/dwl";
+SRC_URI="https://github.com/djpohly/dwl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="gui-libs/wlroots
+dev-libs/wayland-protocols"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       eapply "${FILESDIR}/${P}-prefix.patch"
+       eapply_user
+}

diff --git a/gui-wm/dwl/files/dwl-0.2-prefix.patch 
b/gui-wm/dwl/files/dwl-0.2-prefix.patch
new file mode 100644
index 00000000..3020247b
--- /dev/null
+++ b/gui-wm/dwl/files/dwl-0.2-prefix.patch
@@ -0,0 +1,11 @@
+diff --git a/config.mk b/config.mk
+index cd4e821..bdb2687 100644
+--- a/config.mk
++++ b/config.mk
+@@ -1,5 +1,5 @@
+ # paths
+-PREFIX = /usr/local
++PREFIX = /var/tmp/portage/gui-wm/dwl-0.2/image
+
+ # Default compile flags (overridable by environment)
+ CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare 
-Wno-unused-function -Wno-unused-variable -Wdeclaration-after-statement

diff --git a/gui-wm/dwl/metadata.xml b/gui-wm/dwl/metadata.xml
new file mode 100644
index 00000000..ad8cead2
--- /dev/null
+++ b/gui-wm/dwl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <maintainer type="person">
+        <email>svdm-gen...@protonmail.com</email>
+        <name>Simon van der Maas</name>
+    </maintainer>
+</pkgmetadata>

Reply via email to