Bump EAPI in cairo-dock and cairo-dock-plugins ebuilds. Migrate from abandoned cmake-utils eclass to cmake

Reported-by: J <progman3k@gmail.com>
This commit is contained in:
Sergey Popov 2022-08-03 11:26:06 +03:00
parent 2fb3e0f128
commit 456c91ebb3
3 changed files with 30 additions and 19 deletions

View File

@ -1 +1 @@
DIST cairo-dock-3.4.1.tar.gz 2663098 SHA256 dcadbbe089487f22b112f25a91d1c966275b245f248f950c6987de787eb95137 SHA512 427bb11fe447e76d4b82c89023321cfa3ebb3fcc5f1309f5454fd43b650404acfd53d576ff4f46765c51d5360bb32bac1bf454e2762547d3de031baa9c081345 WHIRLPOOL b9c5406f450aea586ed9fd0578bc1d5adba28cd789535904e2ef7182eedd62033cf81229278f59dc30676964bc11e2e51b105ff2093b17215cc56ef287e0fac7 DIST cairo-dock-3.4.1.tar.gz 2663098 BLAKE2B ef2dc3d5f61c82245f91f6209ff0620009b9cd18bc1f5fe61a562ab7a7c5084ecd76245b2c2e77ebd0e91e100b5bb88e51797bad4b24b4e4d151f50385696c66 SHA512 427bb11fe447e76d4b82c89023321cfa3ebb3fcc5f1309f5454fd43b650404acfd53d576ff4f46765c51d5360bb32bac1bf454e2762547d3de031baa9c081345

View File

@ -1,12 +1,12 @@
# Copyright 1999-2017 Gentoo Foundation # Copyright 1999-2022 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="6" EAPI=8
inherit cmake-utils eutils versionator inherit cmake
MY_PN="${PN}-core" MY_PN="${PN}-core"
MM_PV=$(get_version_component_range '1-2') MM_PV=$(ver_cut '1-2')
DESCRIPTION="Cairo-dock is a fast, responsive, Mac OS X-like dock." DESCRIPTION="Cairo-dock is a fast, responsive, Mac OS X-like dock."
HOMEPAGE="http://www.glx-dock.org" HOMEPAGE="http://www.glx-dock.org"
@ -15,7 +15,7 @@ SRC_URI="http://launchpad.net/${MY_PN}/${MM_PV}/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3" LICENSE="GPL-3"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
IUSE="crypt xcomposite desktop_manager gtk3" IUSE="crypt xcomposite desktop_manager"
RDEPEND=" RDEPEND="
dev-libs/dbus-glib dev-libs/dbus-glib
@ -26,10 +26,9 @@ RDEPEND="
sys-apps/dbus sys-apps/dbus
x11-libs/cairo x11-libs/cairo
x11-libs/pango x11-libs/pango
!gtk3? ( x11-libs/gtk+:2 )
x11-libs/gtkglext x11-libs/gtkglext
x11-libs/libXrender x11-libs/libXrender
gtk3? ( x11-libs/gtk+:3 ) x11-libs/gtk+:3
crypt? ( sys-libs/glibc ) crypt? ( sys-libs/glibc )
xcomposite? ( xcomposite? (
x11-libs/libXcomposite x11-libs/libXcomposite
@ -43,12 +42,24 @@ DEPEND="${RDEPEND}
sys-devel/gettext sys-devel/gettext
" "
src_prepare() {
# We will install man files manually
sed -i -e '/add_subdirectory(man)/d' data/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() { src_configure() {
mycmakeargs=( local mycmakeargs=(
`use gtk3 && echo "-Dforce-gtk2=OFF" || echo "-Dforce-gtk2=ON"` $(use desktop_manager && echo "-Denable-desktop-manager=ON" || echo "-Denable-desktop-manager=OFF")
`use desktop_manager && echo "-Denable-desktop-manager=ON" || echo "-Denable-desktop-manager=OFF"` -DCMAKE_INSTALL_MANDIR="/usr/share/man/${PV}"
) )
cmake-utils_src_configure cmake_src_configure
}
src_install() {
newman data/man/cairo-dock_en.1 cairo-dock_en.1
cmake_src_install
} }
pkg_postinst() { pkg_postinst() {

View File

@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors # Copyright 1999-2022 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=7 EAPI=8
inherit cmake-utils eutils inherit cmake
MY_PN="${PN/plugins/plug-ins}" MY_PN="${PN/plugins/plug-ins}"
MM_PV=$(ver_cut 1-2) MM_PV=$(ver_cut 1-2)
@ -53,10 +53,10 @@ DEPEND="${RDEPEND}
src_configure() { src_configure() {
local mycmakeargs=( local mycmakeargs=(
"-Denable-alsa-mixer=$(usex alsa)" -Denable-alsa-mixer=$(usex alsa)
"-Denable-sound-effects=$(usex alsa)" -Denable-sound-effects=$(usex alsa)
# broken with 0.99.x (as of cairo-dock 3.3.2) # broken with 0.99.x (as of cairo-dock 3.3.2)
"-Denable-upower-support=OFF" -Denable-upower-support=OFF
) )
cmake-utils_src_configure cmake_src_configure
} }