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

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

Loading…
Cancel
Save