summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--x11-misc/closest/Manifest1
-rw-r--r--x11-misc/closest/closest-1.1.ebuild36
-rw-r--r--x11-misc/closest/closest-9999.ebuild36
-rw-r--r--x11-misc/closest/metadata.xml8
4 files changed, 81 insertions, 0 deletions
diff --git a/x11-misc/closest/Manifest b/x11-misc/closest/Manifest
new file mode 100644
index 0000000..adb28e9
--- /dev/null
+++ b/x11-misc/closest/Manifest
@@ -0,0 +1 @@
+DIST closest-1.1.tar.gz 5872 BLAKE2B 961eb79c0d3afb6146f78b25748c4d11a241491296a6c3f045359a747b0e023e18135b50eb8b0edd64a3256a1d3730655e14b9de066934a2c35db401f1e434d6 SHA512 ef00d606d968ac0b4a0cf73843304f9fe26910e16a798de4bd95cba9b5ffdee891c52d9da260c8bb3118326469290bf708670e91ed4a9f004b8a1a0df8980a1f
diff --git a/x11-misc/closest/closest-1.1.ebuild b/x11-misc/closest/closest-1.1.ebuild
new file mode 100644
index 0000000..bafd51f
--- /dev/null
+++ b/x11-misc/closest/closest-1.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2019-2020 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/phillbush/closest.git"
+fi
+
+inherit eutils ${SCM}
+
+DESCRIPTION="focus the closest window in a given direction"
+HOMEPAGE="https://github.com/phillbush/closest"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/phillbush/closest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+	x11-libs/libXinerama
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_install() {
+	emake PREFIX= DESTDIR="${D}" MANPREFIX="/usr/share/man" install
+}
diff --git a/x11-misc/closest/closest-9999.ebuild b/x11-misc/closest/closest-9999.ebuild
new file mode 100644
index 0000000..bafd51f
--- /dev/null
+++ b/x11-misc/closest/closest-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2019-2020 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/phillbush/closest.git"
+fi
+
+inherit eutils ${SCM}
+
+DESCRIPTION="focus the closest window in a given direction"
+HOMEPAGE="https://github.com/phillbush/closest"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/phillbush/closest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+	x11-libs/libXinerama
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_install() {
+	emake PREFIX= DESTDIR="${D}" MANPREFIX="/usr/share/man" install
+}
diff --git a/x11-misc/closest/metadata.xml b/x11-misc/closest/metadata.xml
new file mode 100644
index 0000000..7869e07
--- /dev/null
+++ b/x11-misc/closest/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