x11-wm/compiz: several improvements

- fix automagical depend upon libnotify
- rename USE gles->gles2 to be more consistent with other packages
- use -DBUILD* cmake flags rather -DUSE_*
- fix GLES support: Before that GLES was always enabled on arm* and
  always disabled on all other arches regardless of the use flag. Use of
  -DBUILD_GLES rathere than -DUSE_GLES fixes the issue.
- keyworded for ~arm64

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/339/head
Alexander Golubev 5 months ago committed by TDE Gitea
parent 66b9980c01
commit 0c3ac7cd95

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors # Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@ -13,7 +13,7 @@ if [[ ${PV} == 9999* ]]; then
S="${WORKDIR}/${P}" S="${WORKDIR}/${P}"
else else
SRC_URI="http://launchpad.net/${PN}/${BRANCH}/${PV}/+download/${P}.tar.xz" SRC_URI="http://launchpad.net/${PN}/${BRANCH}/${PV}/+download/${P}.tar.xz"
KEYWORDS="~amd64" KEYWORDS="~amd64 ~arm64"
fi fi
DESCRIPTION="OpenGL window and compositing manager" DESCRIPTION="OpenGL window and compositing manager"
@ -22,7 +22,7 @@ HOMEPAGE="https://launchpad.net/compiz"
LICENSE="GPL-2 LGPL-2.1 MIT" LICENSE="GPL-2 LGPL-2.1 MIT"
SLOT="0" SLOT="0"
IUSE="+cairo debug dbus gles gnome gtk kde +svg test" IUSE="+cairo debug dbus gles2 gnome gtk kde libnotify +svg test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}" REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )" RESTRICT="!test? ( test )"
@ -64,6 +64,7 @@ COMMONDEPEND="
) )
) )
kde? ( kde-plasma/kwin ) kde? ( kde-plasma/kwin )
libnotify? ( x11-libs/libnotify )
svg? ( svg? (
gnome-base/librsvg:2 gnome-base/librsvg:2
x11-libs/cairo x11-libs/cairo
@ -109,14 +110,15 @@ src_prepare() {
src_configure() { src_configure() {
use debug && CMAKE_BUILD_TYPE=Debug use debug && CMAKE_BUILD_TYPE=Debug
local mycmakeargs=( local mycmakeargs=(
-DUSE_GLES=$(usex gles) -DBUILD_GLES=$(usex gles2)
-DUSE_GNOME=$(usex gnome) -DBUILD_GNOME=$(usex gnome)
-DUSE_METACITY=$(usex gnome) -DBUILD_METACITY=$(usex gnome)
-DUSE_GTK=$(usex gtk) -DBUILD_GTK=$(usex gtk)
-DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD=17
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release
-DCOMPIZ_BUILD_TESTING=$(usex test) -DCOMPIZ_BUILD_TESTING=$(usex test)
-DCOMPIZ_DEFAULT_PLUGINS=composite,opengl,decor,resize,place,move,ccp -DCOMPIZ_DEFAULT_PLUGINS=composite,opengl,decor,resize,place,move,ccp
-DCOMPIZ_ENABLED_PLUGIN_NOTIFICATION=$(usex libnotify)
-DCOMPIZ_DISABLE_SCHEMAS_INSTALL=On -DCOMPIZ_DISABLE_SCHEMAS_INSTALL=On
-DCOMPIZ_PACKAGING_ENABLED=On -DCOMPIZ_PACKAGING_ENABLED=On
-DCOMPIZ_BUILD_WITH_RPATH=Off -DCOMPIZ_BUILD_WITH_RPATH=Off

@ -5,4 +5,7 @@
<email>team-gentoo@trinitydesktop.org</email> <email>team-gentoo@trinitydesktop.org</email>
<name>Trinity Gentoo ebuilds project</name> <name>Trinity Gentoo ebuilds project</name>
</maintainer> </maintainer>
<upstream>
<remote-id type="launchpad">compiz</remote-id>
</upstream>
</pkgmetadata> </pkgmetadata>

Loading…
Cancel
Save