Diff fox-1.7.67-r2 with a fox-1.7.84

/usr/portage/x11-libs/fox/fox-1.7.84.ebuild 2023-10-09 14:52:35.916368512 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit autotools
6
inherit autotools flag-o-matic
7 7

  
8 8
DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and effectively"
9 9
HOMEPAGE="http://www.fox-toolkit.org/"
10
SRC_URI="ftp://ftp.fox-toolkit.org/pub/${P}.tar.gz"
10
SRC_URI="ftp://www.fox-toolkit.org/pub/${P}.tar.gz"
11 11

  
12 12
LICENSE="LGPL-2.1"
13 13
SLOT="1.7"
......
27 27
		media-libs/freetype:2
28 28
		x11-libs/libXft
29 29
	)
30
	zlib? ( sys-libs/zlib )"
31
DEPEND="${RDEPEND}
30
	zlib? ( sys-libs/zlib )
31
"
32
DEPEND="
33
	${RDEPEND}
32 34
	x11-base/xorg-proto
33
	x11-libs/libXt"
35
	x11-libs/libXt
36
"
34 37
BDEPEND="doc? ( app-doc/doxygen )"
35 38

  
36 39
PATCHES=(
37
	"${FILESDIR}"/"${PN}"-1.7.67-no-truetype.patch
38
	"${FILESDIR}"/"${PN}"-1.7.67-pthread_rwlock_prefer_writer_np-musl.patch
40
	"${FILESDIR}"/${PN}-1.7.84-pthread_rwlock_prefer_writer_np-musl.patch
39 41
)
40 42

  
41 43
src_prepare() {
42 44
	default
43 45

  
44
	sed -i '/#define REXDEBUG 1/d' lib/FXRex.cpp || die "Unable to remove spurious debug line."
45 46
	sed -i -e "s:windows::" Makefile.am || die
46
	sed -i -e 's/register //g' lib/*.cpp || die "Unable remove register keywords from sources under lib folder"
47
	sed -i -e 's/register //g' shutterbug/*.cpp || die "Unable remove register keywords from sources under shutterbug folder"
48
	sed -i -e 's/register //g' calculator/*.cpp || die "Unable remove register keywords from sources under calculator folder"
49
	sed -i -e 's/register //g' glviewer/*.cpp || die "Unable remove register keywords from sources under glviewer folder"
50
	sed -i -e 's/register //g' chart/*.cpp || die "Unable remove register keywords from sources under chart folder"
47

  
51 48
	if ! use tools; then
52 49
		local d
53 50
		for d in adie calculator pathfinder shutterbug; do
......
65 62
}
66 63

  
67 64
src_configure() {
65
	use debug || append-cppflags -DNDEBUG
66

  
67
	# Not using --enable-release because of the options it sets like no SSP
68 68
	econf \
69
		--disable-static \
70
		--enable-$(usex debug debug release) \
69
		$(use_enable debug) \
71 70
		$(use_enable bzip2 bz2lib) \
72 71
		$(use_enable jpeg) \
73 72
		$(use_with opengl) \
Thank you!