portage/x11-misc/gtk3-nocsd/gtk3-nocsd-9999.ebuild
Guillaume Castagnino f6c9e035fd x11-plugins/purple-hangout: drop
Package-Manager: Portage-2.3.51, Repoman-2.3.12
2018-11-14 10:07:52 +01:00

27 lines
623 B
Bash

# 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
}