blob: 4dca58842bedb2dc7f9b52b31aad0ca00dce7b52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake flag-o-matic virtualx
DESCRIPTION="A clean, light window manager"
HOMEPAGE="https://ctwm.org/"
SRC_URI="https://ctwm.org/dist/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="jpeg test xpm"
RESTRICT="!test? ( test )"
RDEPEND="
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
jpeg? ( virtual/jpeg )
xpm? ( x11-libs/libXpm )
"
DEPEND="
${RDEPEND}
app-arch/xz-utils
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'
sed -i parse.c -e "/<stdio.h>/ a#include <ctype.h>" || die
}
src_configure() {
local mycmakeargs=(
-DNOMANCOMPRESS=yes
-DUSE_RPLAY=OFF
-DDOCDIR="${EPREFIX}"/usr/share/doc/${PF}
-DUSE_JPEG=$(usex jpeg 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
}
|