blob: 69507033ee42720e148d999d221bee5dedce85ce (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Motif-based widget to display a grid of cells as a spreadsheet"
HOMEPAGE="https://xbae.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
IUSE="doc examples"
# tests need X display
# and are interactive so virtualx will not help
RESTRICT="test"
RDEPEND="
x11-libs/motif:0
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXt"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-tmpl.patch
"${FILESDIR}"/${P}-lxmp.patch
"${FILESDIR}"/${P}-Makefile.in.patch
)
src_configure() {
econf --enable-production
}
src_test() {
emake -C examples
emake -C examples/testall clean
}
src_install() {
default
insinto /usr/share/aclocal
doins ac_find_xbae.m4
if use examples; then
find examples -name '*akefile*' -delete || die
rm examples/{testall,extest} || die
dodoc -r examples
fi
if use doc; then
rm doc/{,images/}Makefile* || die
docinto html
dodoc -r doc/.
fi
# no static archives
find "${D}" -name '*.la' -delete || die
}
|