Diff cxxtools-3.0-r1 with a cxxtools-3.0-r2

/usr/portage/dev-libs/cxxtools/cxxtools-3.0-r2.ebuild 2023-10-09 14:52:29.492368350 +0300
1
# Copyright 2021 Gentoo Authors
1
# Copyright 2021-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
inherit autotools
7

  
6 8
DESCRIPTION="Collection of general purpose C++-classes"
7 9
HOMEPAGE="http://www.tntnet.org/cxxtools.html"
8 10
SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
9 11

  
10 12
LICENSE="LGPL-2.1"
11 13
SLOT="0"
12
KEYWORDS="amd64 ~sparc x86"
14
KEYWORDS="~amd64 ~sparc ~x86"
15
IUSE="test"
16
RESTRICT="!test? ( test )"
13 17

  
14 18
RDEPEND="virtual/libiconv"
15 19
DEPEND="${RDEPEND}"
16 20

  
17 21
DOCS=( AUTHORS )
18 22

  
23
PATCHES=(
24
	"${FILESDIR}"/${P}_gcc11.patch
25
	"${FILESDIR}"/${PN}-3.0-gcc12-time.patch
26
	"${FILESDIR}"/${PN}-3.0-lld-linking-openssl.patch
27
)
28

  
29
src_prepare() {
30
	default
31

  
32
	eautoreconf
33
}
34

  
19 35
src_configure() {
20 36
	econf \
21
		--disable-dependency-tracking \
22 37
		--disable-demos \
23
		--disable-unittest
38
		$(use_enable test unittest)
39
}
24 40

  
25
	eapply "${FILESDIR}/${P}_gcc11.patch"
41
src_test() {
42
	emake -C test
26 43

  
27
	default
44
	local -x USER=${LOGNAME}
45
	local -x TZ=UTC # doesn't like e.g. :/etc/timezone
46
	cd test || die
47
	./alltests || die
28 48
}
29 49

  
30 50
src_install() {
Thank you!