Update PL recipes

This commit is contained in:
Aoran Zeng 2025-07-14 23:44:21 +08:00
parent 4686f71cde
commit 7bb3aab285
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
8 changed files with 185 additions and 59 deletions

View File

@ -4,7 +4,7 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-10> * Created On : <2023-09-10>
* Last Modified : <2024-08-15> * Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
@ -12,11 +12,11 @@
*/ */
static Source_t pl_haskell_sources[] = static Source_t pl_haskell_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/hackage", DelegateToMirror},
{&Nju, "https://mirror.nju.edu.cn/hackage"}, {&Nju, "https://mirror.nju.edu.cn/hackage", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/hackage"} {&Ustc, "https://mirrors.ustc.edu.cn/hackage", DelegateToMirror}
}; };
def_sources_n(pl_haskell); def_sources_n(pl_haskell);
@ -67,4 +67,22 @@ pl_haskell_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target_s (pl_haskell);
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);

View File

@ -5,7 +5,7 @@
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* | * |
* Created On : <2023-08-31> * Created On : <2023-08-31>
* Last Modified : <2024-12-18> * Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t pl_java_upstream = static SourceProvider_t pl_java_upstream =
@ -19,10 +19,11 @@ static SourceProvider_t pl_java_upstream =
*/ */
static Source_t pl_java_sources[] = static Source_t pl_java_sources[] =
{ {
{&pl_java_upstream, NULL}, {&pl_java_upstream, NULL, NULL},
{&Ali, "https://maven.aliyun.com/repository/public/"}, {&Ali, "https://maven.aliyun.com/repository/public/", DelegateToMirror},
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"}, {&Huawei, "https://mirrors.huaweicloud.com/repository/maven/", DelegateToMirror},
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次 /* 网易的24小时更新一次 */
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/", DelegateToMirror}
}; };
def_sources_n(pl_java); def_sources_n(pl_java);
@ -106,4 +107,22 @@ pl_java_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target(pl_java);
Feature_t
pl_java_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_java);

View File

@ -4,19 +4,18 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* Created On : <2023-08-31> * Created On : <2023-08-31>
* Last Modified : <2024-11-22> * Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @update 2023-09-05 * @update 2025-07-14
* @note
*/ */
static Source_t pl_julia_sources[] = static Source_t pl_julia_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"}, {&Pku, "https://mirrors.pku.edu.cn/julia", DelegateToMirror},
{&Pku, "https://mirrors.pku.edu.cn/julia"}, {&Nju, "https://mirror.nju.edu.cn/julia", DelegateToMirror},
{&Nju, "https://mirror.nju.edu.cn/julia"} {&Iscas, "https://mirror.iscas.ac.cn/julia", DelegateToMirror}
}; };
def_sources_n(pl_julia); def_sources_n(pl_julia);

View File

@ -4,7 +4,7 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-27> * Created On : <2023-09-27>
* Last Modified : <2024-08-09> * Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static MirrorSite_t Api7 = static MirrorSite_t Api7 =
@ -16,13 +16,13 @@ static MirrorSite_t Api7 =
/** /**
* @update 2023-09-27 * @update 2025-07-14
* @note * @note
*/ */
static Source_t pl_lua_sources[] = static Source_t pl_lua_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&Api7, "https://luarocks.cn"}, {&Api7, "https://luarocks.cn", NULL},
}; };
def_sources_n(pl_lua); def_sources_n(pl_lua);
@ -53,10 +53,28 @@ pl_lua_setsrc (char *option)
"server = \"", source.url, "\""); "server = \"", source.url, "\"");
chsrc_note2 ("请手动修改 ~/.luarocks/upload_config.lua 文件 (用于上传):"); chsrc_note2 ("请手动修改 ~/.luarocks/upload_config.lua 文件 (用于上传):");
p(upload_config); println (upload_config);
chsrc_determine_chgtype (ChgType_Manual); chsrc_determine_chgtype (ChgType_Manual);
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target(pl_lua);
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);

View File

