commit:     dd811ae9d7a5a76ff567ba4771796aacce01951d
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  2 20:32:58 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Nov  2 20:33:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd811ae9

dev-tcltk/tcllib: add 2.0

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-tcltk/tcllib/Manifest                    |  1 +
 dev-tcltk/tcllib/files/tcllib-2.0-test.patch | 44 ++++++++++++++++++++++
 dev-tcltk/tcllib/tcllib-2.0.ebuild           | 56 ++++++++++++++++++++++++++++
 3 files changed, 101 insertions(+)

diff --git a/dev-tcltk/tcllib/Manifest b/dev-tcltk/tcllib/Manifest
index e5acbb3e6385..7627de90ecce 100644
--- a/dev-tcltk/tcllib/Manifest
+++ b/dev-tcltk/tcllib/Manifest
@@ -1,2 +1,3 @@
 DIST tcllib-1.20.tar.xz 6692664 BLAKE2B 
3e70cf0d0f9e469a20e18f84238f56a53b5b8e36abcf418dc32f64c819728968d24e2999705d91d8341cb608a6bb674a063e86253cddfb51f2693a94d0e070e5
 SHA512 
d2c20642f91cdc7bf3b329025be80eb9288d0919fa439c2066349b52950cf3c343f39c7745b9b08ec28a884ff2f219fe0fb5f47023f1266b6a6de6ae54852412
 DIST tcllib-1.21.tar.xz 6467488 BLAKE2B 
1faad78a263d9ef02d8d178bd329510a76db7b13d8ae636389877b25e1f1d125a6018ee9238cf3d8dbc04957d2e589669dc743c1f9e5823f28976ef73f8ce2e5
 SHA512 
0c8c333e1fd30237dbe40842082fd2da5141c50fc29c1a82960ce32b6780247b412ddfd1fe1e4414513dc77d6833611a46e07ca4137f13a51c7fea9fb81cef5b
+DIST tcllib-2.0.tar.xz 14872556 BLAKE2B 
804775438d69b569f59c8da842d51c74deecec0ec8591989a8094fd332585c833ddffb33f636c134207a231192088c09b431864b6d52449066d5997377e63ae3
 SHA512 
b637548359475368135ce68ed39a0c75c276bf91412c68f357e45f833d52a070d8e952edecfa1c94aa927f92c88c586086fce517d201eb72746751d146e30103

diff --git a/dev-tcltk/tcllib/files/tcllib-2.0-test.patch 
b/dev-tcltk/tcllib/files/tcllib-2.0-test.patch
new file mode 100644
index 000000000000..5645ca2a2341
--- /dev/null
+++ b/dev-tcltk/tcllib/files/tcllib-2.0-test.patch
@@ -0,0 +1,44 @@
+--- a/modules/comm/comm.test   2024-11-02 20:23:21.687981633 +0100
++++ b/modules/comm/comm.test   2024-11-02 20:23:34.055823008 +0100
+@@ -265,7 +265,7 @@
+ 
+ # ------------------------------------------------------------------------
+ 
+-test comm-6.0 {secured communication via tls package} hastls {
++test comm-6.0 {secured communication via tls package} 0 {
+     # Setup secured channel in main process.
+     tls::init \
+       -keyfile  [tcllibPath devtools/receiver.key] \
+--- a/modules/http/autoproxy.test      2024-11-02 20:24:32.014089148 +0100
++++ b/modules/http/autoproxy.test      2024-11-02 20:25:18.113509819 +0100
+@@ -180,7 +180,7 @@
+ } -result "Invalid TLS package option 'dummy'. Must be 'tls' or 'twapi'" 
-returnCodes error
+ 
+ test autoproxy-2.0.0 "autoproxy::tls_socket (tls) with proxy" -constraints {
+-    have_tls
++    0
+ } -setup {
+     packageReset
+     package require http
+--- a/modules/http/autoproxytls.test   2024-11-02 20:46:42.978304258 +0100
++++ b/modules/http/autoproxytls.test   2024-11-02 20:48:26.620984610 +0100
+@@ -186,7 +186,7 @@
+ }
+ 
+ test autoproxy-tls-1.1.1 "autoproxy::tls_socket (tls) with proxy and http 
proxy config" -constraints {
+-    have_tls
++    0
+ } -setup {
+     packageReset
+     autoproxy::configure -proxy_host proxy.tcllib.test -proxy_port 4319
+--- a/modules/pop3/pop3.test   2024-11-02 20:49:19.431312311 +0100
++++ b/modules/pop3/pop3.test   2024-11-02 20:49:48.197945678 +0100
+@@ -579,7 +579,7 @@
+     set msg
+ } {POP3 UIDL ERROR:  unknown command 'UIDL'}
+ 
+-test pop3-7.0 {open pop3 channel secured via package tls} hastls {
++test pop3-7.0 {open pop3 channel secured via package tls} 0 {
+     dialog::shutdown
+     dialog::setup server {Pop3 Fake Server} 1
+ 

diff --git a/dev-tcltk/tcllib/tcllib-2.0.ebuild 
b/dev-tcltk/tcllib/tcllib-2.0.ebuild
new file mode 100644
index 000000000000..6d27dc299cc4
--- /dev/null
+++ b/dev-tcltk/tcllib/tcllib-2.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit virtualx
+
+DESCRIPTION="Tcl Standard Library"
+HOMEPAGE="http://www.tcl.tk/software/tcllib/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${PN}/${PV}/${P}.tar.xz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-lang/tcl:0=
+       dev-tcltk/tdom
+       "
+DEPEND="${RDEPEND}"
+
+DOCS=(
+       ChangeLog DESCRIPTION.txt README.md devdoc/README.developer
+       devdoc/critcl-tcllib.txt devdoc/dirlayout_install.txt
+       devdoc/indexing.txt
+)
+HTML_DOCS=( idoc/www )
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
+src_prepare() {
+       default
+       rm modules/httpd/httpd.test || die
+}
+
+src_compile() {
+       :
+}
+
+src_test() {
+       USER= virtx emake test_batch
+}
+
+src_install() {
+       emake DESTDIR="${D}" install-tcl
+       einstalldocs
+
+       if use examples ; then
+               for f in $(find examples -type f); do
+                       docinto $(dirname $f)
+                       dodoc $f
+               done
+       fi
+}

Reply via email to