mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-20 18:05:08 +08:00
Remove def_upstream
This commit is contained in:
@@ -1,26 +1,40 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-10>
|
||||
* Last Modified : <2025-07-16>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2025-07-14
|
||||
*/
|
||||
static Source_t pl_clojure_sources[] =
|
||||
def_target(pl_clojure);
|
||||
|
||||
void
|
||||
pl_clojure_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
use_this(pl_clojure);
|
||||
|
||||
chef_set_created_on (this, "2023-09-10");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2025-07-14");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_set();
|
||||
|
||||
chef_allow_local_mode (this, Can, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/clojars/", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/clojars/", DelegateToMirror},
|
||||
{&Nju, "https://mirror.nju.edu.cn/clojars/", DelegateToMirror},
|
||||
{&Nyist, "https://mirror.nyist.edu.cn/clojars/", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/clojars/", DelegateToMirror},
|
||||
{&Iscas, "https://mirror.iscas.ac.cn/clojars/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_clojure);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -41,30 +55,5 @@ pl_clojure_setsrc (char *option)
|
||||
println (config);
|
||||
}
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Manual);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* chsrc ls clojure
|
||||
*/
|
||||
Feature_t
|
||||
pl_clojure_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = false;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
f.can_english = false;
|
||||
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_sf(pl_clojure);
|
||||
|
@@ -1,53 +1,59 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : czyt <czyt.go@gmail.com>
|
||||
* | Rui Yang <techoc@foxmail.com>
|
||||
* |
|
||||
* Created On : <2023-08-30>
|
||||
* Major Revision : 1
|
||||
* Last Modified : <2025-07-12>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static SourceProvider_t pl_go_upstream =
|
||||
{
|
||||
def_upstream, "https://pkg.go.dev/",
|
||||
def_need_measure_info
|
||||
};
|
||||
|
||||
static MirrorSite_t GoProxyCN =
|
||||
{
|
||||
IS_DedicatedMirrorSite,
|
||||
"goproxy.cn", "Goproxy.cn", "Goproxy.cn (七牛云)", "https://goproxy.cn/",
|
||||
{NotSkip, NA, NA, "https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip", ACCURATE} // 30 MB
|
||||
"https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip", // 30 MB
|
||||
ACCURATE
|
||||
},
|
||||
|
||||
GoProxyIO =
|
||||
{
|
||||
IS_DedicatedMirrorSite,
|
||||
"goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://goproxy.io/",
|
||||
{NotSkip, NA, NA, "https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip", ACCURATE} // 30 MB
|
||||
"https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip", // 30 MB
|
||||
ACCURATE
|
||||
};
|
||||
|
||||
def_target(pl_go);
|
||||
|
||||
/**
|
||||
* @update 2025-07-12
|
||||
*
|
||||
* @note 缺少教育网软件源
|
||||
*/
|
||||
static Source_t pl_go_sources[] =
|
||||
void
|
||||
pl_go_prelude ()
|
||||
{
|
||||
{&pl_go_upstream, "https://proxy.golang.org", NULL},
|
||||
use_this(pl_go);
|
||||
|
||||
chef_set_created_on (this, "2023-08-30");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2025-07-12");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 2,
|
||||
"czyt", "czyt.go@gmail.com",
|
||||
"Rui Yang", "techoc@foxmail.com");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
chef_allow_reset();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, "https://proxy.golang.org", DelegateToUpstream},
|
||||
{&GoProxyCN, "https://goproxy.cn", DelegateToMirror},
|
||||
{&Ali, "https://mirrors.aliyun.com/goproxy/", NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/goproxy/", DelegateToMirror},
|
||||
|
||||
// 暂时停用华为镜像源, 详见 https://github.com/RubyMetric/chsrc/issues/227
|
||||
// {&Huawei, "https://mirrors.huaweicloud.com/goproxy/", NULL},
|
||||
// {&Huawei, "https://mirrors.huaweicloud.com/goproxy/", DelegateToMirror},
|
||||
|
||||
{&GoProxyIO, "https://goproxy.io", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_go);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -74,8 +80,6 @@ pl_go_getsrc (char *option)
|
||||
|
||||
|
||||
/**
|
||||
* chsrc set go
|
||||
*
|
||||
* @consult https://goproxy.cn/
|
||||
*/
|
||||
void
|
||||
@@ -91,39 +95,12 @@ pl_go_setsrc (char *option)
|
||||
cmd = xy_strjoin (3, "go env -w GOPROXY=", source.url, ",direct");
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Auto);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
/**
|
||||
* chsrc reset go
|
||||
*/
|
||||
|
||||
void
|
||||
pl_go_resetsrc (char *option)
|
||||
{
|
||||
pl_go_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* chsrc ls go
|
||||
*/
|
||||
Feature_t
|
||||
pl_go_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = true;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
f.can_english = false;
|
||||
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsrf(pl_go);
|
||||
|
@@ -1,26 +1,40 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-10>
|
||||
* Last Modified : <2025-07-22>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2023-09-10
|
||||
*/
|
||||
static Source_t pl_haskell_sources[] =
|
||||
def_target(pl_haskell);
|
||||
|
||||
void
|
||||
pl_haskell_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
use_this(pl_haskell);
|
||||
|
||||
chef_set_created_on (this, "2023-09-10");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2023-09-10");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_set();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage", DelegateToMirror},
|
||||
{&Nju, "https://mirror.nju.edu.cn/hackage", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/hackage", DelegateToMirror},
|
||||
{&Iscas, "https://mirror.iscas.ac.cn/hackage", DelegateToMirror},
|
||||
{&Nyist, "https://mirror.nyist.edu.cn/hackage", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_haskell);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@@ -51,26 +65,5 @@ pl_haskell_setsrc (char *option)
|
||||
chsrc_note2 (xy_strjoin (3, "请向 ", config, " 中手动添加:"));
|
||||
println (content);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Manual);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_haskell_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = false;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_sf (pl_haskell);
|
||||
|
@@ -1,31 +1,41 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : BingChunMoLi <bingchunmoli@bingchunmoli.com>
|
||||
* |
|
||||
* Created On : <2023-08-31>
|
||||
* Last Modified : <2025-07-31>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static SourceProvider_t pl_java_upstream =
|
||||
{
|
||||
def_upstream, "https://mvnrepository.com/",
|
||||
def_need_measure_info
|
||||
};
|
||||
def_target(pl_java);
|
||||
|
||||
/**
|
||||
* @update 2024-12-18
|
||||
*/
|
||||
static Source_t pl_java_sources[] =
|
||||
void
|
||||
pl_java_prelude ()
|
||||
{
|
||||
{&pl_java_upstream, "https://repo1.maven.org/maven2/", NULL},
|
||||
use_this(pl_java);
|
||||
|
||||
chef_set_created_on (this, "2023-08-31");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2024-12-18");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"BingChunMoLi", "bingchunmoli@bingchunmoli.com");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
chef_allow_reset();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, "https://repo1.maven.org/maven2/", DelegateToUpstream},
|
||||
{&Ali, "https://maven.aliyun.com/repository/public/", DelegateToMirror},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/", DelegateToMirror},
|
||||
/* 网易的24小时更新一次 */
|
||||
|
||||
// 网易的24小时更新一次
|
||||
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_java);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -93,7 +103,6 @@ pl_java_setsrc (char *option)
|
||||
println (file);
|
||||
}
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Manual);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
@@ -103,23 +112,3 @@ pl_java_resetsrc (char *option)
|
||||
{
|
||||
pl_java_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_java_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = true;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsrf(pl_java);
|
||||
|
@@ -1,23 +1,40 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-08-31>
|
||||
* Last Modified : <2025-07-14>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2025-07-14
|
||||
*/
|
||||
static Source_t pl_julia_sources[] =
|
||||
def_target(pl_julia);
|
||||
|
||||
void
|
||||
pl_julia_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
use_this(pl_julia);
|
||||
|
||||
chef_set_created_on (this, "2023-08-31");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2025-07-14");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
chef_set_note ("Julia的换源可以通过两种方式: 1. 写入 startup.jl 2. 使用环境变量。我们采用第一种", NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Pku, "https://mirrors.pku.edu.cn/julia", DelegateToMirror},
|
||||
{&Nju, "https://mirror.nju.edu.cn/julia", DelegateToMirror},
|
||||
{&Iscas, "https://mirror.iscas.ac.cn/julia", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_julia);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
#define PL_Julia_Config "~/.julia/config/startup.jl"
|
||||
|
||||
@@ -48,26 +65,5 @@ pl_julia_setsrc (char *option)
|
||||
|
||||
chsrc_append_to_file (w, PL_Julia_Config);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Untested);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_julia_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf(pl_julia);
|
||||
|
@@ -1,30 +1,45 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-27>
|
||||
* Last Modified : <2025-07-14>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t Api7 =
|
||||
{
|
||||
IS_DedicatedMirrorSite,
|
||||
"api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/",
|
||||
{SKIP, ToFill, ToFill, NULL, ROUGH}
|
||||
NULL, // no measure URL
|
||||
ROUGH
|
||||
};
|
||||
|
||||
def_target(pl_lua);
|
||||
|
||||
/**
|
||||
* @update 2025-07-14
|
||||
* @note 目前只有一个源
|
||||
*/
|
||||
static Source_t pl_lua_sources[] =
|
||||
void
|
||||
pl_lua_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&Api7, "https://luarocks.cn", NULL},
|
||||
};
|
||||
def_sources_n(pl_lua);
|
||||
use_this(pl_lua);
|
||||
|
||||
chef_set_created_on (this, "2023-09-27");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2025-07-14");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
chef_set_note ("目前只有一个源", NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Api7, "https://luarocks.cn", DelegateToMirror}
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -55,26 +70,5 @@ pl_lua_setsrc (char *option)
|
||||
chsrc_note2 ("请手动修改 ~/.luarocks/upload_config.lua 文件 (用于上传):");
|
||||
println (upload_config);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Manual);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_lua_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf(pl_lua);
|
||||
|
@@ -1,33 +1,37 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-10>
|
||||
* Last Modified : <2024-08-09>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t NugetOrg =
|
||||
{
|
||||
IS_UpstreamProvider,
|
||||
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
|
||||
{SKIP, ToFill, ToFill, NULL, ROUGH}
|
||||
};
|
||||
def_target(pl_nuget);
|
||||
|
||||
/**
|
||||
* @update 2024-04-18
|
||||
* @note {
|
||||
* 暂时未实现该换源功能,可参照
|
||||
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
|
||||
* }
|
||||
*/
|
||||
static Source_t pl_nuget_sources[] =
|
||||
void
|
||||
pl_nuget_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&NugetOrg, "https://www.nuget.org/api/v2/", NULL},
|
||||
use_this(pl_nuget);
|
||||
|
||||
chef_set_created_on (this, "2023-09-10");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2024-04-18");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 0);
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
|
||||
chef_set_note ("暂时未实现该换源功能,可参照 https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language", NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, "https://www.nuget.org/api/v3/", DelegateToUpstream},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_nuget);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -42,23 +46,3 @@ pl_nuget_setsrc (char *option)
|
||||
{
|
||||
chsrc_error ("暂时无法为NuGet换源,若有需求,请提交issue");
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_nuget_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = false;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = false;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf(pl_nuget);
|
||||
|
@@ -1,21 +1,37 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-15>
|
||||
* Last Modified : <2025-07-14>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2025-07-14
|
||||
*/
|
||||
static Source_t pl_ocaml_sources[] =
|
||||
def_target(pl_ocaml);
|
||||
|
||||
void
|
||||
pl_ocaml_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git", NULL}
|
||||
};
|
||||
def_sources_n(pl_ocaml);
|
||||
use_this(pl_ocaml);
|
||||
|
||||
chef_set_created_on (this, "2023-09-15");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2025-07-14");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
chef_allow_reset();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git", DelegateToMirror}
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -52,27 +68,5 @@ pl_ocaml_setsrc (char *option)
|
||||
chsrc_alert2 ("如果是首次使用 opam ,请使用以下命令进行初始化");
|
||||
println (xy_2strjoin ("opam init default ", source.url));
|
||||
|
||||
chsrc_determine_chgtype (ChgType_SemiAuto);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_ocaml_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
|
||||
def_target_gsf(pl_ocaml);
|
||||
|
@@ -1,24 +1,40 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-08-30>
|
||||
* Last Modified : <2025-07-31>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static Source_t pl_php_sources[] =
|
||||
def_target(pl_php);
|
||||
|
||||
void
|
||||
pl_php_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
use_this(pl_php);
|
||||
|
||||
chef_set_created_on (this, "2023-08-30");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2024-09-14");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
chef_allow_reset();
|
||||
|
||||
chef_allow_local_mode (this, Can, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/composer/", DelegateToMirror},
|
||||
{&Tencent, "https://mirrors.tencent.com/composer/", DelegateToMirror},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/", DelegateToMirror},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_php);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -56,25 +72,5 @@ pl_php_setsrc (char *option)
|
||||
char *cmd = xy_strjoin (4, "composer config", where, "repo.packagist composer ", source.url);
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Auto);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_php_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = FullyCan;
|
||||
f.cap_locally_explain = "Support `composer`";
|
||||
f.can_english = false;
|
||||
f.can_user_define = true;
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf (pl_php);
|
||||
|
@@ -1,33 +1,42 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* |
|
||||
* Created On : <2023-09-31>
|
||||
* Last Modified : <2025-07-14>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static SourceProvider_t pl_perl_upstream =
|
||||
{
|
||||
def_upstream, "https://metacpan.org/",
|
||||
def_need_measure_info
|
||||
};
|
||||
def_target(pl_perl);
|
||||
|
||||
/**
|
||||
* @update 2024-05-24
|
||||
*/
|
||||
static Source_t pl_perl_sources[] =
|
||||
void
|
||||
pl_perl_prelude ()
|
||||
{
|
||||
{&pl_perl_upstream, NULL, NULL},
|
||||
use_this(pl_perl);
|
||||
|
||||
chef_set_created_on (this, "2023-09-31");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2024-05-24");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
chef_allow_reset();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/", DelegateToMirror},
|
||||
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/", DelegateToMirror},
|
||||
{&Hust, "https://mirrors.hust.edu.cn/CPAN/", DelegateToMirror},
|
||||
{&Ali, "https://mirrors.aliyun.com/CPAN/", DelegateToMirror},
|
||||
{&Lzuoss, "https://mirror.lzu.edu.cn/CPAN/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_perl);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -63,27 +72,5 @@ pl_perl_setsrc (char *option)
|
||||
chsrc_alert2 ("请使用 perl -v 以及 cpan -v,若 Perl >= v5.36 或 CPAN >= 2.29,请额外手动调用下面的命令");
|
||||
p ("perl -MCPAN -e \"CPAN::HandleConfig->load(); CPAN::HandleConfig->edit('pushy_https', 0);; CPAN::HandleConfig->commit()\"");
|
||||
|
||||
chsrc_determine_chgtype (ChgType_SemiAuto);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_perl_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
|
||||
def_target_gsf(pl_perl);
|
||||
|
@@ -1,30 +1,44 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-21>
|
||||
* Last Modified : <2025-07-14>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2023-09-04
|
||||
*
|
||||
* @note
|
||||
* 以下注释的,是不含有bioconductor的镜像站,
|
||||
* 我们在换cran的同时,也直接帮助用户换bioconductor
|
||||
*/
|
||||
static Source_t pl_r_sources[] =
|
||||
def_target(pl_r);
|
||||
|
||||
void
|
||||
pl_r_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
use_this(pl_r);
|
||||
|
||||
chef_set_created_on (this, "2023-09-21");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2023-09-04");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
chef_allow_reset();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
chef_set_note ("以下注释的,是不含有bioconductor的镜像站,我们在换cran的同时,也直接帮助用户换bioconductor", NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/", DelegateToMirror},
|
||||
// {&Ali, "https://mirrors.aliyun.com/CRAN/", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/", DelegateToMirror},
|
||||
// {&Sustech, "https://mirrors.sustech.edu.cn/CRAN", DelegateToMirror},
|
||||
// {&Bfsu, "https://mirrors.bfsu.edu.cn/CRAN/", DelegateToMirror},
|
||||
// {&Bjtu, "https://mirror.bjtu.edu.cn/cran/", DelegateToMirror},
|
||||
};
|
||||
def_sources_n(pl_r);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
#define PL_R_Config_Windows "~/Documents/.Rprofile"
|
||||
@@ -71,26 +85,5 @@ pl_r_setsrc (char *option)
|
||||
|
||||
chsrc_append_to_file (w, config);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Auto);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_r_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = false;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf(pl_r);
|
||||
|
Reference in New Issue
Block a user