blob: 1a8e4b61e872ad67a2f11c86377eeaa725ed748a (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=GIRAFFED
DIST_VERSION=1.44
DIST_EXAMPLES=("demo" "demo2" "demo.form" "demo.menu" "demo.panel")
inherit perl-module toolchain-funcs
DESCRIPTION="Curses interface modules for Perl"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ppc ppc64 ~s390 sparc x86"
IUSE="+unicode"
RDEPEND="
>=sys-libs/ncurses-6:=[unicode(+)?]
virtual/perl-Data-Dumper
"
DEPEND="
>=sys-libs/ncurses-6:=[unicode(+)?]
"
BDEPEND="
${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
virtual/pkgconfig
test? ( virtual/perl-Test-Simple )
"
src_configure() {
myconf=( FORMS PANELS MENUS )
mydoc=( HISTORY )
export CURSES_LIBTYPE="$(usex unicode ncursesw ncurses)"
export CURSES_LDFLAGS=$($(tc-getPKG_CONFIG) --libs ${CURSES_LIBTYPE} || die)
export CURSES_CFLAGS=$($(tc-getPKG_CONFIG) --cflags ${CURSES_LIBTYPE} || die)
perl-module_src_configure
if ! use unicode ; then
sed -i "s:<form.h>:\"${ESYSROOT}/usr/include/form.h\":" "${S}"/c-config.h || die
fi
}
|