1 |
commit: e8fa0139c9d04403a711cb5707637627c0673717 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 05:09:51 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 05:09:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8fa0139 |
7 |
|
8 |
dev-perl/Curses: add 1.410.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-perl/Curses/Curses-1.410.0.ebuild | 47 ++++++++++++ |
13 |
dev-perl/Curses/Manifest | 1 + |
14 |
dev-perl/Curses/files/Curses-1.410.0-clang16.patch | 84 ++++++++++++++++++++++ |
15 |
3 files changed, 132 insertions(+) |
16 |
|
17 |
diff --git a/dev-perl/Curses/Curses-1.410.0.ebuild b/dev-perl/Curses/Curses-1.410.0.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..09e5023669bd |
20 |
--- /dev/null |
21 |
+++ b/dev-perl/Curses/Curses-1.410.0.ebuild |
22 |
@@ -0,0 +1,47 @@ |
23 |
+# Copyright 1999-2022 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=8 |
27 |
+ |
28 |
+DIST_AUTHOR=GIRAFFED |
29 |
+DIST_VERSION=1.41 |
30 |
+DIST_EXAMPLES=("demo" "demo2" "demo.form" "demo.menu" "demo.panel") |
31 |
+inherit perl-module toolchain-funcs |
32 |
+ |
33 |
+DESCRIPTION="Curses interface modules for Perl" |
34 |
+ |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~sparc-solaris ~x86-solaris" |
37 |
+IUSE="+unicode" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ >=sys-libs/ncurses-6:=[unicode(+)?] |
41 |
+ virtual/perl-Data-Dumper |
42 |
+" |
43 |
+DEPEND=" |
44 |
+ >=sys-libs/ncurses-6:=[unicode(+)?] |
45 |
+" |
46 |
+BDEPEND=" |
47 |
+ ${RDEPEND} |
48 |
+ virtual/perl-ExtUtils-MakeMaker |
49 |
+ test? ( virtual/perl-Test-Simple ) |
50 |
+" |
51 |
+ |
52 |
+PATCHES=( |
53 |
+ "${FILESDIR}"/${PN}-1.410.0-clang16.patch |
54 |
+) |
55 |
+ |
56 |
+src_configure() { |
57 |
+ myconf=( FORMS PANELS MENUS ) |
58 |
+ mydoc=( HISTORY ) |
59 |
+ |
60 |
+ export CURSES_LIBTYPE="$(usex unicode ncursesw ncurses)" |
61 |
+ export CURSES_LDFLAGS=$($(tc-getPKG_CONFIG) --libs ${CURSES_LIBTYPE}) |
62 |
+ export CURSES_CFLAGS=$($(tc-getPKG_CONFIG) --cflags ${CURSES_LIBTYPE}) |
63 |
+ |
64 |
+ perl-module_src_configure |
65 |
+ |
66 |
+ if ! use unicode ; then |
67 |
+ sed -i 's:<form.h>:"${ESYSROOT}/usr/include/form.h":' "${S}"/c-config.h || die |
68 |
+ fi |
69 |
+} |
70 |
|
71 |
diff --git a/dev-perl/Curses/Manifest b/dev-perl/Curses/Manifest |
72 |
index 66499d4511a5..56d0bf347996 100644 |
73 |
--- a/dev-perl/Curses/Manifest |
74 |
+++ b/dev-perl/Curses/Manifest |
75 |
@@ -1,2 +1,3 @@ |
76 |
DIST Curses-1.37.tar.gz 135763 BLAKE2B b42f81d5a382b8cf6c8323cc5c13fd39dcc57081ad2e3de9e940f06a0126879d301ccaebc5c34fb5cb4bffd1263b0681243164539c450db50cd3388e6fd35823 SHA512 10886e725b174fdabc0c9b86a9ef9b717949f0fb03561bfc315e8503be689be7945d1ceeea2f950628ce480c2cc8081736d3b8f28042ea677b252298a9eb4827 |
77 |
DIST Curses-1.38.tar.gz 135789 BLAKE2B 68817bfafcfe2b9d9480c12f2490f9281b5e0cc51bbcfd795e2728a21ef24e12362cfc0896d7b5d6678f35f25fb80c0aee4cde5cf06ec8b3871168cd059649d6 SHA512 27999e71f19576c930a794c9f478e8a3b6b3b1d1e68c4ca57b712f20c98a83dba46295c012a6c618d097b661ec30441c8147e26579218ecef977d7c7996c7442 |
78 |
+DIST Curses-1.41.tar.gz 137458 BLAKE2B 04cb8fc655d0f8ce629fad453923a82ee8c3f7b95e042f036b1c1dc6781e181c04716f8166ebfc0a34eab2402271e8e05ce9438af7a7276c11d22fd9106733f7 SHA512 a8d091f3f79be6368bb0e465563cc736a934f66f489d8c1ec86dca71c22705c7969e1468c9d330cc6653994af550f8f95282b0fd504174d2f77b7d32e98be108 |
79 |
|
80 |
diff --git a/dev-perl/Curses/files/Curses-1.410.0-clang16.patch b/dev-perl/Curses/files/Curses-1.410.0-clang16.patch |
81 |
new file mode 100644 |
82 |
index 000000000000..1f11a893b2d4 |
83 |
--- /dev/null |
84 |
+++ b/dev-perl/Curses/files/Curses-1.410.0-clang16.patch |
85 |
@@ -0,0 +1,84 @@ |
86 |
+Fedora sent upstream by email: https://bugzilla.redhat.com/show_bug.cgi?id=2148432#c2. |
87 |
+ |
88 |
+https://src.fedoraproject.org/rpms/perl-Curses/c/2633f3adcd14dff61d6d45f97c8bc4f65ce06d82?branch=rawhide |
89 |
+Add missing int types for C99 compatibility. |
90 |
+--- a/testint.c |
91 |
++++ b/testint.c |
92 |
+@@ -8,6 +8,7 @@ |
93 |
+ |
94 |
+ #include "c-config.h" |
95 |
+ |
96 |
++int |
97 |
+ main() { |
98 |
+ int ret; |
99 |
+ |
100 |
+--- a/testtyp.c |
101 |
++++ b/testtyp.c |
102 |
+@@ -8,6 +8,7 @@ |
103 |
+ |
104 |
+ #include "c-config.h" |
105 |
+ |
106 |
++int |
107 |
+ main() { |
108 |
+ typedef SYM c_sym_t; |
109 |
+ } |
110 |
+ |
111 |
+--- a/test.syms |
112 |
++++ b/test.syms |
113 |
+@@ -24,6 +24,9 @@ use warnings; |
114 |
+ use English; |
115 |
+ |
116 |
+ my $verbose; |
117 |
++my $panels; |
118 |
++my $menus; |
119 |
++my $forms; |
120 |
+ |
121 |
+ sub makeCompileCommand($) { |
122 |
+ my ($compileR) = @_; |
123 |
+@@ -74,22 +77,31 @@ sub makeCompileCommand($) { |
124 |
+ # |
125 |
+ # _C_SYM_ and _C_FILE_ will be filled in later |
126 |
+ |
127 |
++ my $defs_prefix = '-D'; |
128 |
+ if ($OSNAME =~ m{VMS}i) { |
129 |
+- $compile =~ s{#DEFS#}{DEFINE=SYM="_C_SYM_"}; |
130 |
++ $defs_prefix = 'DEFINE-'; |
131 |
+ $compile =~ s{#FILE#}{_C_FILE_.c}; |
132 |
+ $compile =~ s{#NULL#}{}; # no non-verbose way |
133 |
+ } |
134 |
+ elsif ($OSNAME eq 'MSWin32') { |
135 |
+- $compile =~ s{#DEFS#}{-DSYM="_C_SYM_"}; |
136 |
+ $compile =~ s{#FILE#}{_C_FILE_.c}; |
137 |
+ $compile =~ s{#NULL#}{>nul 2>&1}; |
138 |
+ } |
139 |
+ else { |
140 |
+- $compile =~ s{#DEFS#}{-DSYM="_C_SYM_"}; |
141 |
+ $compile =~ s{#FILE#}{-o _C_FILE_ _C_FILE_.c}; |
142 |
+ $compile =~ s{#NULL#}{>/dev/null 2>&1}; |
143 |
+ } |
144 |
+ |
145 |
++ # Make these defines from CursesDef.h available early, so that |
146 |
++ # the feature probing uses the correct build configuration. |
147 |
++ my @defs = (qq(${defs_prefix}SYM="_C_SYM_")); |
148 |
++ push @defs, qq(${defs_prefix}C_PANELFUNCTION="1") if $panels; |
149 |
++ push @defs, qq(${defs_prefix}C_MENUFUNCTION="1") if $menus; |
150 |
++ push @defs, qq(${defs_prefix}C_FORMFUNCTION="1") if $forms; |
151 |
++ |
152 |
++ $compile =~ s{#DEFS#}{join " ", @defs}e; |
153 |
++ |
154 |
++ |
155 |
+ if ($compile =~ m{#.+#}) { |
156 |
+ die "OOPS: internal error constructing a compile command. " . |
157 |
+ "We failed to substitute for a #xxx# substitution variable " . |
158 |
+@@ -109,10 +121,6 @@ print("Set CURSES_VERBOSE environment variable to see the details of the " . |
159 |
+ "tests.\n"); |
160 |
+ print("\n"); |
161 |
+ |
162 |
+-my $panels; |
163 |
+-my $menus; |
164 |
+-my $forms; |
165 |
+- |
166 |
+ if ($ENV{CURSES_VERBOSE}) { |
167 |
+ $verbose = 1; |
168 |
+ } else { |
169 |
+ |