diff options
author | Kent Fredric <kentnl@gentoo.org> | 2020-07-03 07:17:41 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2020-07-03 07:22:06 +1200 |
commit | 60cce5e8560ceb6196275bef62c12aabe6b2b453 (patch) | |
tree | e42c0c030c5be9f3ce8f05f176c603024261c60d /dev-perl/Curses | |
parent | net-dns/pdns-recursor: Only the boost patch is still needed (diff) | |
download | gentoo-60cce5e8560ceb6196275bef62c12aabe6b2b453.tar.gz gentoo-60cce5e8560ceb6196275bef62c12aabe6b2b453.tar.bz2 gentoo-60cce5e8560ceb6196275bef62c12aabe6b2b453.zip |
dev-perl/Curses: -r bump for EAPI7 + CFLAGS love + fixes
- EAPI7
- Move env exports out of pkg_setup as they're not useful in binpkg's
- Simplify src_configure logic to not need function calls, employing
more 'usex' instead of weirder conditional code.
- Ensure CFLAGS passed through to make/compiler
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/Curses')
-rw-r--r-- | dev-perl/Curses/Curses-1.360.0-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-perl/Curses/Curses-1.360.0-r1.ebuild b/dev-perl/Curses/Curses-1.360.0-r1.ebuild new file mode 100644 index 000000000000..684145194e60 --- /dev/null +++ b/dev-perl/Curses/Curses-1.360.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DIST_AUTHOR=GIRAFFED +DIST_VERSION=1.36 +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 +} |