From 930c52c9b4423286de215ced85ca736b72c036bd Mon Sep 17 00:00:00 2001 From: XGQT Date: Mon, 30 Dec 2019 01:44:20 +0100 Subject: [PATCH] x11-misc/compton-tryone: add compton-tryone Package-Manager: Portage-2.3.79, Repoman-2.3.16 --- x11-misc/compton-tryone/Manifest | 1 + .../compton-tryone-0.1_beta2.ebuild | 91 +++++++++++++++++++ .../compton-tryone/compton-tryone-9999.ebuild | 91 +++++++++++++++++++ x11-misc/compton-tryone/metadata.xml | 11 +++ 4 files changed, 194 insertions(+) create mode 100644 x11-misc/compton-tryone/Manifest create mode 100644 x11-misc/compton-tryone/compton-tryone-0.1_beta2.ebuild create mode 100644 x11-misc/compton-tryone/compton-tryone-9999.ebuild create mode 100644 x11-misc/compton-tryone/metadata.xml diff --git a/x11-misc/compton-tryone/Manifest b/x11-misc/compton-tryone/Manifest new file mode 100644 index 0000000..801754e --- /dev/null +++ b/x11-misc/compton-tryone/Manifest @@ -0,0 +1 @@ +DIST compton-tryone-0.1_beta2.tar.gz 144239 BLAKE2B 993c091aa0eab4171740a26c4ea8e9da66368fbcddbbdf9c466dd2cb2dbe0a685dc6c2027a5b56d08df4fd42d21784dd2cbb7cf56869feb1b74b4854db20a5f8 SHA512 c3a019d90e32559d44e3a4969bcc15a15837db9c9519ce8cc70b1bd3d0cb16d29449f68cc2f6a8d834569c9620ec6533ab85c1586da957c69b1ae341d9584535 diff --git a/x11-misc/compton-tryone/compton-tryone-0.1_beta2.ebuild b/x11-misc/compton-tryone/compton-tryone-0.1_beta2.ebuild new file mode 100644 index 0000000..d8ea2b2 --- /dev/null +++ b/x11-misc/compton-tryone/compton-tryone-0.1_beta2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8} ) + +inherit toolchain-funcs python-r1 + +DESCRIPTION="A compositor for X, branch with dual kawase blur" +HOMEPAGE="https://github.com/tryone144/compton" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/tryone144/compton" + KEYWORDS="" +else + SRC_URI="https://github.com/tryone144/compton/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="MIT" +SLOT="0" +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-misc/compton + x11-apps/xprop + x11-apps/xwininfo +" +DEPEND=" + ${COMMON_DEPEND} + app-text/asciidoc + virtual/pkgconfig + x11-base/xorg-proto + drm? ( x11-libs/libdrm ) +" + +if [[ ${PV} != *9999* ]]; then + S="${WORKDIR}/compton-${PV}" +fi + +nobuildit() { + use $1 || echo yes +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]]; then + tc-export CC + fi +} + +src_compile() { + 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 +} diff --git a/x11-misc/compton-tryone/compton-tryone-9999.ebuild b/x11-misc/compton-tryone/compton-tryone-9999.ebuild new file mode 100644 index 0000000..d8ea2b2 --- /dev/null +++ b/x11-misc/compton-tryone/compton-tryone-9999.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8} ) + +inherit toolchain-funcs python-r1 + +DESCRIPTION="A compositor for X, branch with dual kawase blur" +HOMEPAGE="https://github.com/tryone144/compton" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/tryone144/compton" + KEYWORDS="" +else + SRC_URI="https://github.com/tryone144/compton/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="MIT" +SLOT="0" +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-misc/compton + x11-apps/xprop + x11-apps/xwininfo +" +DEPEND=" + ${COMMON_DEPEND} + app-text/asciidoc + virtual/pkgconfig + x11-base/xorg-proto + drm? ( x11-libs/libdrm ) +" + +if [[ ${PV} != *9999* ]]; then + S="${WORKDIR}/compton-${PV}" +fi + +nobuildit() { + use $1 || echo yes +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]]; then + tc-export CC + fi +} + +src_compile() { + 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 +} diff --git a/x11-misc/compton-tryone/metadata.xml b/x11-misc/compton-tryone/metadata.xml new file mode 100644 index 0000000..4005b09 --- /dev/null +++ b/x11-misc/compton-tryone/metadata.xml @@ -0,0 +1,11 @@ + + + + + Enable VSync with DRM_IOCTL_WAIT_VBLANK + Enable VSync with SGI_swap_control OpenGL extension + + + tryone144/compton + + \ No newline at end of file