summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--x11-wm/shod/shod-0.3.1.ebuild16
-rw-r--r--x11-wm/shod/shod-9999.ebuild16
2 files changed, 30 insertions, 2 deletions
diff --git a/x11-wm/shod/shod-0.3.1.ebuild b/x11-wm/shod/shod-0.3.1.ebuild
index fd3f1ad..41f79de 100644
--- a/x11-wm/shod/shod-0.3.1.ebuild
+++ b/x11-wm/shod/shod-0.3.1.ebuild
@@ -4,10 +4,12 @@
 EAPI=7
 
 if [[ ${PV} == *9999 ]]; then
-	inherit git-r3
+	SCM="git-r3"
 	EGIT_REPO_URI="https://github.com/phillbush/shod.git"
 fi
 
+inherit toolchain-funcs ${SCM}
+
 DESCRIPTION="Hybrid (floating and tiling) window manager"
 HOMEPAGE="https://github.com/phillbush/shod"
 
@@ -30,6 +32,11 @@ DEPEND="
 RDEPEND="${DEPEND}"
 BDEPEND=""
 
+DOCS=(
+	README
+	examples/
+)
+
 src_prepare() {
 	sed -e '/^CPPFLAGS/d' \
 		-e 's/FLAGS =/FLAGS +=/g' \
@@ -38,8 +45,15 @@ src_prepare() {
 	default
 }
 
+src_compile() {
+	emake \
+		CC="$(tc-getCC)"
+}
+
 src_install() {
 	emake install \
 		DESTDIR="${D}" \
 		PREFIX="${EPREFIX}/usr"
+
+	einstalldocs
 }
diff --git a/x11-wm/shod/shod-9999.ebuild b/x11-wm/shod/shod-9999.ebuild
index fd3f1ad..41f79de 100644
--- a/x11-wm/shod/shod-9999.ebuild
+++ b/x11-wm/shod/shod-9999.ebuild
@@ -4,10 +4,12 @@
 EAPI=7
 
 if [[ ${PV} == *9999 ]]; then
-	inherit git-r3
+	SCM="git-r3"
 	EGIT_REPO_URI="https://github.com/phillbush/shod.git"
 fi
 
+inherit toolchain-funcs ${SCM}
+
 DESCRIPTION="Hybrid (floating and tiling) window manager"
 HOMEPAGE="https://github.com/phillbush/shod"
 
@@ -30,6 +32,11 @@ DEPEND="
 RDEPEND="${DEPEND}"
 BDEPEND=""
 
+DOCS=(
+	README
+	examples/
+)
+
 src_prepare() {
 	sed -e '/^CPPFLAGS/d' \
 		-e 's/FLAGS =/FLAGS +=/g' \
@@ -38,8 +45,15 @@ src_prepare() {
 	default
 }
 
+src_compile() {
+	emake \
+		CC="$(tc-getCC)"
+}
+
 src_install() {
 	emake install \
 		DESTDIR="${D}" \
 		PREFIX="${EPREFIX}/usr"
+
+	einstalldocs
 }

Consider giving Nix/NixOS a try! <3