summary refs log tree commit diff
path: root/dev-libs/libwm/libwm-9999.ebuild
diff options
context:
space:
mode:
authorazahi <azahi@teknik.io>2019-11-03 13:53:12 +0300
committerazahi <azahi@teknik.io>2019-11-03 13:53:12 +0300
commit52f901d35215bde02077c1592b4ec7912578dcab (patch)
tree9994f75acd307820bd1a067df57e4eaeed11c11a /dev-libs/libwm/libwm-9999.ebuild
parenti3-gaps: Remove package (diff)
dev-libs/libwm: Add package
Diffstat (limited to 'dev-libs/libwm/libwm-9999.ebuild')
-rw-r--r--dev-libs/libwm/libwm-9999.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/libwm/libwm-9999.ebuild b/dev-libs/libwm/libwm-9999.ebuild
new file mode 100644
index 0000000..b42cb09
--- /dev/null
+++ b/dev-libs/libwm/libwm-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == *9999 ]]; then
+	SCM="git-r3"
+	EGIT_REPO_URI="https://github.com/wmutils/libwm"
+fi
+
+inherit ${SCM}
+
+DESCRIPTION="A small library for X windows manipulation"
+HOMEPAGE="https://github.com/wmutils/libwm"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/wmutils/libwm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="ISC"
+SLOT="0"
+IUSE=""
+
+DEPEND="x11-libs/libxcb"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_prepare() {
+	default
+
+	sed -e 's/\/local//' -i config.mk || die
+}

Consider giving Nix/NixOS a try! <3