summary refs log tree commit diff
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
parenti3-gaps: Remove package (diff)
dev-libs/libwm: Add package
Diffstat (limited to '')
-rw-r--r--dev-libs/libwm/Manifest1
-rw-r--r--dev-libs/libwm/libwm-1.0.ebuild36
-rw-r--r--dev-libs/libwm/libwm-9999.ebuild36
-rw-r--r--dev-libs/libwm/metadata.xml8
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/libwm/Manifest b/dev-libs/libwm/Manifest
new file mode 100644
index 0000000..2f3172b
--- /dev/null
+++ b/dev-libs/libwm/Manifest
@@ -0,0 +1 @@
+DIST libwm-1.0.tar.gz 4691 BLAKE2B 5e851093a6adf6c3eedb68462c326ccff733b2a86533897259854970be13791ae2be237549ea56ea1b74e9bd709f03e8e9db63ed147862f6be7c48e6765ce570 SHA512 b979e1bf2d66e384ab0f05536852d9aeae321266dc24672544d3f05b8906efea4638c6e53f7a9d611ebd7064eee834df100b178ba1213543ff28ff0608284b1f
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
+}
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
+}
diff --git a/dev-libs/libwm/metadata.xml b/dev-libs/libwm/metadata.xml
new file mode 100644
index 0000000..843575d
--- /dev/null
+++ b/dev-libs/libwm/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>azahi@teknik.io</email>
+        <name>azahi</name>
+    </maintainer>
+</pkgmetadata>

Consider giving Nix/NixOS a try! <3