summary refs log tree commit diff
path: root/x11-wm
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-11-26 00:56:13 +0300
committerAzat Bahawi <azahi@teknik.io>2020-11-26 00:56:19 +0300
commit8a0576b1a389756f05c50f1516ec122eccff5ae5 (patch)
treebf8fed4f2d2ccbebadbcb799e56ed3fc3ea321cb /x11-wm
parentx11-misc/devour: Bump version, update build (diff)
x11-wm/9wm: Fix CC exporting in build
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Azat Bahawi <azahi@teknik.io>
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/9wm/9wm-1.4.1-r1.ebuild (renamed from x11-wm/9wm/9wm-1.4.1.ebuild)9
-rw-r--r--x11-wm/9wm/9wm-9999-r1.ebuild (renamed from x11-wm/9wm/9wm-9999.ebuild)9
-rw-r--r--x11-wm/9wm/metadata.xml3
3 files changed, 19 insertions, 2 deletions
diff --git a/x11-wm/9wm/9wm-1.4.1.ebuild b/x11-wm/9wm/9wm-1.4.1-r1.ebuild
index 252274c..61236a7 100644
--- a/x11-wm/9wm/9wm-1.4.1.ebuild
+++ b/x11-wm/9wm/9wm-1.4.1-r1.ebuild
@@ -4,10 +4,12 @@
 EAPI=7
 
 if [[ ${PV} == *9999 ]]; then
-	inherit git-r3
+	SCM="git-r3"
 	EGIT_REPO_URI="https://github.com/9wm/9wm.git"
 fi
 
+inherit toolchain-funcs "${SCM}"
+
 DESCRIPTION="X11 window manager inspired by Plan 9's rio"
 HOMEPAGE="https://github.com/9wm/9wm"
 
@@ -32,6 +34,11 @@ BDEPEND=""
 
 DOCS=( CREDITS.md CUSTOMIZING.md README.md )
 
+src_compile() {
+	emake \
+		CC="$(tc-getCC)"
+}
+
 src_install() {
 	default
 	newman ${PN}.man ${PN}.1
diff --git a/x11-wm/9wm/9wm-9999.ebuild b/x11-wm/9wm/9wm-9999-r1.ebuild
index 252274c..61236a7 100644
--- a/x11-wm/9wm/9wm-9999.ebuild
+++ b/x11-wm/9wm/9wm-9999-r1.ebuild
@@ -4,10 +4,12 @@
 EAPI=7
 
 if [[ ${PV} == *9999 ]]; then
-	inherit git-r3
+	SCM="git-r3"
 	EGIT_REPO_URI="https://github.com/9wm/9wm.git"
 fi
 
+inherit toolchain-funcs "${SCM}"
+
 DESCRIPTION="X11 window manager inspired by Plan 9's rio"
 HOMEPAGE="https://github.com/9wm/9wm"
 
@@ -32,6 +34,11 @@ BDEPEND=""
 
 DOCS=( CREDITS.md CUSTOMIZING.md README.md )
 
+src_compile() {
+	emake \
+		CC="$(tc-getCC)"
+}
+
 src_install() {
 	default
 	newman ${PN}.man ${PN}.1
diff --git a/x11-wm/9wm/metadata.xml b/x11-wm/9wm/metadata.xml
index 7869e07..0331b5f 100644
--- a/x11-wm/9wm/metadata.xml
+++ b/x11-wm/9wm/metadata.xml
@@ -5,4 +5,7 @@
 		<email>azahi@teknik.io</email>
 		<name>azahi</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="github">9wm/9wm</remote-id>
+	</upstream>
 </pkgmetadata>

Consider giving Nix/NixOS a try! <3