Skip to content

Commit e524564

Browse files
committed
feat(compat.opencv): add CN gitcode mirror (mcpp-res/opencv)
Mirrored opencv-4.13.0.tar.gz to gitcode mcpp-res/opencv via local gtc (byte-identical to the GitHub tag archive, sha256 verified 200 + match). Descriptor url strings -> { GLOBAL, CN } fallback tables on all three platforms, so CN users get a fast mirror and GLOBAL behaviour is unchanged.
1 parent c98deec commit e524564

1 file changed

Lines changed: 24 additions & 15 deletions

File tree

‎pkgs/c/compat.opencv.lua‎

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ package = {
5454
deps = { "xim:cmake@4.0.2", "xim:ninja@1.12.1", "xim:gcc@16.1.0",
5555
"xim:glibc@2.39", "scode:linux-headers@5.11.1" },
5656
["4.13.0"] = {
57-
-- Plain-string GLOBAL url (no CN mirror table): this session lacks
58-
-- mcpp-res write access. Per the add-package skill, CN users fall
59-
-- back to GLOBAL and a maintainer adds the gitcode mirror later
60-
-- (repo `mcpp-res/opencv`, asset `opencv-4.13.0.tar.gz`).
61-
url = "https://github.com/opencv/opencv/archive/refs/tags/4.13.0.tar.gz",
57+
-- GLOBAL>CN fallback table (the mcpp-index CN-mirror convention).
58+
-- The CN asset (gitcode mcpp-res/opencv) is the GitHub tag archive
59+
-- mirrored byte-for-byte via gtc — same sha256 below — so GLOBAL
60+
-- behaviour is unchanged and CN users get a fast mirror.
61+
url = {
62+
GLOBAL = "https://github.com/opencv/opencv/archive/refs/tags/4.13.0.tar.gz",
63+
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/4.13.0/opencv-4.13.0.tar.gz",
64+
},
6265
sha256 = "1d40ca017ea51c533cf9fd5cbde5b5fe7ae248291ddf2af99d4c17cf8e13017d",
6366
},
6467
},
@@ -69,11 +72,14 @@ package = {
6972
-- unpinned: compiler version needn't be fixed; libc++ ABI is stable).
7073
deps = { "xim:cmake@4.0.2", "xim:ninja@1.12.1", "xim:llvm" },
7174
["4.13.0"] = {
72-
-- Plain-string GLOBAL url (no CN mirror table): this session lacks
73-
-- mcpp-res write access. Per the add-package skill, CN users fall
74-
-- back to GLOBAL and a maintainer adds the gitcode mirror later
75-
-- (repo `mcpp-res/opencv`, asset `opencv-4.13.0.tar.gz`).
76-
url = "https://github.com/opencv/opencv/archive/refs/tags/4.13.0.tar.gz",
75+
-- GLOBAL>CN fallback table (the mcpp-index CN-mirror convention).
76+
-- The CN asset (gitcode mcpp-res/opencv) is the GitHub tag archive
77+
-- mirrored byte-for-byte via gtc — same sha256 below — so GLOBAL
78+
-- behaviour is unchanged and CN users get a fast mirror.
79+
url = {
80+
GLOBAL = "https://github.com/opencv/opencv/archive/refs/tags/4.13.0.tar.gz",
81+
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/4.13.0/opencv-4.13.0.tar.gz",
82+
},
7783
sha256 = "1d40ca017ea51c533cf9fd5cbde5b5fe7ae248291ddf2af99d4c17cf8e13017d",
7884
},
7985
},
@@ -85,11 +91,14 @@ package = {
8591
-- build-dep wiring is needed here.
8692
deps = { "xim:cmake@4.0.2", "xim:ninja@1.12.1", "xim:llvm" },
8793
["4.13.0"] = {
88-
-- Plain-string GLOBAL url (no CN mirror table): this session lacks
89-
-- mcpp-res write access. Per the add-package skill, CN users fall
90-
-- back to GLOBAL and a maintainer adds the gitcode mirror later
91-
-- (repo `mcpp-res/opencv`, asset `opencv-4.13.0.tar.gz`).
92-
url = "https://github.com/opencv/opencv/archive/refs/tags/4.13.0.tar.gz",
94+
-- GLOBAL>CN fallback table (the mcpp-index CN-mirror convention).
95+
-- The CN asset (gitcode mcpp-res/opencv) is the GitHub tag archive
96+
-- mirrored byte-for-byte via gtc — same sha256 below — so GLOBAL
97+
-- behaviour is unchanged and CN users get a fast mirror.
98+
url = {
99+
GLOBAL = "https://github.com/opencv/opencv/archive/refs/tags/4.13.0.tar.gz",
100+
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/4.13.0/opencv-4.13.0.tar.gz",
101+
},
93102
sha256 = "1d40ca017ea51c533cf9fd5cbde5b5fe7ae248291ddf2af99d4c17cf8e13017d",
94103
},
95104
},

0 commit comments

Comments
 (0)