Diff Curses-1.380.0 with a Curses-1.410.0

/usr/portage/dev-perl/Curses/Curses-1.410.0.ebuild 2023-10-09 14:52:29.840368359 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
DIST_AUTHOR=GIRAFFED
7
DIST_VERSION=1.38
7
DIST_VERSION=1.41
8 8
DIST_EXAMPLES=("demo" "demo2" "demo.form" "demo.menu" "demo.panel")
9
inherit perl-module
9
inherit perl-module toolchain-funcs
10 10

  
11 11
DESCRIPTION="Curses interface modules for Perl"
12 12

  
......
15 15
IUSE="+unicode"
16 16

  
17 17
RDEPEND="
18
	sys-libs/ncurses:=[unicode(+)?]
18
	>=sys-libs/ncurses-6:=[unicode(+)?]
19 19
	virtual/perl-Data-Dumper
20 20
"
21 21
DEPEND="
22
	sys-libs/ncurses:=[unicode(+)?]
22
	>=sys-libs/ncurses-6:=[unicode(+)?]
23 23
"
24
BDEPEND="${RDEPEND}
24
BDEPEND="
25
	${RDEPEND}
25 26
	virtual/perl-ExtUtils-MakeMaker
26 27
	test? ( virtual/perl-Test-Simple )
27 28
"
28 29

  
30
PATCHES=(
31
	"${FILESDIR}"/${PN}-1.410.0-clang16.patch
32
)
33

  
29 34
src_configure() {
30
	myconf="${myconf} FORMS PANELS MENUS"
31
	mydoc=HISTORY
35
	myconf=( FORMS PANELS MENUS )
36
	mydoc=( HISTORY )
37

  
32 38
	export CURSES_LIBTYPE="$(usex unicode ncursesw ncurses)"
33
	local nc_tool="${CURSES_LIBTYPE}$(has_version 'sys-libs/ncurses:0/6' && echo 6 || echo 5)-config"
34
	export CURSES_LDFLAGS=$( ${nc_tool} --libs )
35
	export CURSES_CFLAGS=$( ${nc_tool} --cflags )
39
	export CURSES_LDFLAGS=$($(tc-getPKG_CONFIG) --libs ${CURSES_LIBTYPE})
40
	export CURSES_CFLAGS=$($(tc-getPKG_CONFIG) --cflags ${CURSES_LIBTYPE})
41

  
36 42
	perl-module_src_configure
43

  
37 44
	if ! use unicode ; then
38
		sed -i 's:<form.h>:"/usr/include/form.h":' "${S}"/c-config.h || die
45
		sed -i 's:<form.h>:"${ESYSROOT}/usr/include/form.h":' "${S}"/c-config.h || die
39 46
	fi
40 47
}
Thank you!