mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-07 13:44:38 +02:00
Depend on >=mate-desktop-$(ver_cut 1-2) to avoid build failures for now as a quick workaround. The maintainers should check whether each package really needs it and also consider a possible QA check in the eclass given some of them seem to have a pattern in configure.ac for this, but given the bug has been open for a whlie, I'd rather have some of the deps be unnecessarily tight (not that it's even that tight) than as-it-was. Note that couldn't use ${MATE_BRANCH} as it says: > # Major and minor numbers of the version number, unless live. > # If live ebuild, will be set to '9999'. which made me wonder if it's actually meant to be 1-2 or 1-3 in ver_cut or what. Anyway, in summary: * Apply a fix which makes things better, even if it's slightly overkill; * Someone needs to audit these to find the actual minimum versions (some truly do need this, some need just something older, although unclear if upstream carefully update these or ont); * A QA check may be wise. Bug: https://bugs.gentoo.org/935279 Bug: https://bugs.gentoo.org/936079 Signed-off-by: Sam James <sam@gentoo.org>
78 lines
1.7 KiB
Bash
78 lines
1.7 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MATE_LA_PUNT="yes"
|
|
|
|
inherit mate
|
|
|
|
MINOR=$(($(ver_cut 2) % 2))
|
|
if [[ ${MINOR} -eq 0 ]]; then
|
|
KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv x86"
|
|
fi
|
|
|
|
DESCRIPTION="Several Caja extensions"
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
|
|
SENDTO="cdr gajim +mail pidgin upnp"
|
|
IUSE="image-converter nls +open-terminal share +wallpaper xattr media ${SENDTO}"
|
|
|
|
COMMON_DEPEND=">=dev-libs/glib-2.50:2
|
|
>=mate-base/caja-1.28.0
|
|
x11-libs/gdk-pixbuf:2
|
|
>=x11-libs/gtk+-3.22:3
|
|
gajim? (
|
|
>=dev-libs/dbus-glib-0.60
|
|
>=sys-apps/dbus-1
|
|
)
|
|
open-terminal? ( >=mate-base/mate-desktop-$(ver_cut 1-2) )
|
|
pidgin? ( >=dev-libs/dbus-glib-0.60 )
|
|
upnp? ( >=net-libs/gupnp-1.6.5 )
|
|
xattr? ( sys-apps/attr )
|
|
"
|
|
|
|
RDEPEND="${COMMON_DEPEND}
|
|
mate-base/mate-desktop
|
|
cdr? ( >=app-cdr/brasero-2.32.1:= )
|
|
gajim? ( net-im/gajim )
|
|
image-converter? (
|
|
|| (
|
|
media-gfx/imagemagick
|
|
media-gfx/graphicsmagick[imagemagick]
|
|
)
|
|
)
|
|
media? ( media-video/totem )
|
|
pidgin? ( net-im/pidgin )
|
|
"
|
|
|
|
BDEPEND="${COMMON_DEPEND}
|
|
dev-libs/libxml2
|
|
dev-util/gtk-doc
|
|
dev-build/gtk-doc-am
|
|
>=sys-devel/gettext-0.19.8
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_configure() {
|
|
local sendto_plugins="removable-devices"
|
|
use cdr && sendto_plugins+=",caja-burn"
|
|
use mail && sendto_plugins+=",emailclient"
|
|
use media && sendto_plugins+=",totem"
|
|
use pidgin && sendto_plugins+=",pidgin"
|
|
use gajim && sendto_plugins+=",gajim"
|
|
use upnp && sendto_plugins+=",upnp"
|
|
|
|
mate_src_configure \
|
|
--enable-sendto \
|
|
--with-sendto-plugins=${sendto_plugins}\
|
|
--disable-gksu \
|
|
$(use_enable image-converter) \
|
|
$(use_enable media av) \
|
|
$(use_enable nls) \
|
|
$(use_enable open-terminal) \
|
|
$(use_enable share) \
|
|
$(use_enable wallpaper) \
|
|
$(use_enable xattr xattr-tags)
|
|
}
|