Diff fltk-1.3.5-r4 with a fltk-1.3.9999

/usr/portage/x11-libs/fltk/fltk-1.3.9999.ebuild 2023-10-09 14:52:35.916368512 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2019 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 flag-o-matic xdg-utils multilib-minimal
6
inherit autotools flag-o-matic git-r3 xdg-utils multilib-minimal
7 7

  
8 8
DESCRIPTION="C++ user interface toolkit for X and OpenGL"
9 9
HOMEPAGE="https://www.fltk.org/"
10
SRC_URI="https://www.fltk.org/pub/${PN}/${PV}/${P}-source.tar.gz"
10
EGIT_REPO_URI="https://github.com/fltk/fltk"
11
EGIT_OVERRIDE_BRANCH_FLTK_FLTK="branch-1.3"
11 12

  
12 13
SLOT="1"
13 14
LICENSE="FLTK LGPL-2"
14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
15
KEYWORDS=""
15 16
IUSE="cairo debug doc examples games +opengl static-libs +threads +xft +xinerama"
16 17

  
17 18
RDEPEND="
......
60 61
"
61 62
PATCHES=(
62 63
	"${FILESDIR}"/${PN}-1.3.0-share.patch
63
	"${FILESDIR}"/${PN}-1.3.3-fltk-config.patch
64
	"${FILESDIR}"/${PN}-1.3.9999-conf-tests.patch
64 65
	"${FILESDIR}"/${PN}-1.3.3-makefile-dirs.patch
65 66
	"${FILESDIR}"/${PN}-1.3.3-visibility.patch
66
	"${FILESDIR}"/${PN}-1.3.4-conf-tests.patch
67 67
	"${FILESDIR}"/${PN}-1.3.5-cmake.patch
68 68
	"${FILESDIR}"/${PN}-1.3.5-optim.patch
69
	"${FILESDIR}"/${PN}-1.3.5-AR.patch
70 69
)
71 70

  
71
pkg_setup() {
72
	unset FLTK_LIBDIRS
73
}
74

  
72 75
src_prepare() {
73 76
	default
74 77

  
......
76 79

  
77 80
	sed -i \
78 81
		-e 's:@HLINKS@::g' FL/Makefile.in || die
82
	sed -i \
83
		-e '/x-fluid/d' fluid/Makefile || die
84
	sed -i \
85
		-e '/C\(XX\)\?FLAGS=/s:@C\(XX\)\?FLAGS@::' \
86
		-e '/^LDFLAGS=/d' \
87
		"${S}/fltk-config.in" || die
79 88
	# docs in proper docdir
80 89
	sed -i \
81 90
		-e "/^docdir/s:fltk:${PF}/html:" \
......
85 94
	# also in Makefile:config.guess config.sub:
86 95
	cp misc/config.{guess,sub} . || die
87 96

  
88
	cp fluid/{,x-}fluid.desktop || die
89

  
90
	eaclocal
91 97
	eautoconf
92 98
	multilib_copy_sources
93 99
}
94 100

  
95 101
multilib_src_configure() {
96
	unset FLTK_LIBDIRS
97

  
98 102
	local FLTK_INCDIR=${EPREFIX}/usr/include/fltk
99 103
	local FLTK_LIBDIR=${EPREFIX}/usr/$(get_libdir)/fltk
100 104
	FLTK_LIBDIRS+=${FLTK_LIBDIRS+:}${FLTK_LIBDIR}
......
146 150
	default
147 151

  
148 152
	if multilib_is_native_abi; then
149
		emake -C fluid DESTDIR="${D}" install-linux install
150

  
151
		use doc && \
152
			emake -C documentation DESTDIR="${D}" install
153
		emake -C fluid \
154
			DESTDIR="${D}" install-linux install
153 155

  
154
		use games && \
155
			emake -C test DESTDIR="${D}" install-linux
156
		use doc &&
157
			emake -C documentation \
158
				DESTDIR="${D}" install
159

  
160
		use games &&
161
			emake -C test \
162
				DESTDIR="${D}" install-linux
156 163
	fi
157 164
}
158 165

  
Thank you!