Split nuget out

This commit is contained in:
Aoran Zeng 2024-08-16 04:38:46 +08:00
parent 9d7a121947
commit dde25a1ca5
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 40 additions and 39 deletions

View File

@ -126,33 +126,19 @@ typedef struct {
static SourceInfo
/**
* @time 2023-09-10
* @note
*/
static SourceInfo
pl_clojure_sources[] = {
{&Upstream, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
},
/**
* @time 2024-04-18
* @note {
*
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
* }
*/
pl_dotnet_sources[] = {
{&Upstream, NULL},
{&NugetOrg, "https://www.nuget.org/api/v2/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"}
};
#define def_sources_n(t) const size_t t##_sources_n = xy_arylen(t##_sources)
def_sources_n(pl_clojure);
def_sources_n(pl_dotnet);

View File

@ -36,23 +36,7 @@
#include "recipe/lang/ocaml.c"
#include "recipe/lang/r.c"
#include "recipe/lang/julia.c"
void
pl_dotnet_getsrc (char *option)
{
chsrc_error ("暂时无法查看NuGet源若有需求请您提交issue");
}
/**
* NuGet
*/
void
pl_dotnet_setsrc (char *option)
{
chsrc_error ("暂时无法为NuGet换源若有需求请您提交issue");
}
#include "recipe/lang/NuGet.c"
void

View File

@ -9,7 +9,6 @@
/* Begin Target Matrix */
def_target_noget (pl_clojure);
def_target_noget (pl_dotnet);
#define t(a) (const char*)(a)
@ -23,17 +22,17 @@ static const char
*pl_go [] = {"go", "golang", "goproxy", NULL, t(&pl_go_target)} ,
*pl_rust [] = {"rust", "cargo", "crate", "crates", NULL, t(&pl_rust_target)},
*pl_java [] = {"java", "maven", "mvn", "gradle", NULL, t(&pl_java_target)},
*pl_clojure[] ={"clojure","clojars","cloj", "lein", "leiningen", NULL, t(&pl_clojure_target)},
*pl_clojure[]= {"clojure","clojars","cloj", "lein", "leiningen", NULL, t(&pl_clojure_target)},
*pl_dart [] = {"dart", "pub", "flutter", NULL, t(&pl_dart_target)},
*pl_dotnet[] = {"nuget", "net", ".net", "dotnet", NULL, t(&pl_dotnet_target)},
*pl_haskell[] ={"haskell", "cabal", "stack", "hackage", NULL, t(&pl_haskell_target)},
*pl_ocaml[] = {"ocaml", "opam", NULL, t(&pl_ocaml_target)},
*pl_nuget[] = {"nuget", "net", ".net", "dotnet", NULL, t(&pl_nuget_target)},
*pl_haskell[]= {"haskell", "cabal", "stack", "hackage", NULL, t(&pl_haskell_target)},
*pl_ocaml[] = {"ocaml", "opam", NULL, t(&pl_ocaml_target)},
*pl_r [] = {"cran", "r", NULL, t(&pl_r_target)},
*pl_julia [] = {"julia", NULL, t(&pl_julia_target)},
**pl_packagers[] =
{
pl_ruby, pl_python, pl_nodejs, pl_perl, pl_php, pl_lua,
pl_rust, pl_go, /*pl_dotnet,*/ pl_java, pl_clojure, pl_dart,
pl_rust, pl_go, /*pl_nuget,*/ pl_java, pl_clojure, pl_dart,
pl_haskell, pl_ocaml,
pl_r, pl_julia
};

32
src/recipe/lang/NuGet.c Normal file
View File

@ -0,0 +1,32 @@
/**
* @time 2024-04-18
* @note {
*
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
* }
*/
static SourceInfo
pl_nuget_sources[] = {
{&Upstream, NULL},
{&NugetOrg, "https://www.nuget.org/api/v2/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"}
};
def_sources_n(pl_nuget);
void
pl_nuget_getsrc (char *option)
{
chsrc_error ("暂时无法查看NuGet源若有需求请您提交issue");
}
/**
* NuGet
*/
void
pl_nuget_setsrc (char *option)
{
chsrc_error ("暂时无法为NuGet换源若有需求请您提交issue");
}
def_target_noget (pl_nuget);