tx11-misc/compton: Add 9999 - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit a58f250237aa716d093d0e33a9f7727946838e7e DIR parent c5224c4fb9feb644ff865beaa865c3ba3ec9d75a HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 17 Jul 2017 21:38:31 +0200 x11-misc/compton: Add 9999 Diffstat: A x11-misc/compton/compton-9999.ebuiā¦ | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+), 0 deletions(-) --- DIR diff --git a/x11-misc/compton/compton-9999.ebuild b/x11-misc/compton/compton-9999.ebuild t@@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{4,5,6} ) +inherit toolchain-funcs python-r1 git-r3 + +DESCRIPTION="A compositor for X, and a fork of xcompmgr-dana" +HOMEPAGE="https://github.com/chjj/compton" +SRC_URI="" + +EGIT_REPO_URI="git://github.com/chjj/compton.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="dbus +drm opengl +pcre xinerama" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND="${PYTHON_DEPS} + dev-libs/libconfig + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXrender + dbus? ( sys-apps/dbus ) + opengl? ( virtual/opengl ) + pcre? ( dev-libs/libpcre:3 ) + xinerama? ( x11-libs/libXinerama )" +RDEPEND="${COMMON_DEPEND} + x11-apps/xprop + x11-apps/xwininfo" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + virtual/pkgconfig + x11-proto/xproto + drm? ( x11-libs/libdrm )" + +nobuildit() { use $1 || echo yes ; } + +src_compile() { + tc-export CC + emake docs + + NO_DBUS=$(nobuildit dbus) \ + NO_XINERAMA=$(nobuildit xinerama) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + emake compton +} + +src_install() { + NO_DBUS=$(nobuildit dbus) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + default + docinto examples + dodoc compton.sample.conf dbus-examples/* + python_foreach_impl python_newscript bin/compton-convgen.py compton-convgen +}