summary refs log tree commit diff
path: root/x11-misc/xclickroot
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/xclickroot')
-rw-r--r--x11-misc/xclickroot/Manifest2
-rw-r--r--x11-misc/xclickroot/metadata.xml3
-rw-r--r--x11-misc/xclickroot/xclickroot-1.3.ebuild (renamed from x11-misc/xclickroot/xclickroot-1.0.ebuild)27
-rw-r--r--x11-misc/xclickroot/xclickroot-9999.ebuild27
4 files changed, 52 insertions, 7 deletions
diff --git a/x11-misc/xclickroot/Manifest b/x11-misc/xclickroot/Manifest
index edaf4e2..efdf0ac 100644
--- a/x11-misc/xclickroot/Manifest
+++ b/x11-misc/xclickroot/Manifest
@@ -1 +1 @@
-DIST xclickroot-1.0.tar.gz 2250 BLAKE2B c83e0809aaaccc3bc917a563747797b84bf2875d04443c4ddb09ab9652d90e5cb22e7e236aacb422baa5008c951fa3bd05e23ad94b395bd21e4051291bd1f2fc SHA512 9dcce0e2a22bcf7109067cb0182056d877c484349db956e34cd3c3cf5edc1a51d2eb8f96539370fbb46a11a8b70e1f7d6e07ac46526beb8bba533013358fa2bc
+DIST xclickroot-1.3.tar.gz 2269 BLAKE2B e76939efc19a9939cd283a6ea6389f0ec7e8734ca505f19fa297095c2091cb159bf5ef8211c561439aa678453f2e5cbdaf5a1c041204d82b2b1d52683be15361 SHA512 39f28bfd76ca9233c9430d596dd6538e20bbaa44ad2d347899247202d943b24d04cf0b802b70971643705f378f3a91a151e2e72959ab4f787ffa6b4ff381a7a4
diff --git a/x11-misc/xclickroot/metadata.xml b/x11-misc/xclickroot/metadata.xml
index 7869e07..e906556 100644
--- a/x11-misc/xclickroot/metadata.xml
+++ b/x11-misc/xclickroot/metadata.xml
@@ -5,4 +5,7 @@
 		<email>azahi@teknik.io</email>
 		<name>azahi</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="github">phillbush/xclickroot</remote-id>
+	</upstream>
 </pkgmetadata>
diff --git a/x11-misc/xclickroot/xclickroot-1.0.ebuild b/x11-misc/xclickroot/xclickroot-1.3.ebuild
index 839addd..40b870c 100644
--- a/x11-misc/xclickroot/xclickroot-1.0.ebuild
+++ b/x11-misc/xclickroot/xclickroot-1.3.ebuild
@@ -8,9 +8,9 @@ if [[ ${PV} == *9999 ]]; then
 	EGIT_REPO_URI="https://github.com/phillbush/xclickroot.git"
 fi
 
-inherit eutils ${SCM}
+inherit toolchain-funcs ${SCM}
 
-DESCRIPTION="click on root window and run a command"
+DESCRIPTION="Click on the root window and run a command"
 HOMEPAGE="https://github.com/phillbush/xclickroot"
 
 if [[ ${PV} == *9999 ]]; then
@@ -29,6 +29,27 @@ DEPEND="x11-libs/libX11"
 RDEPEND="${DEPEND}"
 BDEPEND=""
 
+DOCS=(
+	README
+)
+
+src_prepare() {
+	sed -e '/^CPPFLAGS/d' \
+		-e 's/FLAGS =/FLAGS +=/g' \
+		-i config.mk || die
+
+	default
+}
+
+src_compile() {
+	emake \
+		CC="$(tc-getCC)"
+}
+
 src_install() {
-	emake PREFIX= DESTDIR="${D}" MANPREFIX="/usr/share/man" install
+	emake install \
+		DESTDIR="${D}" \
+		PREFIX="${EPREFIX}/usr"
+
+	einstalldocs
 }
diff --git a/x11-misc/xclickroot/xclickroot-9999.ebuild b/x11-misc/xclickroot/xclickroot-9999.ebuild
index 839addd..40b870c 100644
--- a/x11-misc/xclickroot/xclickroot-9999.ebuild
+++ b/x11-misc/xclickroot/xclickroot-9999.ebuild
@@ -8,9 +8,9 @@ if [[ ${PV} == *9999 ]]; then
 	EGIT_REPO_URI="https://github.com/phillbush/xclickroot.git"
 fi
 
-inherit eutils ${SCM}
+inherit toolchain-funcs ${SCM}
 
-DESCRIPTION="click on root window and run a command"
+DESCRIPTION="Click on the root window and run a command"
 HOMEPAGE="https://github.com/phillbush/xclickroot"
 
 if [[ ${PV} == *9999 ]]; then
@@ -29,6 +29,27 @@ DEPEND="x11-libs/libX11"
 RDEPEND="${DEPEND}"
 BDEPEND=""
 
+DOCS=(
+	README
+)
+
+src_prepare() {
+	sed -e '/^CPPFLAGS/d' \
+		-e 's/FLAGS =/FLAGS +=/g' \
+		-i config.mk || die
+
+	default
+}
+
+src_compile() {
+	emake \
+		CC="$(tc-getCC)"
+}
+
 src_install() {
-	emake PREFIX= DESTDIR="${D}" MANPREFIX="/usr/share/man" install
+	emake install \
+		DESTDIR="${D}" \
+		PREFIX="${EPREFIX}/usr"
+
+	einstalldocs
 }

Consider giving Nix/NixOS a try! <3