diff options
Diffstat (limited to 'x11-wm/compiz/compiz-9999.ebuild')
-rw-r--r-- | x11-wm/compiz/compiz-9999.ebuild | 54 |
1 files changed, 16 insertions, 38 deletions
diff --git a/x11-wm/compiz/compiz-9999.ebuild b/x11-wm/compiz/compiz-9999.ebuild index e59a9d2..6edd0cb 100644 --- a/x11-wm/compiz/compiz-9999.ebuild +++ b/x11-wm/compiz/compiz-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +EAPI=8 +PYTHON_COMPAT=( python3_{8..12} ) -inherit cmake-utils eutils gnome2-utils xdg-utils python-single-r1 toolchain-funcs +inherit cmake xdg-utils python-single-r1 toolchain-funcs if [[ ${PV} == 9999* ]]; then inherit git-r3 @@ -12,45 +12,36 @@ if [[ ${PV} == 9999* ]]; then S="${WORKDIR}/${P}" else SRC_URI="http://launchpad.net/${PN}/${BRANCH}/${PV}/+download/${P}.tar.xz" + KEYWORDS="~amd64" fi -KEYWORDS="~amd64" DESCRIPTION="OpenGL window and compositing manager" -HOMEPAGE="http://www.compiz.org/" +HOMEPAGE="https://launchpad.net/compiz" LICENSE="GPL-2 LGPL-2.1 MIT" SLOT="0" -IUSE="+cairo debug dbus fuse gles gnome gtk kde +svg test" +IUSE="+cairo debug dbus gles gnome gtk kde +svg test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" COMMONDEPEND=" ${PYTHON_DEPS} - !x11-wm/compiz-fusion - !x11-libs/compiz-bcop - !x11-libs/libcompizconfig - !x11-libs/compizconfig-backend-gconf - !x11-libs/compizconfig-backend-kconfig4 - !x11-plugins/compiz-plugins-main - !x11-plugins/compiz-plugins-extra - !x11-plugins/compiz-plugins-unsupported - !x11-apps/ccsm - !dev-python/compizconfig-python - !x11-apps/fusion-icon dev-libs/boost dev-libs/glib:2 - dev-cpp/glibmm + dev-cpp/glibmm:2 dev-libs/libxml2 dev-libs/libxslt $(python_gen_cond_dep ' - dev-python/cython[${PYTHON_MULTI_USEDEP}] - dev-python/setuptools[${PYTHON_MULTI_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] ') dev-libs/protobuf media-libs/libpng x11-base/xorg-server x11-libs/libX11 x11-libs/libXcomposite + x11-libs/libXcursor x11-libs/libXdamage x11-libs/libXext x11-libs/libXrandr @@ -62,14 +53,12 @@ COMMONDEPEND=" virtual/opengl virtual/glu cairo? ( x11-libs/cairo[X] ) - fuse? ( sys-fs/fuse:= ) gtk? ( x11-libs/gtk+:3 x11-libs/libwnck:3 x11-libs/pango gnome? ( gnome-base/gnome-desktop:= - gnome-base/gconf x11-wm/metacity ) ) @@ -93,7 +82,6 @@ RDEPEND="${COMMONDEPEND} x11-themes/hicolor-icon-theme" PATCHES=( "${FILESDIR}/access_violation.patch" - "${FILESDIR}/gcc-10.patch" "${FILESDIR}/gtk-extents.patch" ) @@ -110,7 +98,7 @@ pkg_setup() { } src_prepare() { - cmake-utils_src_prepare + cmake_src_prepare sed -i \ -e 's|CYTHON_BIN cython3|CYTHON_BIN cython|' \ compizconfig/compizconfig-python/CMakeLists.txt || die @@ -124,32 +112,26 @@ src_configure() { -DUSE_GNOME=$(usex gnome) -DUSE_METACITY=$(usex gnome) -DUSE_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_DISABLE_SCHEMAS_INSTALL=On -DCOMPIZ_PACKAGING_ENABLED=On -DCOMPIZ_BUILD_WITH_RPATH=Off - -DCOMPIZ_BUILD_TESTING=Off -DCOMPIZ_WERROR=Off -Wno-dev ) - cmake-utils_src_configure + cmake_src_configure } src_install() { - cmake-utils_src_install + cmake_src_install python_fix_shebang "${ED}" python_optimize } -pkg_preinst() { - use gnome && gnome2_gconf_savelist - gnome2_icon_savelist -} - pkg_postinst() { - use gnome && gnome2_gconf_install xdg_desktop_database_update xdg_icon_cache_update if use dbus; then @@ -158,10 +140,6 @@ pkg_postinst() { fi } -pkg_prerm() { - use gnome && gnome2_gconf_uninstall -} - pkg_postrm() { xdg_desktop_database_update xdg_icon_cache_update |