{"id":50679300,"url":"https://github.com/mrazza/portage-dotnet-deps","last_synced_at":"2026-06-08T17:32:18.779Z","repository":{"id":360580290,"uuid":"1241791745","full_name":"mrazza/portage-dotnet-deps","owner":"mrazza","description":"Generate NuGet dependencies for Gentoo ebuilds","archived":false,"fork":false,"pushed_at":"2026-05-27T01:50:17.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T03:21:41.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrazza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-17T20:25:01.000Z","updated_at":"2026-05-27T01:50:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mrazza/portage-dotnet-deps","commit_stats":null,"previous_names":["mrazza/portage-dotnet-deps"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mrazza/portage-dotnet-deps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrazza%2Fportage-dotnet-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrazza%2Fportage-dotnet-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrazza%2Fportage-dotnet-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrazza%2Fportage-dotnet-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrazza","download_url":"https://codeload.github.com/mrazza/portage-dotnet-deps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrazza%2Fportage-dotnet-deps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34073786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-08T17:32:18.079Z","updated_at":"2026-06-08T17:32:18.774Z","avatar_url":"https://github.com/mrazza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Portage .NET NuGet Dependency Generator\n\nA Python script to automate the generation of NuGet dependencies for Gentoo Linux ebuilds using the `dotnet-pkg.eclass`.\n\n## Overview\n\nWhen creating a Gentoo ebuild for a .NET application, you need to list all NuGet dependencies (including transitive ones) in a `NUGETS` variable. This ensures the build is network-isolated and reproducible.\n\n`generate_ebuild_nugets.py` simplifies this by:\n1. Running `dotnet restore` on your project/solution to resolve all dependencies.\n2. Parsing the generated `project.assets.json` files.\n3. Extracting and formatting the dependencies into the `PackageName@Version` format used by Gentoo.\n4. Optionally updating an existing `.ebuild` file directly.\n\n## Prerequisites\n\n- Python 3.x\n- .NET SDK (installed and in your `PATH`)\n\n## Installation\n\nSimply download the `generate_ebuild_nugets.py` script and make it executable:\n\n```bash\nchmod +x generate_ebuild_nugets.py\n```\n\n## Usage\n\n### Generate NUGETS block\n\nTo generate the `NUGETS` block for a project and print it to the console:\n\n```bash\n./generate_ebuild_nugets.py /path/to/your/project_or_solution\n```\n\nIf no path is provided, it defaults to the current directory.\n\n### Update an existing Ebuild\n\nTo update the `NUGETS` variable in an existing Gentoo ebuild file:\n\n```bash\n./generate_ebuild_nugets.py /path/to/your/project --ebuild /usr/local/portage/app-misc/my-app/my-app-1.0.0.ebuild\n```\n\nThe script will:\n- Replace the existing `NUGETS=\"...\"` block if found.\n- Insert a new `NUGETS` block before the `inherit` line if not found.\n- Append to the end of the file if neither is found.\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrazza%2Fportage-dotnet-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrazza%2Fportage-dotnet-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrazza%2Fportage-dotnet-deps/lists"}