commit: 73e098879bac88e85ecaf953d85a46abcfa3dbe3
parent: 440033f08eb1cf54b963771efad879c08cbe5761
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 10 Dec 2018 15:15:11 +0100
x11-misc/gtk3-nocsd: Import from ::xwing
Diffstat:
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/x11-misc/gtk3-nocsd/Manifest b/x11-misc/gtk3-nocsd/Manifest
@@ -0,0 +1,2 @@
+EBUILD gtk3-nocsd-9999.ebuild 623 BLAKE2B b19c791115767c5b8e76f47d8da8640d3600113b6cfa03c38063644bf86869e5c79a80ba0fb982c03c021897d97a48bae0639c0b3d0562eb2db6462044a56c5e SHA512 dd5ef0e0f95dcbdf19444dd8e40fc553d4ee03f980e4a15585dde07d5cc32243c76fe37cb2831eedca789c67c8a4aa7aff39b7548610d8326832e68670f117ea
+MISC metadata.xml 297 BLAKE2B eaa3034be4628432939f9ed5441640393ada869de2817375a2c02362bb32a5094a30615efb733699c88c99c8e23ed30df57c3f16eb04e40d2d1f3273e3be683e SHA512 952b9272f1001c3d1ccd393d93236d69c799c42a09d38ec6140b771cee9e08714ec26c5857eca72c8b4fce82d7040a9b269f652d4bd31d8b953d0b20688c2985
diff --git a/x11-misc/gtk3-nocsd/gtk3-nocsd-9999.ebuild b/x11-misc/gtk3-nocsd/gtk3-nocsd-9999.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multilib git-r3
+
+DESCRIPTION="A hack to disable gtk3 client-side decorations"
+HOMEPAGE="https://github.com/PCMan/gtk3-nocsd"
+
+EGIT_REPO_URI="https://github.com/PCMan/gtk3-nocsd.git"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+LICENSE="GPL-2"
+
+DEPEND="x11-libs/gtk+:3"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ emake prefix="${D}/usr" libdir="${D}/usr/$(get_libdir)" install
+
+ dodir /etc/env.d
+ printf "GTK_CSD=0\nLD_PRELOAD=${EROOT%/}/usr/$(get_libdir)/libgtk3-nocsd.so.0" > "${D}/etc/env.d/90gtk3-nocsd" || die
+}