1 |
commit: 60cce5e8560ceb6196275bef62c12aabe6b2b453 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 2 19:17:41 2020 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 19:22:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60cce5e8 |
7 |
|
8 |
dev-perl/Curses: -r bump for EAPI7 + CFLAGS love + fixes |
9 |
|
10 |
- EAPI7 |
11 |
- Move env exports out of pkg_setup as they're not useful in binpkg's |
12 |
- Simplify src_configure logic to not need function calls, employing |
13 |
more 'usex' instead of weirder conditional code. |
14 |
- Ensure CFLAGS passed through to make/compiler |
15 |
|
16 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
17 |
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org> |
18 |
|
19 |
dev-perl/Curses/Curses-1.360.0-r1.ebuild | 47 ++++++++++++++++++++++++++++++++ |
20 |
1 file changed, 47 insertions(+) |
21 |
|
22 |
diff --git a/dev-perl/Curses/Curses-1.360.0-r1.ebuild b/dev-perl/Curses/Curses-1.360.0-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..684145194e6 |
25 |
--- /dev/null |
26 |
+++ b/dev-perl/Curses/Curses-1.360.0-r1.ebuild |
27 |
@@ -0,0 +1,47 @@ |
28 |
+# Copyright 1999-2020 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+DIST_AUTHOR=GIRAFFED |
34 |
+DIST_VERSION=1.36 |
35 |
+DIST_EXAMPLES=("demo" "demo2" "demo.form" "demo.menu" "demo.panel" "gdc") |
36 |
+inherit perl-module |
37 |
+ |
38 |
+DESCRIPTION="Curses interface modules for Perl" |
39 |
+ |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~sparc-solaris ~x86-solaris" |
42 |
+IUSE="+unicode test" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ >=sys-libs/ncurses-5:0=[unicode?] |
47 |
+ virtual/perl-Data-Dumper |
48 |
+" |
49 |
+DEPEND=" |
50 |
+ >=sys-libs/ncurses-5:0=[unicode?] |
51 |
+" |
52 |
+BDEPEND="${RDEPEND} |
53 |
+ virtual/perl-ExtUtils-MakeMaker |
54 |
+ test? ( virtual/perl-Test-Simple ) |
55 |
+" |
56 |
+ |
57 |
+src_configure() { |
58 |
+ myconf="${myconf} FORMS PANELS MENUS" |
59 |
+ mydoc=HISTORY |
60 |
+ export CURSES_LIBTYPE="$(usex unicode ncursesw ncurses)" |
61 |
+ local nc_tool="${CURSES_LIBTYPE}$(has_version 'sys-libs/ncurses:0/6' && echo 6 || echo 5)-config" |
62 |
+ export CURSES_LDFLAGS=$( ${nc_tool} --libs ) |
63 |
+ export CURSES_CFLAGS=$( ${nc_tool} --cflags ) |
64 |
+ perl-module_src_configure |
65 |
+ if ! use unicode ; then |
66 |
+ sed -i 's:<form.h>:"/usr/include/form.h":' "${S}"/c-config.h || die |
67 |
+ fi |
68 |
+} |
69 |
+src_compile() { |
70 |
+ mymake=( |
71 |
+ "OPTIMIZE=${CFLAGS}" |
72 |
+ ) |
73 |
+ perl-module_src_compile |
74 |
+} |