blob: 0845a218f9b65f31ad7bc0a0b2d6cbcad0982edb (
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
|
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Collection of general purpose C++-classes"
HOMEPAGE="https://github.com/maekitalo/cxxtools"
SRC_URI="https://github.com/maekitalo/cxxtools/archive/refs/tags/V${PV}.tar.gz -> ${P}.tgz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="virtual/libiconv"
DEPEND="${RDEPEND}"
DOCS=( AUTHORS )
PATCHES=(
"${FILESDIR}"/${P}_gcc11.patch
"${FILESDIR}"/${PN}-3.0-gcc12-time.patch
"${FILESDIR}"/${PN}-3.0-lld-linking-openssl.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
--disable-demos \
$(use_enable test unittest)
}
src_test() {
emake -C test
local -x USER=${LOGNAME}
local -x TZ=UTC # doesn't like e.g. :/etc/timezone
cd test || die
./alltests || die
}
src_install() {
emake DESTDIR="${D}" install
einstalldocs
# remove static libs
find "${ED}" -name "*.la" -delete || die
}
|