You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-perl/Curses/Curses-1.370.0.ebuild

48 lines
1.2 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=GIRAFFED
DIST_VERSION=1.37
DIST_EXAMPLES=("demo" "demo2" "demo.form" "demo.menu" "demo.panel" "gdc")
inherit perl-module
DESCRIPTION="Curses interface modules for Perl"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~sparc-solaris ~x86-solaris"
IUSE="+unicode test"
RESTRICT="!test? ( test )"
RDEPEND="
>=sys-libs/ncurses-5:0=[unicode?]
virtual/perl-Data-Dumper
"
DEPEND="
>=sys-libs/ncurses-5:0=[unicode?]
"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
test? ( virtual/perl-Test-Simple )
"
src_configure() {
myconf="${myconf} FORMS PANELS MENUS"
mydoc=HISTORY
export CURSES_LIBTYPE="$(usex unicode ncursesw ncurses)"
local nc_tool="${CURSES_LIBTYPE}$(has_version 'sys-libs/ncurses:0/6' && echo 6 || echo 5)-config"
export CURSES_LDFLAGS=$( ${nc_tool} --libs )
export CURSES_CFLAGS=$( ${nc_tool} --cflags )
perl-module_src_configure
if ! use unicode ; then
sed -i 's:<form.h>:"/usr/include/form.h":' "${S}"/c-config.h || die
fi
}
src_compile() {
mymake=(
"OPTIMIZE=${CFLAGS}"
)
perl-module_src_compile
}