summary refs log tree commit diff
path: root/dev-libs/libwm/libwm-1.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libwm/libwm-1.0.ebuild')
-rw-r--r--dev-libs/libwm/libwm-1.0.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/libwm/libwm-1.0.ebuild b/dev-libs/libwm/libwm-1.0.ebuild
new file mode 100644
index 0000000..b42cb09
--- /dev/null
+++ b/dev-libs/libwm/libwm-1.0.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