trinity-base/tdelibs: Add IUSE="arts", drop set-trinityver/need-arts

If your eclass needs special provisioning for a single ebuild, just do it
in the ebuild instead.

- We no longer have to tip-toe around assigning IUSE, DEPEND and RDEPEND
- Drop superfluous COMMON_DEPEND
- local mycmakeargs

Package-Manager: Portage-3.0.9, Repoman-3.0.2
RepoMan-Options: --force
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
pull/183/head
Andreas Sturmlechner 4 years ago
parent 39016ce22c
commit 2a9e89c1c4

@ -7,10 +7,6 @@ EAPI="7"
TRINITY_MODULE_NAME="tdelibs"
inherit trinity-base-2
set-trinityver
need-arts optional
DESCRIPTION="Trinity libraries needed by all TDE programs"
HOMEPAGE="https://trinitydesktop.org/"
@ -22,14 +18,14 @@ if [[ ${PV} != *9999* ]] ; then
fi
# NOTE: Building without tdehwlib segfaults, but you can try and report.
IUSE+=" alsa aspell cryptsetup cups debug elficons elogind fam +hwlib
IUSE+=" alsa arts aspell cryptsetup cups debug elficons elogind fam +hwlib
+idn ispell jpeg2k kernel_linux libressl lua lzma malloc networkmanager
old-udisks openexr +pcre pcsc-lite pkcs11 +shm spell +ssl sudo +svg systemd tiff
udevil udisks upower utempter xcomposite +xrandr zeroconf"
REQUIRED_USE="spell? ( || ( aspell ispell ) )"
COMMON_DEPEND="
DEPEND="
app-text/ghostscript-gpl
~dev-libs/dbus-1-tqt-${PV}
dev-libs/libxslt
@ -39,6 +35,7 @@ COMMON_DEPEND="
media-libs/freetype
x11-libs/libXrender
alsa? ( media-libs/alsa-lib )
arts? ( ~trinity-base/arts-${PV} )
cups? ( net-print/cups )
debug? ( sys-libs/binutils-libs:= )
elficons? ( ~dev-libs/libr-${PV} )
@ -68,8 +65,7 @@ COMMON_DEPEND="
xrandr? ( x11-libs/libXrandr )
zeroconf? ( ~dev-tqt/avahi-tqt-${PV} )
"
DEPEND+=" ${COMMON_DEPEND}"
RDEPEND+=" ${COMMON_DEPEND}
RDEPEND="${DEPEND}
hwlib? (
acct-group/plugdev
!udevil? ( !udisks? ( !old-udisks? ( sys-apps/pmount ) ) )
@ -83,7 +79,8 @@ RDEPEND+=" ${COMMON_DEPEND}
udevil? ( sys-apps/udevil )
udisks? ( sys-fs/udisks:2 )
upower? ( sys-power/upower )
)"
)
"
src_configure() {
local enable_logind="OFF"
@ -91,7 +88,7 @@ src_configure() {
enable_logind="ON"
fi
mycmakeargs=(
local mycmakeargs=(
-DTDE_MALLOC="$(usex malloc)"
-DTDE_MALLOC_FULL="$(usex malloc)"
-DTDE_MALLOC_DEBUG="$(usex debug)"
@ -100,6 +97,7 @@ src_configure() {
-DWITH_DEVKITPOWER=OFF
-DWITH_OLD_XDG_STD=OFF
-DWITH_KDE4_MENU_SUFFIX=OFF
-DWITH_ARTS="$(usex arts)"
-DWITH_LIBIDN="$(usex idn)"
-DWITH_MITSHM="$(usex shm)"
-DWITH_PCRE="$(usex pcre)"

Loading…
Cancel
Save