1 |
commit: 48cb15603d66c57cb1934affb45e0807cf31e66b |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 18:00:48 2022 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 18:00:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48cb1560 |
7 |
|
8 |
dev-tcltk/tcllib: 1.21 bump |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-tcltk/tcllib/Manifest | 1 + |
14 |
dev-tcltk/tcllib/files/tcllib-1.21-test.patch | 101 ++++++++++++++++++++++++++ |
15 |
dev-tcltk/tcllib/tcllib-1.21.ebuild | 51 +++++++++++++ |
16 |
3 files changed, 153 insertions(+) |
17 |
|
18 |
diff --git a/dev-tcltk/tcllib/Manifest b/dev-tcltk/tcllib/Manifest |
19 |
index 1e734139f5b7..e5acbb3e6385 100644 |
20 |
--- a/dev-tcltk/tcllib/Manifest |
21 |
+++ b/dev-tcltk/tcllib/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST tcllib-1.20.tar.xz 6692664 BLAKE2B 3e70cf0d0f9e469a20e18f84238f56a53b5b8e36abcf418dc32f64c819728968d24e2999705d91d8341cb608a6bb674a063e86253cddfb51f2693a94d0e070e5 SHA512 d2c20642f91cdc7bf3b329025be80eb9288d0919fa439c2066349b52950cf3c343f39c7745b9b08ec28a884ff2f219fe0fb5f47023f1266b6a6de6ae54852412 |
24 |
+DIST tcllib-1.21.tar.xz 6467488 BLAKE2B 1faad78a263d9ef02d8d178bd329510a76db7b13d8ae636389877b25e1f1d125a6018ee9238cf3d8dbc04957d2e589669dc743c1f9e5823f28976ef73f8ce2e5 SHA512 0c8c333e1fd30237dbe40842082fd2da5141c50fc29c1a82960ce32b6780247b412ddfd1fe1e4414513dc77d6833611a46e07ca4137f13a51c7fea9fb81cef5b |
25 |
|
26 |
diff --git a/dev-tcltk/tcllib/files/tcllib-1.21-test.patch b/dev-tcltk/tcllib/files/tcllib-1.21-test.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..80371c98115c |
29 |
--- /dev/null |
30 |
+++ b/dev-tcltk/tcllib/files/tcllib-1.21-test.patch |
31 |
@@ -0,0 +1,101 @@ |
32 |
+--- a/modules/devtools/testutilities.tcl 2020-04-16 21:57:11.915653960 +0200 |
33 |
++++ b/modules/devtools/testutilities.tcl 2020-04-16 22:11:05.621829465 +0200 |
34 |
+@@ -229,6 +229,10 @@ |
35 |
+ ::tcltest::testConstraint tcl8.6plus \ |
36 |
+ [expr {[package vsatisfies [package provide Tcl] 8.6]}] |
37 |
+ |
38 |
++ ::tcltest::testConstraint tcl8.6.8 \ |
39 |
++ [expr { [package vsatisfies [package provide Tcl] 8.6.8] && |
40 |
++ ![package vsatisfies [package provide Tcl] 8.6.9]}] |
41 |
++ |
42 |
+ ::tcltest::testConstraint tcl8.6not10 \ |
43 |
+ [expr { [package vsatisfies [package provide Tcl] 8.6] && |
44 |
+ ![package vsatisfies [package provide Tcl] 8.6.10]}] |
45 |
+--- a/modules/hook/hook.test 2020-04-16 21:59:22.708326030 +0200 |
46 |
++++ b/modules/hook/hook.test 2020-04-16 22:09:18.055740312 +0200 |
47 |
+@@ -436,6 +436,7 @@ |
48 |
+ } -cleanup { |
49 |
+ cleanup |
50 |
+ } -result [tcltest::byConstraint { |
51 |
++ tcl8.6.8 {{{S1 <H1> {} O1} {simulated error} {-code 1 -level 0 -errorstack {INNER {error {simulated error}} UP 1 CALL {::hook::call S1 <H1>}} -errorcode NONE}}} |
52 |
+ tcl8.6.10plus {{{S1 <H1> {} O1} {simulated error} {-code 1 -level 0 -errorstack {INNER {error {simulated error}} UP 1 CALL {::hook::call S1 <H1>}} -errorcode NONE}}} |
53 |
+ tcl8.6not10 {{{S1 <H1> {} O1} {simulated error} {-code 1 -level 0 -errorstack {INNER {error {simulated error}} UP 1 CALL {call S1 <H1>}} -errorcode NONE}}} |
54 |
+ tcl8.5minus {{{S1 <H1> {} O1} {simulated error} {-code 1 -level 0 -errorcode NONE}}} |
55 |
+@@ -452,6 +453,7 @@ |
56 |
+ } -cleanup { |
57 |
+ cleanup |
58 |
+ } -result [tcltest::byConstraint { |
59 |
++ tcl8.6.8 {{{S1 <H1> O1 {}} {S1 <H1> O3 {}}} {{{S1 <H1> {} O2} {simulated error} {-code 1 -level 0 -errorstack {INNER {error {simulated error}} UP 1 CALL {::hook::call S1 <H1>}} -errorcode NONE}}}} |
60 |
+ tcl8.6.10plus {{{S1 <H1> O1 {}} {S1 <H1> O3 {}}} {{{S1 <H1> {} O2} {simulated error} {-code 1 -level 0 -errorstack {INNER {error {simulated error}} UP 1 CALL {::hook::call S1 <H1>}} -errorcode NONE}}}} |
61 |
+ tcl8.6not10 {{{S1 <H1> O1 {}} {S1 <H1> O3 {}}} {{{S1 <H1> {} O2} {simulated error} {-code 1 -level 0 -errorstack {INNER {error {simulated error}} UP 1 CALL {call S1 <H1>}} -errorcode NONE}}}} |
62 |
+ tcl8.5minus {{{S1 <H1> O1 {}} {S1 <H1> O3 {}}} {{{S1 <H1> {} O2} {simulated error} {-code 1 -level 0 -errorcode NONE}}}} |
63 |
+--- a/modules/http/autoproxy.test 2020-04-16 22:48:04.645153193 +0200 |
64 |
++++ b/modules/http/autoproxy.test 2020-04-16 22:48:30.710701582 +0200 |
65 |
+@@ -179,20 +179,6 @@ |
66 |
+ autoproxy::configure -tls_package dummy |
67 |
+ } -result "Invalid TLS package option 'dummy'. Must be 'tls' or 'twapi'" -returnCodes error |
68 |
+ |
69 |
+-test autoproxy-2.0.0 "autoproxy::tls_socket (tls) with proxy" -constraints { |
70 |
+- have_tls |
71 |
+-} -setup { |
72 |
+- packageReset |
73 |
+- package require http |
74 |
+- autoproxy::configure -proxy_host $proxy_host -proxy_port $proxy_port |
75 |
+-} -body { |
76 |
+- http::register https 443 autoproxy::tls_socket |
77 |
+- set tok [http::geturl https://www.example.com] |
78 |
+- http::status $tok |
79 |
+-} -cleanup { |
80 |
+- http::cleanup $tok |
81 |
+-} -result ok |
82 |
+- |
83 |
+ test autoproxy-2.0.1 "autoproxy::tls_socket (twapi) with proxy" -constraints { |
84 |
+ have_twapi |
85 |
+ } -setup { |
86 |
+@@ -202,20 +188,6 @@ |
87 |
+ } -body { |
88 |
+ http::register https 443 autoproxy::tls_socket |
89 |
+ set tok [http::geturl https://www.example.com] |
90 |
+- http::status $tok |
91 |
+-} -cleanup { |
92 |
+- http::cleanup $tok |
93 |
+-} -result ok |
94 |
+- |
95 |
+-test autoproxy-2.1.0 "autoproxy::tls_socket (tls) without proxy" -constraints { |
96 |
+- have_tls |
97 |
+-} -setup { |
98 |
+- packageReset |
99 |
+- package require http |
100 |
+- autoproxy::configure -proxy_host "" -proxy_port $proxy_port |
101 |
+-} -body { |
102 |
+- http::register https 443 autoproxy::tls_socket |
103 |
+- set tok [http::geturl https://www.example.com] |
104 |
+ http::status $tok |
105 |
+ } -cleanup { |
106 |
+ http::cleanup $tok |
107 |
+--- a/modules/string/token_shell.test 2020-04-17 08:40:44.813030086 +0200 |
108 |
++++ b/modules/string/token_shell.test 2020-04-17 08:44:03.066752545 +0200 |
109 |
+@@ -26,6 +26,7 @@ |
110 |
+ test string-token-shell-1.0 "string token shell, wrong#args, not enough" -body { |
111 |
+ string token shell |
112 |
+ } -returnCodes error -result [tcltest::byConstraint { |
113 |
++ tcl8.6.8 {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
114 |
+ tcl8.6.10plus {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
115 |
+ tcl8.6not10 {wrong # args: should be "shell ?-indices? ?-partial? ?--? text"} |
116 |
+ tcl8.5minus {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
117 |
+@@ -34,6 +35,7 @@ |
118 |
+ test string-token-shell-1.1 "string token shell, wrong#args, too many" -body { |
119 |
+ string token shell T X |
120 |
+ } -returnCodes error -result [tcltest::byConstraint { |
121 |
++ tcl8.6.8 {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
122 |
+ tcl8.6.10plus {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
123 |
+ tcl8.6not10 {wrong # args: should be "shell ?-indices? ?-partial? ?--? text"} |
124 |
+ tcl8.5minus {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
125 |
+@@ -46,6 +48,7 @@ |
126 |
+ test string-token-shell-1.3 "string token shell, wrong#args, too many" -body { |
127 |
+ string token shell -- T X |
128 |
+ } -returnCodes error -result [tcltest::byConstraint { |
129 |
++ tcl8.6.8 {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
130 |
+ tcl8.6.10plus {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
131 |
+ tcl8.6not10 {wrong # args: should be "shell ?-indices? ?-partial? ?--? text"} |
132 |
+ tcl8.5minus {wrong # args: should be "::string::token::shell ?-indices? ?-partial? ?--? text"} |
133 |
|
134 |
diff --git a/dev-tcltk/tcllib/tcllib-1.21.ebuild b/dev-tcltk/tcllib/tcllib-1.21.ebuild |
135 |
new file mode 100644 |
136 |
index 000000000000..1e975342d4b7 |
137 |
--- /dev/null |
138 |
+++ b/dev-tcltk/tcllib/tcllib-1.21.ebuild |
139 |
@@ -0,0 +1,51 @@ |
140 |
+# Copyright 1999-2022 Gentoo Authors |
141 |
+# Distributed under the terms of the GNU General Public License v2 |
142 |
+ |
143 |
+EAPI=7 |
144 |
+ |
145 |
+inherit virtualx |
146 |
+ |
147 |
+DESCRIPTION="Tcl Standard Library" |
148 |
+HOMEPAGE="http://www.tcl.tk/software/tcllib/" |
149 |
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.xz" |
150 |
+ |
151 |
+LICENSE="BSD" |
152 |
+SLOT="0" |
153 |
+IUSE="examples" |
154 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
155 |
+RESTRICT="!test? ( test )" |
156 |
+ |
157 |
+RDEPEND=" |
158 |
+ dev-lang/tcl:0= |
159 |
+ dev-tcltk/tdom |
160 |
+ " |
161 |
+DEPEND="${RDEPEND}" |
162 |
+ |
163 |
+DOCS=( |
164 |
+ ChangeLog DESCRIPTION.txt README.md devdoc/README.developer |
165 |
+ devdoc/critcl-tcllib.txt devdoc/dirlayout_install.txt |
166 |
+ devdoc/indexing.txt |
167 |
+) |
168 |
+HTML_DOCS=( idoc/www ) |
169 |
+ |
170 |
+PATCHES=( "${FILESDIR}"/${P}-test.patch ) |
171 |
+ |
172 |
+src_prepare() { |
173 |
+ default |
174 |
+ rm modules/httpd/httpd.test || die |
175 |
+} |
176 |
+ |
177 |
+src_test() { |
178 |
+ USER= virtx emake test_batch |
179 |
+} |
180 |
+ |
181 |
+src_install() { |
182 |
+ default |
183 |
+ |
184 |
+ if use examples ; then |
185 |
+ for f in $(find examples -type f); do |
186 |
+ docinto $(dirname $f) |
187 |
+ dodoc $f |
188 |
+ done |
189 |
+ fi |
190 |
+} |