From 8d5dbd847cbc704a6a06405856e94b461011afe3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 27 Mar 2021 06:06:27 +0000 Subject: gentoo resync : 27.03.2021 --- x11-wm/ctwm/ctwm-4.0.3.ebuild | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'x11-wm/ctwm/ctwm-4.0.3.ebuild') diff --git a/x11-wm/ctwm/ctwm-4.0.3.ebuild b/x11-wm/ctwm/ctwm-4.0.3.ebuild index 4cf2574b36c4..7c24c6682a8f 100644 --- a/x11-wm/ctwm/ctwm-4.0.3.ebuild +++ b/x11-wm/ctwm/ctwm-4.0.3.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit cmake + +inherit cmake flag-o-matic virtualx DESCRIPTION="A clean, light window manager" HOMEPAGE="https://ctwm.org/" @@ -11,6 +12,8 @@ SRC_URI="https://ctwm.org/dist/${P}.tar.xz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" +IUSE="jpeg rplay test xpm" +RESTRICT="!test? ( test )" RDEPEND=" x11-libs/libICE @@ -18,18 +21,21 @@ RDEPEND=" x11-libs/libX11 x11-libs/libXext x11-libs/libXmu - x11-libs/libXpm x11-libs/libXt + jpeg? ( virtual/jpeg ) + rplay? ( media-sound/rplay ) + xpm? ( x11-libs/libXpm ) " DEPEND=" ${RDEPEND} app-arch/xz-utils - app-text/rman - virtual/jpeg x11-base/xorg-proto " src_prepare() { + # Bug 715904, sigjmp_buf is guarded by GNU_SOURCE + use elibc_musl && append-cflags -D_GNU_SOURCE + cmake_src_prepare # implicit 'isspace' @@ -37,10 +43,23 @@ src_prepare() { } src_configure() { - mycmakeargs=( + local mycmakeargs=( -DNOMANCOMPRESS=yes - -DDOCDIR=/usr/share/doc/${PF} + -DDOCDIR="${EPREFIX}"/usr/share/doc/${PF} + -DUSE_JPEG=$(usex jpeg ON OFF) + -DUSE_RPLAY=$(usex rplay ON OFF) + -DUSE_XPM=$(usex xpm ON OFF) ) cmake_src_configure } + +src_compile() { + # Bug 701656, test_bins target needs to be compiled + # to satisfy the 't_efp' test + cmake_src_compile all $(usex test test_bins '') +} + +src_test() { + virtx cmake_src_test +} -- cgit v1.2.3