@ -23,21 +23,20 @@ static MirrorSite_t NugetOrg =
*/ */
static Source_t pl_nuget_sources[] = static Source_t pl_nuget_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&NugetOrg, "https://www.nuget.org/api/v2/"}, {&NugetOrg, "https://www.nuget.org/api/v2/", NULL},
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"} {&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror}
}; };
def_sources_n(pl_nuget); def_sources_n(pl_nuget);
void void
pl_nuget_getsrc (char *option) pl_nuget_getsrc (char *option)
{ {
chsrc_error ("暂时无法查看NuGet源若有需求请提交issue"); chsrc_error ("暂时无法查看NuGet源若有需求请提交issue");
} }
/**
* NuGet
*/
void void
pl_nuget_setsrc (char *option) pl_nuget_setsrc (char *option)
{ {
@ -45,4 +44,21 @@ pl_nuget_setsrc (char *option)
} }
def_target_s (pl_nuget); 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);

View File

@ -4,16 +4,16 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-15> * Created On : <2023-09-15>
* Last Modified : <2024-08-15> * Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @update 2023-09-15 * @update 2025-07-14
*/ */
static Source_t pl_ocaml_sources[] = static Source_t pl_ocaml_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"} {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git", NULL}
}; };
def_sources_n(pl_ocaml); def_sources_n(pl_ocaml);
@ -56,4 +56,23 @@ pl_ocaml_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target(pl_ocaml);
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);

View File

@ -5,7 +5,7 @@
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* | * |
* Created On : <2023-09-31> * Created On : <2023-09-31>
* Last Modified : <2024-12-18> * Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t pl_perl_upstream = static SourceProvider_t pl_perl_upstream =
@ -19,13 +19,13 @@ static SourceProvider_t pl_perl_upstream =
*/ */
static Source_t pl_perl_sources[] = static Source_t pl_perl_sources[] =
{ {
{&pl_perl_upstream, NULL}, {&pl_perl_upstream, NULL, NULL},
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/", DelegateToMirror},
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"}, {&Bjtu, "https://mirror.bjtu.edu.cn/cpan/", DelegateToMirror},
{&Hust, "https://mirrors.hust.edu.cn/CPAN/"}, {&Hust, "https://mirrors.hust.edu.cn/CPAN/", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/CPAN/"}, {&Ali, "https://mirrors.aliyun.com/CPAN/", DelegateToMirror},
{&Lzuoss, "https://mirror.lzu.edu.cn/CPAN/"} {&Lzuoss, "https://mirror.lzu.edu.cn/CPAN/", DelegateToMirror}
}; };
def_sources_n(pl_perl); def_sources_n(pl_perl);
@ -61,10 +61,29 @@ pl_perl_setsrc (char *option)
chsrc_run (cmd, RunOpt_Default); chsrc_run (cmd, RunOpt_Default);
chsrc_note2 ("请使用 perl -v 以及 cpan -v若 Perl >= v5.36 或 CPAN >= 2.29,请额外手动调用下面的命令"); chsrc_note2 ("请使用 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()\""); p ("perl -MCPAN -e \"CPAN::HandleConfig->load(); CPAN::HandleConfig->edit('pushy_https', 0);; CPAN::HandleConfig->commit()\"");
chsrc_determine_chgtype (ChgType_SemiAuto); chsrc_determine_chgtype (ChgType_SemiAuto);
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target(pl_perl);
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);

View File

@ -4,25 +4,25 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-21> * Created On : <2023-09-21>
* Last Modified : <2024-11-22> * Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @update 2023-09-04 * @update 2023-09-04
* @note { *
* @note
* bioconductor的镜像站 * bioconductor的镜像站
* cran的同时bioconductor * cran的同时bioconductor
* }
*/ */
static Source_t pl_r_sources[] = static Source_t pl_r_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/", DelegateToMirror},
// {&Ali, "https://mirrors.aliyun.com/CRAN/"}, // {&Ali, "https://mirrors.aliyun.com/CRAN/", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/", DelegateToMirror},
// {&Sustech, "https://mirrors.sustech.edu.cn/CRAN"}, // {&Sustech, "https://mirrors.sustech.edu.cn/CRAN", DelegateToMirror},
// {&Bfsu, "https://mirrors.bfsu.edu.cn/CRAN/"}, // {&Bfsu, "https://mirrors.bfsu.edu.cn/CRAN/", DelegateToMirror},
// {&Bjtu, "https://mirror.bjtu.edu.cn/cran/"}, // {&Bjtu, "https://mirror.bjtu.edu.cn/cran/", DelegateToMirror},
}; };
def_sources_n(pl_r); def_sources_n(pl_r);
@ -75,4 +75,22 @@ pl_r_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target(pl_r);
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);